Beispiel #1
0
    public void Read(UdpKit.UdpPacket packet)
    {
        ServerName     = packet.ReadString();
        MOTD           = packet.ReadString();
        GameMode       = packet.ReadString();
        MapName        = packet.ReadString();
        PlayerCount    = packet.ReadByte();
        MaxPlayerCount = packet.ReadByte();
        byte flags = packet.ReadByte();

        PasswordRequired  = (flags & PASSWORD_REQUIRED_MASK) != 0;
        IsDedicatedServer = (flags & DEDICATED_MASK) != 0;
        HideInServerList  = (flags & HIDE_MASK) != 0;
    }
Beispiel #2
0
 public void Read(UdpKit.UdpPacket packet)
 {
     name           = packet.ReadString();
     team           = (Team)packet.ReadShort();
     characterClass = (CharacterClass)packet.ReadShort();
     playerSquadID  = (PlayerSquadID)packet.ReadShort();
 }
Beispiel #3
0
 public void Read(UdpKit.UdpPacket packet)
 {
     serverVersion = packet.ReadString();
     gameId        = packet.ReadString();
 }
Beispiel #4
0
 public void Read(UdpKit.UdpPacket packet)
 {
     PlayerName = packet.ReadString();
     Password   = packet.ReadString();
 }
Beispiel #5
0
 public void Read(UdpKit.UdpPacket packet)
 {
     actorFactionID = packet.ReadInt();
     actorRaceName  = packet.ReadString();
 }
Beispiel #6
0
 public void Read(UdpKit.UdpPacket packet)
 {
     Reason  = packet.ReadString();
     Message = packet.ReadString();
 }