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.
19 lines
449 B
19 lines
449 B
using System;
|
|
using GameServer.Arch;
|
|
|
|
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!");
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|