Esempio n. 1
0
        public override void vmethod_13(Stream26 stream260)
        {
            Int0 = stream260.ReadInt();
            if (this is FloatStructureNode)
            {
                Nodes.Add(new FloatValueNode(stream260.ReadFloat()));
            }
            else if (this is IntegerStructureNode)
            {
                Nodes.Add(new IntegerValueNode(stream260.ReadInt()));
            }
            else if (this is TagStructureNode || this is FileTagStructureNode)
            {
                Nodes.Add(new TagValueNode(stream260.ReadInt()));
            }
            var num = stream260.ReadInt();

            if (num != 0)
            {
                var @class = (Parent is StructureHeaderNode)
                    ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num))
                    : vmethod_12(stream260.ReadIntAt(num, true));
                method_1().Nodes.Add(@class);
                @class.method_4(stream260);
            }
        }
Esempio n. 2
0
 public override void vmethod_13(Stream26 stream26_0)
 {
     this.int_0 = stream26_0.ReadInt();
     this.int_1 = stream26_0.ReadInt();
     base.Nodes.Add(new TextValueNode(stream26_0.ReadInt(), this.vmethod_10()));
     stream26_0.ReadInt();
 }
Esempio n. 3
0
        public override void vmethod_13(Stream26 stream260)
        {
            var num = stream260.ReadInt();

            if (num == 0)
            {
                return;
            }
            var array = new int[num];

            if (num > 1)
            {
                stream260.Position = stream260.ReadInt();
                for (var i = 0; i < num; i++)
                {
                    array[i] = stream260.ReadInt();
                }
            }
            else
            {
                array[0] = stream260.ReadInt();
            }
            var array2 = array;

            for (var j = 0; j < array2.Length; j++)
            {
                var int_   = array2[j];
                var @class = vmethod_12(stream260.ReadIntAt(int_, true));
                Nodes.Add(@class);
                @class.method_4(stream260);
            }
        }
Esempio n. 4
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            int num = stream26_0.ReadInt();

            if (num == 0)
            {
                return;
            }
            int[] array = new int[num];
            if (num > 1)
            {
                stream26_0.Position = (long)stream26_0.ReadInt();
                for (int i = 0; i < num; i++)
                {
                    array[i] = stream26_0.ReadInt();
                }
            }
            else
            {
                array[0] = stream26_0.ReadInt();
            }
            int[] array2 = array;
            for (int j = 0; j < array2.Length; j++)
            {
                int int_ = array2[j];
                AbstractTreeNode1 @class = this.vmethod_12(stream26_0.ReadIntAt(int_, true));
                base.Nodes.Add(@class);
                @class.method_4(stream26_0);
            }
        }
Esempio n. 5
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            int num = stream26_0.ReadInt();

            if (num == 0)
            {
                return;
            }
            int[] array = new int[num];
            if (num > 1)
            {
                stream26_0.Position = (long)stream26_0.ReadInt();
                for (int i = 0; i < num; i++)
                {
                    array[i] = stream26_0.ReadInt();
                }
            }
            else
            {
                array[0] = stream26_0.ReadInt();
            }
            int[] array2 = array;
            for (int j = 0; j < array2.Length; j++)
            {
                int int_ = array2[j];
                base.Nodes.Add(new UnicodeValueNode(stream26_0.ReadUnicodeStringAt(int_)));
            }
            stream26_0.Position += (long)AbstractTreeNode1.smethod_0(stream26_0.Position);
        }
Esempio n. 6
0
 public override void vmethod_13(Stream26 stream260)
 {
     Int0 = stream260.ReadInt();
     Int1 = stream260.ReadInt();
     Nodes.Add(new TextValueNode(stream260.ReadInt(), vmethod_10()));
     stream260.ReadInt();
 }
