public override void Deserialize(IDataReader reader) { base.Deserialize(reader); uint num = (uint)reader.ReadUShort(); for (int index = 0; (long)index < (long)num; ++index) { StatisticData instance = ProtocolTypeManager.GetInstance <StatisticData>((uint)reader.ReadUShort()); instance.Deserialize(reader); this.datas.Add(instance); } }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); var DatasCount = reader.ReadShort(); Datas = new List <StatisticData>(); for (var i = 0; i < DatasCount; i++) { StatisticData objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort()); objectToAdd.Deserialize(reader); Datas.Add(objectToAdd); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); int datasCount = reader.ReadUShort(); int datasIndex; m_datas = new System.Collections.Generic.List <StatisticData>(); for (datasIndex = 0; (datasIndex < datasCount); datasIndex = (datasIndex + 1)) { StatisticData objectToAdd = ProtocolTypeManager.GetInstance <StatisticData>((short)reader.ReadUShort()); objectToAdd.Deserialize(reader); m_datas.Add(objectToAdd); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); var countDatas = reader.ReadShort(); Datas = new List <StatisticData>(); for (short i = 0; i < countDatas; i++) { var datastypeId = reader.ReadShort(); StatisticData type = new StatisticData(); type.Deserialize(reader); Datas.Add(type); } }