public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; Field0 = new RequiredMessageHeader(); Field0.FileRead(stream, stream.Position); stream.Position = offset + 8; FromID = stream.ReadValueS32(); stream.Position = offset + 16; Amount = stream.ReadValueS64(); stream.Position = offset + 24; InvLoc = new InvLoc(); InvLoc.FileRead(stream, stream.Position); }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; Field0 = new RequiredMessageHeader(); Field0.FileRead(stream, stream.Position); stream.Position = offset + 8; ItemID = stream.ReadValueS32(); stream.Position = offset + 12; Location = new InvLoc(); Location.FileRead(stream, stream.Position); }