Esempio n. 7
0
        public override void vmethod_0(Stream26 stream26_0)
        {
            this.byte_0 = stream26_0.ReadByte2();
            this.int_0  = new int[]
            {
                stream26_0.ReadInt()
            };
            byte byte_ = this.byte_0;

            switch (byte_)
            {
            case 1:
                this.object_0 = stream26_0.ReadInt();
                return;

            case 2:
                this.object_0 = stream26_0.ReadFloat();
                return;

            case 3:
                break;

            case 4:
                this.object_0 = stream26_0.ReadUnicodeString();
                return;

            default:
                switch (byte_)
                {
                case 13:
                    this.int_0 = new int[]
                    {
                        this.int_0[0],
                        stream26_0.ReadInt()
                    };
                    return;

                case 14:
                case 16:
                    this.object_0 = stream26_0.ReadByte2();
                    return;

                case 15:
                    break;

                case 17:
                    this.object_0 = stream26_0.ReadShort();
                    break;

                default:
                    return;
                }
                break;
            }
        }
Esempio n. 8
0
        public override void vmethod_0(Stream26 stream260)
        {
            Byte0 = stream260.ReadByte2();
            Int0  = new[]
            {
                stream260.ReadInt()
            };
            var byte_ = Byte0;

            switch (byte_)
            {
            case 1:
                Object0 = stream260.ReadInt();
                return;

            case 2:
                Object0 = stream260.ReadFloat();
                return;

            case 3:
                break;

            case 4:
                Object0 = stream260.ReadUnicodeString();
                return;

            default:
                switch (byte_)
                {
                case 13:
                    Int0 = new[]
                    {
                        Int0[0],
                        stream260.ReadInt()
                    };
                    return;

                case 14:
                case 16:
                    Object0 = stream260.ReadByte2();
                    return;

                case 15:
                    break;

                case 17:
                    Object0 = stream260.ReadShort();
                    break;

                default:
                    return;
                }
                break;
            }
        }
Esempio n. 9
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            int num = stream26_0.ReadInt();

            if (num != 0)
            {
                stream26_0.Position = (long)num;
                AbstractTreeNode1 @class = this.method_11(stream26_0.ReadInt());
                base.Nodes.Add(@class);
                @class.method_4(stream26_0);
            }
        }
Esempio n. 10
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            this.int_0 = stream26_0.ReadInt();
            base.Nodes.Add(new TextValueNode(stream26_0.ReadInt(), this.vmethod_10()));
            int num = stream26_0.ReadInt();

            if (num != 0)
            {
                AbstractTreeNode1 @class = (base.Parent is StructureHeaderNode) ? (base.Parent as StructureHeaderNode).method_11(stream26_0.ReadIntAt(num)) : this.vmethod_12(stream26_0.ReadIntAt(num, true));
                base.method_1().Nodes.Add(@class);
                @class.method_4(stream26_0);
            }
        }
Esempio n. 11
0
        public override void vmethod_13(Stream26 stream260)
        {
            Int0 = stream260.ReadInt();
            Int1 = stream260.ReadInt();
            var num = stream260.ReadInt();

            stream260.ReadInt();
            if (num != 0)
            {
                Nodes.Add(new AsciiValueNode(stream260.ReadAsciiStringAt(num)));
                stream260.Position += smethod_0(stream260.Position);
            }
        }
Esempio n. 12
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            this.int_0 = stream26_0.ReadInt();
            this.int_1 = stream26_0.ReadInt();
            int num = stream26_0.ReadInt();

            stream26_0.ReadInt();
            if (num != 0)
            {
                base.Nodes.Add(new UnicodeValueNode(stream26_0.ReadUnicodeStringAt(num)));
                stream26_0.Position += (long)AbstractTreeNode1.smethod_0(stream26_0.Position);
            }
        }
Esempio n. 13
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            this.int_0 = stream26_0.ReadInt();
            this.int_1 = stream26_0.ReadInt();
            int num = stream26_0.ReadInt();

            stream26_0.ReadInt();
            if (num != 0)
            {
                AbstractTreeNode1 @class = this.vmethod_12(stream26_0.ReadIntAt(num, true));
                base.Nodes.Add(@class);
                @class.method_4(stream26_0);
            }
        }
