Closed valkyrienyanko closed 1 year ago
for (int i = 0; i < 15; i++)
_ = Task.Run(async () =>
{
var client = new GameClient();
client.Connect("localhost", 25565, ignoredPackets);
while (!client.IsConnected)
await Task.Delay(1);
client.Send(new CPacketPlayerJoin { Username = "Fred" });
while (true)
{
await Task.Delay(100);
client.Send(new CPacketPlayerPosition
{
Position = new Vector2(GD.RandRange(100, 1000), GD.RandRange(50, 600))
});
}
});