public void Read(CustomBinaryReader reader) { id = reader.ReadUInt32(); changeOccursWhen = reader.ReadByte(); numberOfStates = reader.ReadUInt16(); states = reader.ReadMany((r) => new CustomSettingsState(r), numberOfStates); }
public void Read(CustomBinaryReader reader) { gameParameterID = reader.ReadUInt32(); yType = reader.ReadUInt32(); unknownID = reader.ReadUInt32(); //_unknown = reader.ReadByte(); numPoints = reader.ReadByte(); _unknown2 = reader.ReadByte(); points = reader.ReadMany((r) => new Point(r), (ulong)numPoints); }
public void Read(CustomBinaryReader reader) { //overrideParentEffects = reader.ReadBoolean(); //effectCount = reader.ReadByte(); //if (effectCount > 0) //{ // bitmaskEffect = reader.ReadByte(); // effects = reader.ReadMany((r) => new EffectStructure(r), (ulong)effectCount); //} //outputBusID = reader.ReadUInt32(); //parentID = reader.ReadUInt32(); //overrideParentPlayback = reader.ReadBoolean(); //offsetPrioritySetting = reader.ReadBoolean(); //additionalParametersCount = reader.ReadByte(); //additionalParameters = reader.ReadMany((r) => r.ReadByte(), (ulong)additionalParametersCount); //additionalParameterValues = reader.ReadMany((r) => r.ReadBytes(4), (ulong)additionalParametersCount); //_zero = reader.ReadByte(); //positioningSection = reader.ReadBoolean(); //if (positioningSection) //{ // positioningType = reader.ReadByte(); // if (positioningType == 0) // { // enablePanner = reader.ReadBoolean(); // } else if (positioningType == 1) // { // positionSource = reader.ReadUInt32(); // attenuationID = reader.ReadUInt32(); // enableSpatialization = reader.ReadBoolean(); // } else if (positioningType == 2) // { // playType = reader.ReadUInt32(); // loop = reader.ReadBoolean(); // transitionTime = reader.ReadUInt32(); // listenerOrientation = reader.ReadBoolean(); // } else if (positioningType == 3) // { // update = reader.ReadBoolean(); // } else // { // // ERROR! // throw new ParseException($"Could not parse positioningType from {nameof(SoundStructure)}! Value: {positioningType} is not between 0 - 3, at reader offset: 0x{reader.Position:X}"); // } //} //overrideParentAuxiliary = reader.ReadBoolean(); //gameDefinedAuxiliary = reader.ReadBoolean(); //overrideParentUserAuxiliary = reader.ReadBoolean(); //userAuxiliaryExists = reader.ReadBoolean(); //if (userAuxiliaryExists) //{ // busID0 = reader.ReadUInt32(); // busID1 = reader.ReadUInt32(); // busID2 = reader.ReadUInt32(); // busID3 = reader.ReadUInt32(); //} //playbackLimit = reader.ReadBoolean(); //if (playbackLimit) //{ // priorityEqualApproach = reader.ReadByte(); // limitReachedApproach = reader.ReadByte(); // limitSoundsTo = reader.ReadUInt16(); //} //limitSoundInstances = reader.ReadByte(); //virtualVoiceBehavior = reader.ReadByte(); //overrideParentPlaybackLimit = reader.ReadBoolean(); //overrideVirtualVoice = reader.ReadBoolean(); unknown4_0 = reader.ReadUInt32(); unknown_id = reader.ReadUInt32(); _unknown4_0 = reader.ReadBytes(4); unknown1_0 = reader.ReadByte(); unknown1_1 = reader.ReadByte(); unknown1_2 = reader.ReadByte(); someFloat = reader.ReadSingle(); twoFlags = reader.ReadUInt32(); id = reader.ReadUInt32(); _unknown12_0 = reader.ReadBytes(12); booleanData = reader.ReadUInt32(); stateGroupsCount = reader.ReadUInt32(); stateGroups = reader.ReadMany((r) => new StateGroup(r), (ulong)stateGroupsCount); rtpcCount = reader.ReadUInt16(); rtpcs = reader.ReadMany((r) => new RTPC(r), (ulong)rtpcCount); }