Esempio n. 1
0
 public void Write(UdpKit.UdpPacket packet)
 {
     packet.WriteString(name);
     packet.WriteShort((short)team);
     packet.WriteShort((short)characterClass);
     packet.WriteShort((short)playerSquadID);
 }
Esempio n. 2
0
    public void Write(UdpKit.UdpPacket packet)
    {
        packet.WriteString(ServerName);
        packet.WriteString(MOTD);
        packet.WriteString(GameMode);
        packet.WriteString(MapName);
        packet.WriteByte(PlayerCount);
        packet.WriteByte(MaxPlayerCount);
        byte flags = 0;

        if (PasswordRequired)
        {
            flags |= PASSWORD_REQUIRED_MASK;
        }
        if (IsDedicatedServer)
        {
            flags |= DEDICATED_MASK;
        }
        if (HideInServerList)
        {
            flags |= HIDE_MASK;
        }
        packet.WriteByte(flags);
    }
Esempio n. 3
0
 public void Write(UdpKit.UdpPacket packet)
 {
     packet.WriteString(serverVersion);
     packet.WriteString(gameId);
 }
Esempio n. 4
0
 public void Write(UdpKit.UdpPacket packet)
 {
     packet.WriteString(PlayerName);
     packet.WriteString(Password);
 }
Esempio n. 5
0
 public void Write(UdpKit.UdpPacket packet)
 {
     packet.WriteInt(actorFactionID);
     packet.WriteString(actorRaceName);
 }
Esempio n. 6
0
 public void Write(UdpKit.UdpPacket packet)
 {
     packet.WriteString(Reason);
     packet.WriteString(Message);
 }