public void Write(UdpKit.UdpPacket packet) { packet.WriteString(name); packet.WriteShort((short)team); packet.WriteShort((short)characterClass); packet.WriteShort((short)playerSquadID); }
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); }
public void Write(UdpKit.UdpPacket packet) { packet.WriteString(serverVersion); packet.WriteString(gameId); }
public void Write(UdpKit.UdpPacket packet) { packet.WriteString(PlayerName); packet.WriteString(Password); }
public void Write(UdpKit.UdpPacket packet) { packet.WriteInt(actorFactionID); packet.WriteString(actorRaceName); }
public void Write(UdpKit.UdpPacket packet) { packet.WriteString(Reason); packet.WriteString(Message); }