Ejemplo n.º 1
0
 public new void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     Geopositions = new PartyMemberGeoPosition[reader.ReadShort()];
     for (var i = 0; i < Geopositions.Length; i++)
     {
         (Geopositions[i] = new PartyMemberGeoPosition()).Deserialize(reader);
     }
 }
Ejemplo n.º 2
0
        public override void Serialize(IDataWriter writer)
        {
            base.Serialize(writer);
            writer.WriteShort(((short)(m_geopositions.Count)));
            int geopositionsIndex;

            for (geopositionsIndex = 0; (geopositionsIndex < m_geopositions.Count); geopositionsIndex = (geopositionsIndex + 1))
            {
                PartyMemberGeoPosition objectToSend = m_geopositions[geopositionsIndex];
                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)
            {
                PartyMemberGeoPosition memberGeoPosition = new PartyMemberGeoPosition();
                memberGeoPosition.Deserialize(reader);
                this.geopositions.Add(memberGeoPosition);
            }
        }
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            var geopositionsCount = reader.ReadUShort();

            Geopositions = new List <PartyMemberGeoPosition>();
            for (var geopositionsIndex = 0; geopositionsIndex < geopositionsCount; geopositionsIndex++)
            {
                var objectToAdd = new PartyMemberGeoPosition();
                objectToAdd.Deserialize(reader);
                Geopositions.Add(objectToAdd);
            }
        }
Ejemplo n.º 5
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            var countGeopositions = reader.ReadShort();

            Geopositions = new List <PartyMemberGeoPosition>();
            for (short i = 0; i < countGeopositions; i++)
            {
                PartyMemberGeoPosition type = new PartyMemberGeoPosition();
                type.Deserialize(reader);
                Geopositions.Add(type);
            }
        }
Ejemplo n.º 6
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            int geopositionsCount = reader.ReadUShort();
            int geopositionsIndex;

            m_geopositions = new System.Collections.Generic.List <PartyMemberGeoPosition>();
            for (geopositionsIndex = 0; (geopositionsIndex < geopositionsCount); geopositionsIndex = (geopositionsIndex + 1))
            {
                PartyMemberGeoPosition objectToAdd = new PartyMemberGeoPosition();
                objectToAdd.Deserialize(reader);
                m_geopositions.Add(objectToAdd);
            }
        }