public static SR2ObjectModel Load(BinaryReader xReader, UInt32 uDataStart, UInt32 uModelData, String strModelName, Platform ePlatform, UInt16 usIndex, UInt32 uVersion, CDC.Objects.ExportOptions options) { xReader.BaseStream.Position = uModelData + (0x00000004 * usIndex); uModelData = uDataStart + xReader.ReadUInt32(); xReader.BaseStream.Position = uModelData; SR2ObjectModel xModel = new SR2ObjectModel(xReader, uDataStart, uModelData, strModelName, ePlatform, uVersion); xModel.ReadData(xReader, options); return(xModel); }
public static SR2ObjectModel Load(BinaryReader reader, UInt32 dataStart, UInt32 modelData, String strModelName, Platform ePlatform, UInt16 usIndex, UInt32 version, CDC.Objects.ExportOptions options) { reader.BaseStream.Position = modelData + (0x00000004 * usIndex); modelData = dataStart + reader.ReadUInt32(); reader.BaseStream.Position = modelData; SR2ObjectModel xModel = new SR2ObjectModel(reader, dataStart, modelData, strModelName, ePlatform, version); xModel.ReadData(reader, options); return(xModel); }