Esempio n. 14
0
        public override void vmethod_13(Stream26 stream260)
        {
            Int0 = stream260.ReadInt();
            Int1 = stream260.ReadInt();
            var num = stream260.ReadInt();

            stream260.ReadInt();
            if (num != 0)
            {
                var @class = vmethod_12(stream260.ReadIntAt(num, true));
                Nodes.Add(@class);
                @class.method_4(stream260);
            }
        }
Esempio n. 15
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            this.int_0 = stream26_0.ReadInt();
            this.int_1 = stream26_0.ReadInt();
            int num = stream26_0.ReadInt();

            stream26_0.ReadInt();
            if (num != 0)
            {
                stream26_0.Position = (long)num;
                QbScriptNode @class = new QbScriptNode();
                base.Nodes.Add(@class);
                @class.method_4(stream26_0);
            }
        }
Esempio n. 16
0
        public override void vmethod_13(Stream26 stream260)
        {
            Int0 = stream260.ReadInt();
            Nodes.Add(new TextValueNode(stream260.ReadInt(), vmethod_10()));
            var num = stream260.ReadInt();

            if (num != 0)
            {
                var @class = (Parent is StructureHeaderNode)
                    ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num))
                    : vmethod_12(stream260.ReadIntAt(num, true));
                method_1().Nodes.Add(@class);
                @class.method_4(stream260);
            }
        }
Esempio n. 17
0
        public override void vmethod_13(Stream26 stream260)
        {
            Int0 = stream260.ReadInt();
            Int1 = stream260.ReadInt();
            var num = stream260.ReadInt();

            stream260.ReadInt();
            if (num != 0)
            {
                stream260.Position = num;
                var @class = new QbScriptNode();
                Nodes.Add(@class);
                @class.method_4(stream260);
            }
        }
Esempio n. 18
0
 public virtual void vmethod_0(Stream26 stream260)
 {
     Byte0 = stream260.ReadByte2();
     if (Byte0 != 10)
     {
         throw new Exception(string.Concat("Unknown : ", Byte0, " at position : ", stream260.Position));
     }
     Int0 = new[]
     {
         stream260.ReadInt()
     };
     while (stream260.Length > stream260.Position)
     {
         int num = stream260.ReadByte2();
         if (num == 10)
         {
             stream260.Position -= 1L;
             var @class = new Class324();
             @class.vmethod_0(stream260);
             List0.Add(@class);
         }
         else
         {
             if (num == 0)
             {
                 break;
             }
             stream260.Position -= 1L;
             var class2 = new ZzStreamClass325();
             class2.vmethod_0(stream260);
             List0.Add(class2);
         }
     }
 }
Esempio n. 19
0
        public override void vmethod_13(Stream26 stream260)
        {
            Int0 = stream260.ReadInt();
            var num   = stream260.ReadInt();
            var num2  = stream260.ReadInt();
            var byte_ = stream260.ReadBytes(num2, false);

            if (num == num2)
            {
                Byte0 = byte_;
            }
            else
            {
                Byte0 = new Class320().method_4(byte_);
            }
            stream260.Position += smethod_0(stream260.Position);
        }
Esempio n. 20
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            this.int_0 = stream26_0.ReadInt();
            int num  = stream26_0.ReadInt();
            int num2 = stream26_0.ReadInt();

            byte[] byte_ = stream26_0.ReadBytes(num2, false);
            if (num == num2)
            {
                this.byte_0 = byte_;
            }
            else
            {
                this.byte_0 = new Class320().method_4(byte_);
            }
            stream26_0.Position += (long)AbstractTreeNode1.smethod_0(stream26_0.Position);
        }
