コード例 #1
0
        public override void Deserialize(IDataReader reader)
        {
            this.rideId = reader.ReadVarInt();
            uint num = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num; ++index)
            {
                UpdateMountCharacteristic instance = ProtocolTypeManager.GetInstance <UpdateMountCharacteristic>((uint)reader.ReadUShort());
                instance.Deserialize(reader);
                this.boostToUpdateList.Add(instance);
            }
        }
コード例 #2
0
        public override void Deserialize(IDataReader reader)
        {
            RideId = reader.ReadVarInt();
            var BoostToUpdateListCount = reader.ReadShort();

            BoostToUpdateList = new List <UpdateMountCharacteristic>();
            for (var i = 0; i < BoostToUpdateListCount; i++)
            {
                UpdateMountCharacteristic objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                BoostToUpdateList.Add(objectToAdd);
            }
        }
コード例 #3
0
        public override void Deserialize(ICustomDataInput reader)
        {
            RideId = reader.ReadVarInt();
            var countBoostToUpdateList = reader.ReadShort();

            BoostToUpdateList = new List <UpdateMountCharacteristic>();
            for (short i = 0; i < countBoostToUpdateList; i++)
            {
                var boostToUpdateListtypeId    = reader.ReadShort();
                UpdateMountCharacteristic type = new UpdateMountCharacteristic();
                type.Deserialize(reader);
                BoostToUpdateList.Add(type);
            }
        }