Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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()));
 }
Exemplo n.º 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)));
 }
Exemplo n.º 5
0
 internal MCGTable1(MCG mcg, int index, AssetLoader loader)
     : base(mcg, index)
 {
     Unknowns.ReadInt32s(loader.Reader, 1);
 }
Exemplo n.º 6
0
 internal MCGTable(MCG mcg, int index)
 {
     MCG      = mcg;
     Index    = index;
     Unknowns = new UnknownList();
 }