Esempio n. 21
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            int num = stream26_0.ReadInt();

            if (num == 0)
            {
                return;
            }
            if (num > 1)
            {
                stream26_0.Position = (long)stream26_0.ReadInt();
            }
            for (int i = 0; i < num; i++)
            {
                base.Nodes.Add(new TextValueNode(stream26_0.ReadInt(), this.vmethod_10()));
            }
        }
Esempio n. 22
0
 public override void vmethod_13(Stream26 stream260)
 {
     Int0 = stream260.ReadInt();
     Int1 = stream260.ReadInt();
     if (this is FloatRootNode)
     {
         Nodes.Add(new FloatValueNode(stream260.ReadFloat()));
     }
     else if (this is IntegerRootNode)
     {
         Nodes.Add(new IntegerValueNode(stream260.ReadInt()));
     }
     else if (this is TagRootNode || this is FileTagRootNode)
     {
         Nodes.Add(new TagValueNode(stream260.ReadInt()));
     }
     stream260.ReadInt();
 }
Esempio n. 23
0
 public override void vmethod_13(Stream26 stream26_0)
 {
     this.int_0 = stream26_0.ReadInt();
     this.int_1 = stream26_0.ReadInt();
     if (this is FloatRootNode)
     {
         base.Nodes.Add(new FloatValueNode(stream26_0.ReadFloat()));
     }
     else if (this is IntegerRootNode)
     {
         base.Nodes.Add(new IntegerValueNode(stream26_0.ReadInt()));
     }
     else if (this is TagRootNode || this is FileTagRootNode)
     {
         base.Nodes.Add(new TagValueNode(stream26_0.ReadInt()));
     }
     stream26_0.ReadInt();
 }
Esempio n. 24
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            this.int_0 = stream26_0.ReadInt();
            int num  = stream26_0.ReadInt();
            int num2 = stream26_0.ReadInt();

            if (num != 0)
            {
                base.Nodes.Add(new UnicodeValueNode(stream26_0.ReadUnicodeStringAt(num)));
                stream26_0.Position += (long)AbstractTreeNode1.smethod_0(stream26_0.Position);
            }
            if (num2 != 0)
            {
                AbstractTreeNode1 @class = (base.Parent is StructureHeaderNode) ? (base.Parent as StructureHeaderNode).method_11(stream26_0.ReadIntAt(num2)) : this.vmethod_12(stream26_0.ReadIntAt(num2, true));
                base.method_1().Nodes.Add(@class);
                @class.method_4(stream26_0);
            }
        }
Esempio n. 25
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            this.int_0 = stream26_0.ReadInt();
            int num  = stream26_0.ReadInt();
            int num2 = stream26_0.ReadInt();

            if (num != 0)
            {
                AbstractTreeNode1 @class = this.vmethod_12(stream26_0.ReadIntAt(num, true));
                base.Nodes.Add(@class);
                @class.method_4(stream26_0);
            }
            if (num2 != 0)
            {
                AbstractTreeNode1 class2 = (base.Parent is StructureHeaderNode) ? (base.Parent as StructureHeaderNode).method_11(stream26_0.ReadIntAt(num2)) : this.vmethod_12(stream26_0.ReadIntAt(num2, true));
                base.method_1().Nodes.Add(class2);
                class2.method_4(stream26_0);
            }
        }
Esempio n. 26
0
        public override void vmethod_13(Stream26 stream260)
        {
            Int0 = stream260.ReadInt();
            var num  = stream260.ReadInt();
            var num2 = stream260.ReadInt();

            if (num != 0)
            {
                Nodes.Add(new UnicodeValueNode(stream260.ReadUnicodeStringAt(num)));
                stream260.Position += smethod_0(stream260.Position);
            }
            if (num2 != 0)
            {
                var @class = (Parent is StructureHeaderNode)
                    ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num2))
                    : vmethod_12(stream260.ReadIntAt(num2, true));
                method_1().Nodes.Add(@class);
                @class.method_4(stream260);
            }
        }
