public void Write(UdpKit.UdpPacket packet) { packet.WriteString(name); packet.WriteShort((short)team); packet.WriteShort((short)characterClass); packet.WriteShort((short)playerSquadID); }
public void Read(UdpKit.UdpPacket packet) { name = packet.ReadString(); team = (Team)packet.ReadShort(); characterClass = (CharacterClass)packet.ReadShort(); playerSquadID = (PlayerSquadID)packet.ReadShort(); }
public void Write(UdpKit.UdpPacket packet) { packet.WriteInt(TemplateID); packet.WriteInt(ID); packet.WriteInt(Parent); packet.WriteInt(ParentCon); packet.WriteInt(Con); packet.WriteBool(Disabled); //packet.WriteVector3(Position); //packet.WriteQuaternion(Rotation); }
public void Read(UdpKit.UdpPacket packet) { TemplateID = packet.ReadInt(); ID = packet.ReadInt(); Parent = packet.ReadInt(); ParentCon = packet.ReadInt(); Con = packet.ReadInt(); Disabled = packet.ReadBool(); //Position = packet.ReadVector3(); //Rotation = packet.ReadQuaternion(); }
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; }
public void Write(UdpKit.UdpPacket packet) { packet.WriteInt(TemplateID); //packet.WriteBool(Free); //packet.WriteBool(Freeze); packet.WriteInt(ID); packet.WriteInt(Parent); packet.WriteInt(ParentCon); //packet.WriteVector3(Position); //packet.WriteQuaternion(Rotation); //packet.WriteVector3(Scale); packet.WriteByteArray(ListToByteArray(64, ActiveCons)); //was 255 packet.WriteByteArray(ListToByteArray(64, Children)); packet.WriteByteArray(ListToByteArray(64, ChildCons)); }
public void Read(UdpKit.UdpPacket packet) { TemplateID = packet.ReadInt(); //Free = packet.ReadBool(); //Freeze = packet.ReadBool(); ID = packet.ReadInt(); Parent = packet.ReadInt(); ParentCon = packet.ReadInt(); //Position = packet.ReadVector3(); //Rotation = packet.ReadQuaternion(); //Scale = packet.ReadVector3(); ActiveCons = ByteArrayToList(packet.ReadByteArray(64)); Children = ByteArrayToList(packet.ReadByteArray(64)); ChildCons = ByteArrayToList(packet.ReadByteArray(64)); }
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(PlayerName); packet.WriteString(Password); }
public void Read(UdpKit.UdpPacket packet) { PlayerName = packet.ReadString(); Password = packet.ReadString(); }
public void Read(UdpKit.UdpPacket packet) { actorID = packet.ReadInt(); //actorPrefab = packet.ReadInt(); actorPos = packet.ReadVector3(); }
public void Write(UdpKit.UdpPacket packet) { packet.WriteInt(actorID); //packet.WriteInt(actorPrefab); packet.WriteVector3(actorPos); }
public void Read(UdpKit.UdpPacket packet) { actorFactionID = packet.ReadInt(); actorRaceName = packet.ReadString(); }
public void Write(UdpKit.UdpPacket packet) { packet.WriteInt(actorFactionID); packet.WriteString(actorRaceName); }
public void Read(UdpKit.UdpPacket packet) { itemID = packet.ReadInt(); itemQuantity = packet.ReadInt(); }
public void Read(UdpKit.UdpPacket packet) { Reason = packet.ReadString(); Message = packet.ReadString(); }
void Bolt.IProtocolToken.Write(UdpKit.UdpPacket packet) { packet.WriteVector3(position); }
public void Read(UdpKit.UdpPacket packet) { serverVersion = packet.ReadString(); gameId = packet.ReadString(); }
public void Write(UdpKit.UdpPacket packet) { packet.WriteInt(TemplateID); packet.WriteInt(ID); packet.WriteBool(Disabled); }
public void Read(UdpKit.UdpPacket packet) { TemplateID = packet.ReadInt(); ID = packet.ReadInt(); Disabled = packet.ReadBool(); }
void Bolt.IProtocolToken.Read(UdpKit.UdpPacket packet) { Number = packet.ReadInt(); }
public void Write(UdpKit.UdpPacket packet) { packet.WriteString(Reason); packet.WriteString(Message); }
void Bolt.IProtocolToken.Write(UdpKit.UdpPacket packet) { packet.WriteInt(Number); }
public void Write(UdpKit.UdpPacket packet) { packet.WriteInt(itemID); packet.WriteInt(itemQuantity); }
public void Write(UdpKit.UdpPacket packet) { packet.WriteString(serverVersion); packet.WriteString(gameId); }
void Bolt.IProtocolToken.Read(UdpKit.UdpPacket packet) { position = packet.ReadVector3(); //Number = packet.ReadInt(); }