You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
449 B

using System;
using GameServer.Arch;
4 years ago
namespace GameServer.Management {
public static class ServerHandle {
public static void WelcomeReceived(int fromClientId, Packet packet) {
string username = packet.ReadString();
Client client = Server.Clients[fromClientId];
client.Name = username;
Console.WriteLine($"{client} connected successfully!");
}
}
}