public ObfModelIDList(Obf parent, EndianBinaryReader reader) { Parent = parent; Offset = reader.BaseStream.Position; NumModelIDs = reader.ReadUInt32(); ModelIDs = new ObfModelIDListEntry[NumModelIDs]; for (int i = 0; i < ModelIDs.Length; i++) { ModelIDs[i] = new ObfModelIDListEntry(this, reader); } }
public ObfTransformationEntry(Obf parent, EndianBinaryReader reader) { Parent = parent; Offset = reader.BaseStream.Position; TranslationXIndex = reader.ReadInt32(); TranslationYIndex = reader.ReadInt32(); TranslationZIndex = reader.ReadInt32(); RotationXIndex = reader.ReadInt32(); RotationYIndex = reader.ReadInt32(); RotationZIndex = reader.ReadInt32(); ScaleXIndex = reader.ReadInt32(); ScaleYIndex = reader.ReadInt32(); ScaleZIndex = reader.ReadInt32(); Unknown0x24 = reader.ReadUInt32(); }
public ObfTxfList(Obf parent, EndianBinaryReader reader) { Parent = parent; Offset = reader.BaseStream.Position; NumTextures = reader.ReadUInt32(); TextureOffsets = new uint[NumTextures]; for (int i = 0; i < TextureOffsets.Length; i++) { TextureOffsets[i] = reader.ReadUInt32(); } Textures = new ObfTxfListEntry[NumTextures]; for (int i = 0; i < Textures.Length; i++) { reader.BaseStream.Seek(Offset + TextureOffsets[i], SeekOrigin.Begin); Textures[i] = new ObfTxfListEntry(this, reader); } }
public ObfGroupList(Obf parent, EndianBinaryReader reader) { Parent = parent; Offset = reader.BaseStream.Position; NumGroups = reader.ReadUInt32(); GroupOffsets = new uint[NumGroups]; for (int i = 0; i < GroupOffsets.Length; i++) { GroupOffsets[i] = reader.ReadUInt32(); } Groups = new ObfGroupListEntry[NumGroups]; for (int i = 0; i < Groups.Length; i++) { reader.BaseStream.Seek(Offset + GroupOffsets[i], SeekOrigin.Begin); Groups[i] = new ObfGroupListEntry(this, reader); } }
public ObfObjectList(Obf parent, EndianBinaryReader reader) { Parent = parent; Offset = reader.BaseStream.Position; NumObjects = reader.ReadUInt32(); ObjectOffsets = new uint[NumObjects]; for (int i = 0; i < ObjectOffsets.Length; i++) { ObjectOffsets[i] = reader.ReadUInt32(); } Objects = new ObfObjectListEntry[NumObjects]; for (int i = 0; i < Objects.Length; i++) { reader.BaseStream.Seek(Offset + ObjectOffsets[i], SeekOrigin.Begin); Objects[i] = new ObfObjectListEntry(this, reader); } }