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.
22 lines
641 B
22 lines
641 B
using BasicServer.Arch;
|
|
using BasicServer.PacketTypes;
|
|
using static BasicServer.Arch.SendData;
|
|
using static BasicServer.PacketTypes.ServerDefaultPacket;
|
|
|
|
namespace GameServer.Management {
|
|
internal static class ServerSend {
|
|
|
|
private static Packet CreatePacket(ServerDefaultPacket type) {
|
|
return new((int)PacketType.Default, (int)type);
|
|
}
|
|
|
|
public static void Welcome(int toClient, string msg) {
|
|
using var packet = CreatePacket(DWelcome);
|
|
|
|
packet.Write(msg);
|
|
packet.Write(toClient);
|
|
|
|
SendTcpData(toClient, packet);
|
|
}
|
|
}
|
|
}
|
|
|