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
637 B
22 lines
637 B
using GameServer.Arch;
|
|
using GameServer.PacketTypes;
|
|
using static GameServer.Arch.SendData;
|
|
using static GameServer.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);
|
|
}
|
|
}
|
|
}
|
|
|