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); } }
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); } }
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); } }