Esempio n. 27
0
        public override void vmethod_13(Stream26 stream260)
        {
            Int0 = stream260.ReadInt();
            var num  = stream260.ReadInt();
            var num2 = stream260.ReadInt();

            if (num != 0)
            {
                var @class = vmethod_12(stream260.ReadIntAt(num, true));
                Nodes.Add(@class);
                @class.method_4(stream260);
            }
            if (num2 != 0)
            {
                var class2 = (Parent is StructureHeaderNode)
                    ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num2))
                    : vmethod_12(stream260.ReadIntAt(num2, true));
                method_1().Nodes.Add(class2);
                class2.method_4(stream260);
            }
        }
Esempio n. 28
0
        public void Initialize()
        {
            if (_fileName != null)
            {
                _fileStream = new Stream26(File.Open(_fileName, FileMode.Open, FileAccess.Read, FileShare.Read), true);
            }
            var num  = 1;
            var num2 = _fileStream.ReadUShort();
            var num3 = 0;

            if (num2 == 0xFACE) // Hey man he was in my face
            {
                _unkFlag0 = false;
                num       = _fileStream.ReadShortAt(6);
                num3      = _fileStream.ReadInt();
            }
            else if (num2 != 2600) // Appears to be flags at the beginning of certain types of texture metadata?
            {
                throw new Exception();
            }
            while (num-- != 0)
            {
                TextureList.Add(
                    new TextureMetadata(
                        _fileStream.ReadShortAt(num3 + 2),
                        _fileStream.ReadInt(),
                        _fileStream.ReadShort(),
                        _fileStream.ReadShort(),
                        _fileStream.ReadShort(),
                        _fileStream.ReadByteAt(num3 + 20),
                        _fileStream.ReadShort(),
                        _fileStream.ReadIntAt(num3 + 28),
                        _fileStream.ReadInt()));
                num3 += 40;
            }
            _fileStream.ReverseEndianness = false;
        }
Esempio n. 29
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            this.int_0 = stream26_0.ReadInt();
            if (this is FloatStructureNode)
            {
                base.Nodes.Add(new FloatValueNode(stream26_0.ReadFloat()));
            }
            else if (this is IntegerStructureNode)
            {
                base.Nodes.Add(new IntegerValueNode(stream26_0.ReadInt()));
            }
            else if (this is TagStructureNode || this is FileTagStructureNode)
            {
                base.Nodes.Add(new TagValueNode(stream26_0.ReadInt()));
            }
            int num = stream26_0.ReadInt();

            if (num != 0)
            {
                AbstractTreeNode1 @class = (base.Parent is StructureHeaderNode) ? (base.Parent as StructureHeaderNode).method_11(stream26_0.ReadIntAt(num)) : this.vmethod_12(stream26_0.ReadIntAt(num, true));
                base.method_1().Nodes.Add(@class);
                @class.method_4(stream26_0);
            }
        }
Esempio n. 30
0
        public override void vmethod_13(Stream26 stream26_0)
        {
            int num = stream26_0.ReadInt();

            if (num == 0)
            {
                return;
            }
            if (num > 1)
            {
                stream26_0.Position = (long)stream26_0.ReadInt();
            }
            if (this is FloatArrayNode)
            {
                for (int i = 0; i < num; i++)
                {
                    base.Nodes.Add(new FloatValueNode(stream26_0.ReadFloat()));
                }
                return;
            }
            if (this is IntegerArrayNode)
            {
                for (int j = 0; j < num; j++)
                {
                    base.Nodes.Add(new IntegerValueNode(stream26_0.ReadInt()));
                }
                return;
            }
            if (this is TagArray || this is FileTagArrayNode)
            {
                for (int k = 0; k < num; k++)
                {
                    base.Nodes.Add(new TagValueNode(stream26_0.ReadInt()));
                }
            }
        }