Ejemplo n.º 1
0
 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort((short)((int)this.datas.Length));
     StatisticData[] statisticDataArray = this.datas;
     for (int i = 0; i < (int)statisticDataArray.Length; i++)
     {
         StatisticData statisticDatum = statisticDataArray[i];
         writer.WriteShort(statisticDatum.TypeId);
         statisticDatum.Serialize(writer);
     }
 }
Ejemplo n.º 2
0
        public override void Serialize(ICustomDataOutput writer)
        {
            base.Serialize(writer);
            writer.WriteShort(((short)(m_datas.Count)));
            int datasIndex;

            for (datasIndex = 0; (datasIndex < m_datas.Count); datasIndex = (datasIndex + 1))
            {
                StatisticData objectToSend = m_datas[datasIndex];
                writer.WriteUShort(((ushort)(objectToSend.TypeID)));
                objectToSend.Serialize(writer);
            }
        }