コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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);
            }
        }
コード例 #4
0
        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);
            }
        }
コード例 #5
0
        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);
            }
        }