public override void Deserialize(IDataReader reader)
        {
            uint num = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num; ++index)
            {
                EntityInformation entityInformation = new EntityInformation();
                entityInformation.Deserialize(reader);
                this.entities.Add(entityInformation);
            }
        }
        public override void Deserialize(ICustomDataInput reader)
        {
            var countEntities = reader.ReadShort();

            Entities = new List <EntityInformation>();
            for (short i = 0; i < countEntities; i++)
            {
                EntityInformation type = new EntityInformation();
                type.Deserialize(reader);
                Entities.Add(type);
            }
        }
        public override void Deserialize(IDataReader reader)
        {
            var EntitiesCount = reader.ReadShort();

            Entities = new List <EntityInformation>();
            for (var i = 0; i < EntitiesCount; i++)
            {
                var objectToAdd = new EntityInformation();
                objectToAdd.Deserialize(reader);
                Entities.Add(objectToAdd);
            }
        }
示例#4
0
 public override void Deserialize(IDataReader reader)
 {
     Entity = new EntityInformation();
     Entity.Deserialize(reader);
 }
示例#5
0
 public override void Deserialize(ICustomDataInput reader)
 {
     Entity = new EntityInformation();
     Entity.Deserialize(reader);
 }