public override void Parse(GameBitBuffer buffer) { Field0 = buffer.ReadInt(32); snoBackground = buffer.ReadInt(32); Field2 = new RandomAmbientSoundParams[2]; for(int i = 0;i < _Field2.Length;i++) { _Field2[i] = new RandomAmbientSoundParams(); _Field2[i].Parse(buffer); } snoFixedIntervalSound = buffer.ReadInt(32); Field4 = buffer.ReadInt(32); Field5 = buffer.ReadInt(32); Field6 = buffer.ReadCharArray(64); Field7 = buffer.ReadFloat32(); Field8 = buffer.ReadFloat32(); Field9 = buffer.ReadFloat32(); Field10 = buffer.ReadFloat32(); Field11 = buffer.ReadFloat32(); }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 12; Field0 = stream.ReadValueS32(); stream.Position = offset + 16; snoBackground = stream.ReadValueS32(); stream.Position = offset + 20; Field2 = new RandomAmbientSoundParams[2]; for(int loop12=0; loop12 < 2; loop12++ ) { RandomAmbientSoundParams temp12_Field2; temp12_Field2 = new RandomAmbientSoundParams(); temp12_Field2.FileRead(stream, stream.Position); _Field2[loop12] = temp12_Field2; } stream.Position = offset + 60; snoFixedIntervalSound = stream.ReadValueS32(); stream.Position = offset + 64; Field4 = stream.ReadValueS32(); stream.Position = offset + 68; Field5 = stream.ReadValueS32(); stream.Position = offset + 72; Field6 = stream.ReadString(64); stream.Position = offset + 136; Field7 = stream.ReadValueF32(); stream.Position = offset + 140; Field8 = stream.ReadValueF32(); stream.Position = offset + 144; Field9 = stream.ReadValueF32(); stream.Position = offset + 148; Field10 = stream.ReadValueF32(); stream.Position = offset + 152; Field11 = stream.ReadValueF32(); }