public void Read(BitStream stream) { GameType = stream.Read <E_MPGameType>(); Team = stream.Read <E_Team>(); Winner = stream.ReadBoolean(); Place = stream.ReadChar(); Experience = stream.ReadInt16(); Money = stream.ReadInt16(); Gold = stream.ReadInt16(); NewRank = stream.ReadBoolean(); MissionExp = stream.ReadInt16(); MissioMoney = stream.ReadInt16(); FirstRound = stream.ReadBoolean(); PlayersScore.Clear(); PlayersScore.InsertRange(0, stream.Read <PlayerResult[]>()); }
public void Read(BitStream stream) { int count = (int)stream.ReadInt16(); for (int i = 0; i < count; i++) { T id = stream.Read <T>(); Items.Add(id); } }
public void Read(BitStream stream) { Team = stream.Read <E_Team>(); PrimaryKey = stream.ReadString(); NickName = stream.ReadString(); Score = stream.ReadInt16(); Deaths = stream.ReadByte(); Kills = stream.ReadByte(); Platform = stream.Read <RuntimePlatform>(); }
public void Read(BitStream stream) { Player = stream.Read <NetworkPlayer>(); Team = stream.Read <E_Team>(); ZoneIndex = stream.ReadByte(); Platform = (RuntimePlatform)stream.ReadInt16(); Name = stream.ReadString(); PrimaryKey = stream.ReadString(); //TODO: PRIMARY KEY - pridat username? PlayerData.Read(stream); }
public void Read(BitStream stream) { int count = (int)stream.ReadInt16(); for (int i = 0; i < count; i++) { UpgradeData data; data.ID = stream.Read <E_UpgradeID>(); Upgrades.Add(data); } }
public void Read(BitStream stream) { Score = stream.ReadInt16(); Kills = stream.ReadInt16(); Deaths = stream.ReadInt16(); Experience = stream.ReadInt16(); Money = stream.ReadInt16(); Gold = stream.ReadInt16(); }
internal static object _ReadInt16(BitStream stream, object[] codecOptions) { return(stream.ReadInt16()); }
public void Read(BitStream stream) { ID = stream.Read <E_ItemID>(); EquipSlotIdx = stream.ReadByte(); Count = stream.ReadInt16(); }