public new void Deserialize(IDataReader reader) { base.Deserialize(reader); NamedPartyTeams = new NamedPartyTeam[reader.ReadShort()]; for (var i = 0; i < NamedPartyTeams.Length; i++) { (NamedPartyTeams[i] = new NamedPartyTeam()).Deserialize(reader); } }
public override void Serialize(IDataWriter writer) { base.Serialize(writer); writer.WriteShort(((short)(m_namedPartyTeams.Count))); int namedPartyTeamsIndex; for (namedPartyTeamsIndex = 0; (namedPartyTeamsIndex < m_namedPartyTeams.Count); namedPartyTeamsIndex = (namedPartyTeamsIndex + 1)) { NamedPartyTeam objectToSend = m_namedPartyTeams[namedPartyTeamsIndex]; objectToSend.Serialize(writer); } }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); uint num = (uint)reader.ReadUShort(); for (int index = 0; (long)index < (long)num; ++index) { NamedPartyTeam namedPartyTeam = new NamedPartyTeam(); namedPartyTeam.Deserialize(reader); this.namedPartyTeams.Add(namedPartyTeam); } }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); var namedPartyTeamsCount = reader.ReadUShort(); NamedPartyTeams = new List <NamedPartyTeam>(); for (var namedPartyTeamsIndex = 0; namedPartyTeamsIndex < namedPartyTeamsCount; namedPartyTeamsIndex++) { var objectToAdd = new NamedPartyTeam(); objectToAdd.Deserialize(reader); NamedPartyTeams.Add(objectToAdd); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); var countNamedPartyTeams = reader.ReadShort(); NamedPartyTeams = new List <NamedPartyTeam>(); for (short i = 0; i < countNamedPartyTeams; i++) { NamedPartyTeam type = new NamedPartyTeam(); type.Deserialize(reader); NamedPartyTeams.Add(type); } }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); int namedPartyTeamsCount = reader.ReadUShort(); int namedPartyTeamsIndex; m_namedPartyTeams = new System.Collections.Generic.List <NamedPartyTeam>(); for (namedPartyTeamsIndex = 0; (namedPartyTeamsIndex < namedPartyTeamsCount); namedPartyTeamsIndex = (namedPartyTeamsIndex + 1)) { NamedPartyTeam objectToAdd = new NamedPartyTeam(); objectToAdd.Deserialize(reader); m_namedPartyTeams.Add(objectToAdd); } }