public override void Parse(GameBitBuffer buffer) { HirelingInfos = new HirelingInfo[4]; for(int i = 0;i < _HirelingInfos.Length;i++) { _HirelingInfos[i] = new HirelingInfo(); _HirelingInfos[i].Parse(buffer); } Field1 = buffer.ReadInt(2); Field2 = buffer.ReadInt(32); }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; HirelingInfos = new HirelingInfo[4]; for(int loop12=0; loop12 < 4; loop12++ ) { HirelingInfo temp12_HirelingInfos; temp12_HirelingInfos = new HirelingInfo(); temp12_HirelingInfos.FileRead(stream, stream.Position); _HirelingInfos[loop12] = temp12_HirelingInfos; } stream.Position = offset + 144; _Field1 = stream.ReadValueS32(); stream.Position = offset + 148; Field2 = stream.ReadValueS32(); }