Пример #1
0
        internal MCGTable3(MCG mcg, int index, AssetLoader loader)
            : base(mcg, index)
        {
            var reader = loader.Reader;

            int count = reader.ReadInt32();

            Position = reader.ReadVector3f();
            Table1U1 = mcg.GetTable1Slice(count, reader.ReadInt32());
            Table1U2 = mcg.GetTable1Slice(count, reader.ReadInt32());
            Unknowns.ReadInt32s(reader, 2);
        }
Пример #2
0
        internal MCGTable2(MCG mcg, int index, AssetLoader loader)
            : base(mcg, index)
        {
            var reader = loader.Reader;

            Unknowns.ReadInt32s(reader, 1);

            int count1  = reader.ReadInt32();
            int offset1 = reader.ReadInt32();

            Table1U1 = mcg.GetTable1Slice(count1, offset1);

            Unknowns.ReadInt32s(reader, 1);

            int count2  = reader.ReadInt32();
            int offset2 = reader.ReadInt32();

            Table1U2 = mcg.GetTable1Slice(count2, offset2);

            Unknowns.ReadInt32s(reader, 2);

            Unknowns.ReadSingles(reader, 1);
        }
Пример #3
0
 /// <summary>Get a string representation of the row's values.</summary>
 /// <returns></returns>
 protected override string ToStringContent()
 {
     return(string.Format("{0}, {1}, {2}", MCG.Table1ToString(Table1U1), MCG.Table1ToString(Table1U2), Position.ToShortString()));
 }
Пример #4
0
 /// <summary>Get a string representation of the row's contents.</summary>
 /// <returns></returns>
 protected override string ToStringContent()
 {
     return(string.Format("{0}, {1}", MCG.Table1ToString(Table1U1), MCG.Table1ToString(Table1U2)));
 }
Пример #5
0
 internal MCGTable1(MCG mcg, int index, AssetLoader loader)
     : base(mcg, index)
 {
     Unknowns.ReadInt32s(loader.Reader, 1);
 }
Пример #6
0
 internal MCGTable(MCG mcg, int index)
 {
     MCG      = mcg;
     Index    = index;
     Unknowns = new UnknownList();
 }