public override void vmethod_14(Stream26 stream260) { var array = new byte[4]; array[1] = (vmethod_7() ? (byte)32 : (byte)4); array[2] = vmethod_16(); stream260.WriteByteArray(array, false); stream260.WriteInt(Int0); stream260.WriteInt(Int1); if (Nodes.Count != 0) { var enumerator = Nodes.GetEnumerator(); try { while (enumerator.MoveNext()) { var @class = (AbstractTreeNode2)enumerator.Current; stream260.WriteByteArray(@class.vmethod_8()); } goto IL_97; } finally { var disposable = enumerator as IDisposable; if (disposable != null) { disposable.Dispose(); } } } stream260.WriteInt(0); IL_97: stream260.WriteInt(0); }
public override void vmethod_14(Stream26 stream26_0) { byte[] array = new byte[4]; array[1] = (this.vmethod_7() ? (byte)32 : (byte)4); array[2] = this.vmethod_16(); stream26_0.WriteByteArray(array, false); stream26_0.WriteInt(this.int_0); stream26_0.WriteInt(this.int_1); if (base.Nodes.Count != 0) { IEnumerator enumerator = base.Nodes.GetEnumerator(); try { while (enumerator.MoveNext()) { AbstractTreeNode2 @class = (AbstractTreeNode2)enumerator.Current; stream26_0.WriteByteArray(@class.vmethod_8()); } goto IL_97; } finally { IDisposable disposable = enumerator as IDisposable; if (disposable != null) { disposable.Dispose(); } } } stream26_0.WriteInt(0); IL_97: stream26_0.WriteInt(0); }
public override void vmethod_14(Stream26 stream26_0) { byte[] array = new byte[4]; array[1] = 1; array[2] = 4; stream26_0.WriteByteArray(array, false); stream26_0.WriteInt(base.Nodes.Count); if (base.Nodes.Count == 0) { return; } if (base.Nodes.Count > 1) { stream26_0.WriteInt((int)stream26_0.Position + 4); } int num = (int)stream26_0.Position + 4 * base.Nodes.Count; Stream26 stream = new Stream26(); foreach (UnicodeValueNode @class in base.Nodes) { stream26_0.WriteInt(num); stream.WriteString(@class.string_0, stream26_0._reverseEndianness); stream.WriteNBytes(0, 2); num += @class.string_0.Length * 2 + 2; } stream26_0.WriteByteArray(stream.ReadEverything(), false); stream26_0.WriteNBytes(0, AbstractTreeNode1.smethod_0(stream26_0.Position)); }
public override void vmethod_14(Stream26 stream26_0) { this.vmethod_9(true); byte[] array = new byte[4]; array[1] = 1; array[2] = 28; stream26_0.WriteByteArray(array, false); stream26_0.WriteInt(base.Nodes.Count); if (base.Nodes.Count == 0) { return; } if (base.Nodes.Count > 1) { stream26_0.WriteInt((int)stream26_0.Position + 4); } foreach (TextValueNode @class in base.Nodes) { stream26_0.WriteByteArray(@class.vmethod_8()); if (@class.method_2() != null) { this.vmethod_10()[@class.int_0] = @class.method_2(); } } }
public override void vmethod_14(Stream26 stream26_0) { this.vmethod_9(true); byte[] array = new byte[4]; array[1] = 1; array[2] = 28; stream26_0.WriteByteArray(array, false); stream26_0.WriteInt(this.int_0); if (base.Nodes.Count != 0) { stream26_0.WriteInt(this.method_9()); if (this.method_8() != null) { this.vmethod_10()[this.method_9()] = this.method_8(); } } else { stream26_0.WriteInt(0); } if (base.method_1().Nodes.IndexOf(this) < base.method_1().Nodes.Count - 1) { stream26_0.WriteInt((int)stream26_0.Position + 4); return; } stream26_0.WriteInt(0); }
public override void vmethod_14(Stream26 stream26_0) { byte[] array = new byte[4]; array[1] = 1; array[2] = this.vmethod_15(); stream26_0.WriteByteArray(array, false); stream26_0.WriteInt(base.Nodes.Count); if (base.Nodes.Count == 0) { return; } if (base.Nodes.Count > 1) { stream26_0.WriteInt((int)stream26_0.Position + 4); } int int_ = (int)stream26_0.Position; List <int> list = new List <int>(base.Nodes.Count); stream26_0.WriteNBytes(0, 4 * base.Nodes.Count); foreach (AbstractTreeNode1 @class in base.Nodes) { list.Add((int)stream26_0.Position); @class.vmethod_14(stream26_0); } int num = (int)stream26_0.Position; stream26_0.WriteEnumerableIntsAt(int_, list); stream26_0.Position = (long)num; }
public void method_10(Stream26 stream260) { stream260.WriteByteArray(Byte0, false); vmethod_14(stream260); stream260.WriteIntAt(4, (int)stream260.Length); stream260.Position = stream260.Length; }
public override void vmethod_14(Stream26 stream260) { var array = new byte[4]; array[1] = 1; array[2] = vmethod_15(); stream260.WriteByteArray(array, false); stream260.WriteInt(Nodes.Count); if (Nodes.Count == 0) { return; } if (Nodes.Count > 1) { stream260.WriteInt((int)stream260.Position + 4); } var int_ = (int)stream260.Position; var list = new List <int>(Nodes.Count); stream260.WriteNBytes(0, 4 * Nodes.Count); foreach (AbstractTreeNode1 @class in Nodes) { list.Add((int)stream260.Position); @class.vmethod_14(stream260); } var num = (int)stream260.Position; stream260.WriteEnumerableIntsAt(int_, list); stream260.Position = num; }
public override void vmethod_14(Stream26 stream260) { vmethod_9(true); var array = new byte[4]; array[1] = 1; array[2] = 28; stream260.WriteByteArray(array, false); stream260.WriteInt(Int0); if (Nodes.Count != 0) { stream260.WriteInt(method_9()); if (method_8() != null) { vmethod_10()[method_9()] = method_8(); } } else { stream260.WriteInt(0); } if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) { stream260.WriteInt((int)stream260.Position + 4); return; } stream260.WriteInt(0); }
public void method_10(Stream26 stream26_0) { stream26_0.WriteByteArray(this.byte_0, false); this.vmethod_14(stream26_0); stream26_0.WriteIntAt(4, (int)stream26_0.Length); stream26_0.Position = stream26_0.Length; }
public override void vmethod_14(Stream26 stream26_0) { if (this.vmethod_8()) { byte[] array = new byte[4]; array[1] = 1; array[2] = (byte)(this.vmethod_15() - 128); stream26_0.WriteByteArray(array, false); } else { byte[] array2 = new byte[4]; array2[1] = this.vmethod_15(); stream26_0.WriteByteArray(array2, false); } stream26_0.WriteInt(this.int_0); if (base.Nodes.Count != 0) { IEnumerator enumerator = base.Nodes.GetEnumerator(); try { while (enumerator.MoveNext()) { AbstractTreeNode2 @class = (AbstractTreeNode2)enumerator.Current; stream26_0.WriteByteArray(@class.vmethod_8()); } goto IL_AA; } finally { IDisposable disposable = enumerator as IDisposable; if (disposable != null) { disposable.Dispose(); } } } stream26_0.WriteInt(0); IL_AA: if (base.method_1().Nodes.IndexOf(this) < base.method_1().Nodes.Count - 1) { stream26_0.WriteInt((int)stream26_0.Position + 4); return; } stream26_0.WriteInt(0); }
public Stream26 method_17() { var stream = new Stream26(Bool2); var stream2 = new Stream26(); method_18(stream, stream2); stream.WriteByteArray(stream2.ReadEverything(), false); stream2.Dispose(); return(stream); }
public Stream26 method_17() { Stream26 stream = new Stream26(this.bool_2); Stream26 stream2 = new Stream26(); this.method_18(stream, stream2); stream.WriteByteArray(stream2.ReadEverything(), false); stream2.Dispose(); return(stream); }
public override void vmethod_14(Stream26 stream26_0) { byte[] array = new byte[4]; array[1] = 1; stream26_0.WriteByteArray(array, false); foreach (FloatValueNode class313_ in base.Nodes) { stream26_0.WriteFloat(FloatValueNode.smethod_0(class313_)); } }
public override void vmethod_14(Stream26 stream26_0) { if (this.vmethod_8()) { byte[] array = new byte[4]; array[1] = 1; array[2] = 4; stream26_0.WriteByteArray(array, false); } else { byte[] array2 = new byte[4]; array2[1] = (this.vmethod_7() ? (byte)132 : (byte)9); stream26_0.WriteByteArray(array2, false); } stream26_0.WriteInt(this.int_0); int int_ = (int)stream26_0.Position + 4; if (base.Nodes.Count != 0) { stream26_0.WriteInt((int)stream26_0.Position + 8); stream26_0.WriteInt(0); stream26_0.WriteString(this.method_8(), stream26_0._reverseEndianness); stream26_0.WriteNBytes(0, 2); stream26_0.WriteNBytes(0, AbstractTreeNode1.smethod_0(stream26_0.Position)); } else { stream26_0.WriteInt(0); } int num = (int)stream26_0.Position; if (base.method_1().Nodes.IndexOf(this) < base.method_1().Nodes.Count - 1) { stream26_0.WriteIntAt(int_, num); } else { stream26_0.WriteIntAt(int_, 0); } stream26_0.Position = (long)num; }
public override void vmethod_14(Stream26 stream260) { if (vmethod_8()) { var array = new byte[4]; array[1] = 1; array[2] = 4; stream260.WriteByteArray(array, false); } else { var array2 = new byte[4]; array2[1] = (vmethod_7() ? (byte)132 : (byte)9); stream260.WriteByteArray(array2, false); } stream260.WriteInt(Int0); var int_ = (int)stream260.Position + 4; if (Nodes.Count != 0) { stream260.WriteInt((int)stream260.Position + 8); stream260.WriteInt(0); stream260.WriteString(method_8(), stream260.ReverseEndianness); stream260.WriteNBytes(0, 2); stream260.WriteNBytes(0, smethod_0(stream260.Position)); } else { stream260.WriteInt(0); } var num = (int)stream260.Position; if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) { stream260.WriteIntAt(int_, num); } else { stream260.WriteIntAt(int_, 0); } stream260.Position = num; }
public override void vmethod_14(Stream26 stream26_0) { byte[] array = new byte[4]; array[1] = 1; array[2] = this.vmethod_15(); stream26_0.WriteByteArray(array, false); stream26_0.WriteInt(base.Nodes.Count); if (base.Nodes.Count == 0) { return; } if (base.Nodes.Count > 1) { stream26_0.WriteInt((int)stream26_0.Position + 4); } foreach (AbstractTreeNode2 @class in base.Nodes) { stream26_0.WriteByteArray(@class.vmethod_8()); } }
public override void vmethod_14(Stream26 stream260) { var array = new byte[4]; array[1] = 1; stream260.WriteByteArray(array, false); foreach (FloatValueNode class313 in Nodes) { stream260.WriteFloat(FloatValueNode.smethod_0(class313)); } }
public override void vmethod_14(Stream26 stream26_0) { stream26_0.WriteInt(this.int_0); stream26_0.WriteInt(this.byte_0.Length); byte[] array = new Class320().method_0(this.byte_0); if (this.byte_0.Length <= array.Length) { array = this.byte_0; } stream26_0.WriteInt(array.Length); stream26_0.WriteByteArray(array, false); stream26_0.WriteNBytes(0, AbstractTreeNode1.smethod_0(stream26_0.Position)); }
public override void vmethod_14(Stream26 stream260) { stream260.WriteInt(Int0); stream260.WriteInt(Byte0.Length); var array = new Class320().method_0(Byte0); if (Byte0.Length <= array.Length) { array = Byte0; } stream260.WriteInt(array.Length); stream260.WriteByteArray(array, false); stream260.WriteNBytes(0, smethod_0(stream260.Position)); }
public override void vmethod_14(Stream26 stream260) { if (vmethod_8()) { var array = new byte[4]; array[1] = 1; array[2] = (byte)(vmethod_15() - 128); stream260.WriteByteArray(array, false); } else { var array2 = new byte[4]; array2[1] = vmethod_15(); stream260.WriteByteArray(array2, false); } stream260.WriteInt(Int0); stream260.WriteInt((Nodes.Count != 0) ? ((int)stream260.Position + 8) : 0); var int_ = (int)stream260.Position; stream260.WriteInt(0); foreach (AbstractTreeNode1 @class in Nodes) { @class.vmethod_14(stream260); } var num = (int)stream260.Position; if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) { stream260.WriteIntAt(int_, num); } else { stream260.WriteIntAt(int_, 0); } stream260.Position = num; }
public override void vmethod_14(Stream26 stream26_0) { if (this.vmethod_8()) { byte[] array = new byte[4]; array[1] = 1; array[2] = (byte)(this.vmethod_15() - 128); stream26_0.WriteByteArray(array, false); } else { byte[] array2 = new byte[4]; array2[1] = this.vmethod_15(); stream26_0.WriteByteArray(array2, false); } stream26_0.WriteInt(this.int_0); stream26_0.WriteInt((base.Nodes.Count != 0) ? ((int)stream26_0.Position + 8) : 0); int int_ = (int)stream26_0.Position; stream26_0.WriteInt(0); foreach (AbstractTreeNode1 @class in base.Nodes) { @class.vmethod_14(stream26_0); } int num = (int)stream26_0.Position; if (base.method_1().Nodes.IndexOf(this) < base.method_1().Nodes.Count - 1) { stream26_0.WriteIntAt(int_, num); } else { stream26_0.WriteIntAt(int_, 0); } stream26_0.Position = (long)num; }
public override void vmethod_14(Stream26 stream26_0) { byte[] array = new byte[4]; array[1] = (byte)(this.vmethod_7() ? 32 : 4); array[2] = 7; stream26_0.WriteByteArray(array, false); stream26_0.WriteInt(this.int_0); stream26_0.WriteInt(this.int_1); stream26_0.WriteInt((base.Nodes.Count != 0) ? ((int)stream26_0.Position + 8) : 0); stream26_0.WriteInt(0); foreach (AbstractTreeNode1 @class in base.Nodes) { @class.vmethod_14(stream26_0); } }
public override void vmethod_14(Stream26 stream260) { var array = new byte[4]; array[1] = (byte)(vmethod_7() ? 32 : 4); array[2] = 7; stream260.WriteByteArray(array, false); stream260.WriteInt(Int0); stream260.WriteInt(Int1); stream260.WriteInt((Nodes.Count != 0) ? ((int)stream260.Position + 8) : 0); stream260.WriteInt(0); foreach (AbstractTreeNode1 @class in Nodes) { @class.vmethod_14(stream260); } }
public override void vmethod_14(Stream26 stream26_0) { byte[] array = new byte[4]; array[2] = 1; stream26_0.WriteByteArray(array, false); if (base.Nodes.Count != 0) { stream26_0.WriteInt((int)stream26_0.Position + 4); } else { stream26_0.WriteInt(0); } foreach (AbstractTreeNode1 @class in base.Nodes) { @class.vmethod_14(stream26_0); } }
public override void vmethod_14(Stream26 stream26_0) { byte[] array = new byte[4]; array[1] = (this.vmethod_7() ? (byte)32 : (byte)4); array[2] = 4; stream26_0.WriteByteArray(array, false); stream26_0.WriteInt(this.int_0); stream26_0.WriteInt(this.int_1); if (base.Nodes.Count != 0) { stream26_0.WriteInt((int)stream26_0.Position + 8); stream26_0.WriteInt(0); stream26_0.WriteString(this.method_7(), stream26_0._reverseEndianness); stream26_0.WriteNBytes(0, 2); stream26_0.WriteNBytes(0, AbstractTreeNode1.smethod_0(stream26_0.Position)); return; } stream26_0.WriteNBytes(0, 8); }
public override void vmethod_14(Stream26 stream260) { var array = new byte[4]; array[1] = (vmethod_7() ? (byte)32 : (byte)4); array[2] = 3; stream260.WriteByteArray(array, false); stream260.WriteInt(Int0); stream260.WriteInt(Int1); if (Nodes.Count != 0) { stream260.WriteInt((int)stream260.Position + 8); stream260.WriteInt(0); stream260.WriteString(method_7()); stream260.WriteByte2(0); stream260.WriteNBytes(0, smethod_0(stream260.Position)); return; } stream260.WriteNBytes(0, 8); }
public override void vmethod_14(Stream26 stream26_0) { this.vmethod_9(true); byte[] array = new byte[4]; array[1] = (this.vmethod_7() ? (byte)32 : (byte)4); array[2] = 28; stream26_0.WriteByteArray(array, false); stream26_0.WriteInt(this.int_0); stream26_0.WriteInt(this.int_1); if (base.Nodes.Count != 0) { stream26_0.WriteInt(this.method_8()); if (this.method_7() != null) { this.vmethod_10()[this.method_8()] = this.method_7(); } } else { stream26_0.WriteInt(0); } stream26_0.WriteInt(0); }
public override void vmethod_14(Stream26 stream260) { vmethod_9(true); var array = new byte[4]; array[1] = (vmethod_7() ? (byte)32 : (byte)4); array[2] = 28; stream260.WriteByteArray(array, false); stream260.WriteInt(Int0); stream260.WriteInt(Int1); if (Nodes.Count != 0) { stream260.WriteInt(method_8()); if (method_7() != null) { vmethod_10()[method_8()] = method_7(); } } else { stream260.WriteInt(0); } stream260.WriteInt(0); }
public void method_18(Stream26 stream26_1, Stream26 stream26_2) { int num = 0; foreach (Interface12 current in this.list_0) { num += (((current.imethod_14() & Enum35.flag_3) == Enum35.flag_0 || !QbSongClass1.smethod_3(current.imethod_7())) ? 32 : 192); } if (this.bool_1) { num = (num + 32 + 4095 & -4096); } else { num += (this.bool_2 ? 64 : 48); } int num2 = 0; List <Interface12> list = new List <Interface12>(); foreach (Interface12 current2 in this.list_0) { if (current2 is Class309 && (current2 as Class309).vmethod_8()) { string string_ = current2.imethod_9().Replace(".qb", ".qs"); if (!this.class318_0.method_6(string_)) { if (!current2.imethod_18()) { list.Add(new Class328(string_, (current2 as Class309).vmethod_10())); } else { list.Add(new Class328(string_)); } } else { Interface12 @interface = this.class318_0.method_10(string_); if (@interface.imethod_18() || ((Class328)@interface).dictionary_0 != (current2 as Class309).vmethod_10()) { ((Class328)@interface).dictionary_0 = (current2 as Class309).vmethod_10(); } } } } if (list.Count != 0) { this.class318_0.list_0.AddRange(list); } int num4; foreach (Interface12 current3 in this.list_0) { bool flag = this.bool_2 && (current3.imethod_14() & Enum35.flag_4) == Enum35.flag_0 && (current3.imethod_14() & Enum35.flag_5) == Enum35.flag_0; int num3 = current3.imethod_7(); if (current3.imethod_4() != 0) { stream26_1.WriteInt(current3.imethod_4(), flag); } else { string text = QbSongClass1.smethod_5(num3); if (!this.bool_1 && !text.EndsWith(".qb.ngc") && !text.EndsWith(".qb.ps2")) { stream26_1.WriteInt(1270999134, flag); } else if (text.Contains(".qb")) { stream26_1.WriteUInt(2817852868u, flag); } else { stream26_1.WriteInt(1952304453, flag); } } if (this is zzPabNode && this.bool_3) { stream26_1.WriteInt((int)stream26_2.Length, flag); } else { stream26_1.WriteInt(num - num2 + (int)stream26_2.Length, flag); } stream26_1.WriteInt(current3.imethod_2(), flag); if (this.bool_1) { stream26_1.WriteInt(this.int_0, flag); } stream26_1.WriteInt(num3, flag); if (!this.bool_1) { stream26_1.WriteInt(this.int_0, flag); } stream26_1.WriteInt(current3.imethod_10(), flag); stream26_1.WriteInt(current3.imethod_12(), flag); stream26_1.WriteInt((int)current3.imethod_14(), false); bool flag2 = false; if ((current3.imethod_14() & Enum35.flag_3) != Enum35.flag_0 && QbSongClass1.smethod_3(num3)) { flag2 = true; string text2 = QbSongClass1.smethod_5(num3); if (!current3.imethod_6().EndsWith(".qb.ngc") && !current3.imethod_6().EndsWith(".qb.ps2")) { if (this.bool_1) { text2 = text2.Replace("\\", "/"); } else if (!this.bool_2) { text2 = text2.Replace("\\", "/") + (current3.imethod_6().EndsWith(".qb") ? "" : ".qb") + ".ps2"; } else { text2 = text2.Replace("\\", "/") + (current3.imethod_6().EndsWith(".qb") ? "" : ".qb") + ".ngc"; } } else { text2 = text2.Substring(1); } stream26_1.WriteString(text2); stream26_1.WriteNBytes(0, 160 - text2.Length); } stream26_2.WriteByteArray(this.method_14(current3)); num4 = ((this.bool_2 || this.bool_1) ? zzPakNode2.smethod_0(stream26_2.Length, 5) : zzPakNode2.smethod_0(stream26_2.Length, 4)); stream26_2.WriteNBytes(0, num4); num2 += (flag2 ? 192 : 32); } stream26_1.WriteUInt(this.bool_1 ? 749989691u : 3039057503u); if (this is zzPabNode && this.bool_3) { stream26_1.WriteInt((int)stream26_2.Length); } else { stream26_1.WriteInt(num - num2 + (int)stream26_2.Length); } stream26_1.WriteInt(4); if (this.bool_1) { stream26_1.WriteInt(this.int_0); stream26_1.WriteUInt(2306521930u); stream26_1.WriteInt(1794739921); stream26_1.WriteNBytes(0, 8); } else { stream26_1.WriteNBytes(0, 4); stream26_1.WriteInt(this.int_0); stream26_1.WriteNBytes(0, 12); } num4 = (this.bool_1 ? zzPakNode2.smethod_0(stream26_1.Length, 12) : (this.bool_2 ? 32 : 16)); stream26_1.WriteNBytes(0, num4); stream26_2.WriteNBytes(171, 4); stream26_2.WriteNBytes(0, 12); num4 = (this.bool_1 ? zzPakNode2.smethod_0(stream26_2.Length, 12) : ((int)stream26_2.Length % (this.bool_2 ? 32 : 16))); stream26_2.WriteNBytes(171, num4); }