internal static void smethod_0(Class52 A_0, Class703 A_1, BinaryReader A_2, BinaryReader A_3) { A_2.BaseStream.Position = A_1.class597_0.class1111_15.int_0; smethod_1(A_0, A_2, A_1.class597_0.class1111_15.int_1); A_2.BaseStream.Position = A_1.class597_0.class1111_61.int_0; smethod_2(A_0, A_2, A_1.class597_0.class1111_61.int_1, A_3); }
internal Class52 method_14() { Class52 class2 = new Class52(null); class2.method_12(this); return(class2); }
private static int smethod_5(Class52 A_0, BinaryWriter A_1, BinaryWriter A_2) { int position = (int)A_1.BaseStream.Position; A_1.Write((short)0); A_1.Write((short)smethod_7(A_0)); A_1.Write(0x40); A_1.Write((short)0x1a); int num2 = 0; for (int i = 0; i < A_0.method_4(); i++) { Class827[] classArray2 = A_0.method_6(i).method_52(EmbeddedFontFormat.EmbeddedOpenType); if (classArray2 != null) { foreach (Class827 class2 in classArray2) { if (class2 != null) { smethod_6(class2, i, num2, A_1, A_2); num2++; } } } } return(((int)A_1.BaseStream.Position) - position); }
// Token: 0x06000686 RID: 1670 RVA: 0x0002B5C8 File Offset: 0x000297C8 public static IList <FLhW6tQJXRaEOkM5DWI> smethod_1 <FLhW6tQJXRaEOkM5DWI>(FLhW6tQJXRaEOkM5DWI i9yu2fQKFA1w1fr3s7w) where FLhW6tQJXRaEOkM5DWI : struct { Type typeFromHandle = typeof(FLhW6tQJXRaEOkM5DWI); if (!typeFromHandle.IsDefined(typeof(FlagsAttribute), false)) { throw new ArgumentException("Enum type {0} is not a set of flags.".smethod_0(CultureInfo.InvariantCulture, typeFromHandle)); } Type underlyingType = Enum.GetUnderlyingType(i9yu2fQKFA1w1fr3s7w.GetType()); ulong num = Class53.smethod_6(i9yu2fQKFA1w1fr3s7w); Class52 @class = Class53.smethod_5(typeFromHandle); IList <FLhW6tQJXRaEOkM5DWI> list = new List <FLhW6tQJXRaEOkM5DWI>(); for (int i = 0; i < @class.ulong_0.Length; i++) { ulong num2 = @class.ulong_0[i]; if ((num & num2) == num2 && num2 != 0UL) { list.Add((FLhW6tQJXRaEOkM5DWI)((object)Convert.ChangeType(num2, underlyingType, CultureInfo.CurrentCulture))); } } if (list.Count == 0) { if (@class.ulong_0.Any(new Func <ulong, bool>(Class53.Class55 <FLhW6tQJXRaEOkM5DWI> .class55_0.method_0))) { list.Add(default(FLhW6tQJXRaEOkM5DWI)); } } return(list); }
public static Class52 smethod_0(object object_0, int int_8) { int startIndex = int_8; Class52 class2 = new Class52 { int_0 = BitConverter.ToInt32((byte[])object_0, startIndex) }; startIndex += 4; class2.int_1 = BitConverter.ToInt32((byte[])object_0, startIndex); startIndex += 4; class2.int_2 = BitConverter.ToInt32((byte[])object_0, startIndex); startIndex += 4; class2.int_3 = BitConverter.ToInt32((byte[])object_0, startIndex); startIndex += 4; class2.int_4 = BitConverter.ToInt32((byte[])object_0, startIndex); startIndex += 4; class2.int_5 = BitConverter.ToInt32((byte[])object_0, startIndex); startIndex += 4; class2.int_6 = BitConverter.ToInt32((byte[])object_0, startIndex); startIndex += 4; class2.int_7 = BitConverter.ToInt32((byte[])object_0, startIndex); startIndex += 4; class2.byte_0 = new byte[class2.int_7]; Buffer.BlockCopy((Array)object_0, startIndex, class2.byte_0, 0, class2.int_7); startIndex += class2.int_7; return(class2); }
internal static void smethod_3(Class52 A_0, Class703 A_1, BinaryWriter A_2, BinaryWriter A_3) { A_1.class597_0.class1111_15.int_0 = (int)A_2.BaseStream.Position; A_1.class597_0.class1111_15.int_1 = smethod_4(A_0, A_2); A_1.class597_0.class1111_61.int_0 = (int)A_2.BaseStream.Position; A_1.class597_0.class1111_61.int_1 = smethod_5(A_0, A_2, A_3); }
internal Class427(Class52 A_0, Class812 A_1, StyleCollection A_2) { this.class52_0 = A_0; this.styleCollection_0 = A_2; this.class141_0 = new Class141(null, A_1); this.class140_0 = new Class140(this.class52_0, A_1); this.class143_0 = new Class143(null, A_1, NFibEnum.Word2003); }
internal Class52 method_107() { if (this.class52_0 == null) { this.class52_0 = new Class52(this.method_15()); } return(this.class52_0); }
private void method_0() { this.class53_0 = new Class53(); Class78 class78 = Class78.smethod_1(this.fontProperties_0.FaceName, this.fontProperties_0.IsBold, this.fontProperties_0.IsItalic, this.class53_0); this.class52_0 = new Class52(this.class53_0); this.class42_0 = class78.method_0(this.class53_0); }
internal Class1060(Class52 A_0, Class812 A_1, ListStyleCollection A_2, Class48 A_3) { this.listStyleCollection_0 = A_2; this.int_0 = this.listStyleCollection_0.Count; this.class48_0 = A_3; this.class141_0 = new Class141(null, A_1); this.class140_0 = new Class140(A_0, A_1); }
// Token: 0x0600B88C RID: 47244 RVA: 0x00115039 File Offset: 0x00113239 public GameLootItem(LootItem lootItem) { if (lootItem == null) { throw new ArgumentNullException(Class52.smethod_0(-1339809529)); } this.lootItem_0 = lootItem; this.vector3_0 = default(Vector3); this.method_1(0f); }
private static void smethod_1(Class52 A_0, BinaryReader A_1, int A_2) { if (A_2 != 0) { int num2 = A_1.ReadInt32(); for (int i = 0; i < num2; i++) { A_0.method_11(smethod_8(A_1)); } } }
internal void method_12(Class52 A_0) { using (IEnumerator enumerator = A_0.System.Collections.IEnumerable.GetEnumerator()) { while (enumerator.MoveNext()) { Form4 current = (Form4)enumerator.Current; this.method_11(current); } } }
private static int smethod_4(Class52 A_0, BinaryWriter A_1) { int position = (int)A_1.BaseStream.Position; A_1.Write(A_0.method_4()); using (IEnumerator enumerator = A_0.System.Collections.IEnumerable.GetEnumerator()) { while (enumerator.MoveNext()) { Form4 current = (Form4)enumerator.Current; smethod_9(current, A_1); } } return(((int)A_1.BaseStream.Position) - position); }
// Token: 0x06000688 RID: 1672 RVA: 0x0002B6CC File Offset: 0x000298CC public static bool smethod_3(Type type_0, object object_0, object object_1, out string string_0) { Class52 @class = Class53.class99_0.Get(new Struct9 <Type, NamingStrategy>(type_0, object_1)); ulong num = Class53.smethod_6(object_0); if (@class.bool_0) { string_0 = Class53.smethod_4(@class, num); return(string_0 != null); } int num2 = Array.BinarySearch <ulong>(@class.ulong_0, num); if (num2 >= 0) { string_0 = @class.string_1[num2]; return(true); } string_0 = null; return(false); }
internal Class42(ns4.Class53 dc, ns1.Class78 currentFont) { if (dc.Handle == IntPtr.Zero) { throw new ArgumentNullException(nameof(dc), "Handle to device context cannot be null"); } if (dc.method_1(ns1.Enum0.const_3) == IntPtr.Zero) { throw new ArgumentException("No font selected into supplied device context", nameof(dc)); } this.class53_0 = dc; this.class78_0 = currentFont; StringBuilder lpFaceName = new StringBuilder((int)byte.MaxValue); Class61.GetTextFace(dc.Handle, lpFaceName.Capacity, lpFaceName); this.string_0 = lpFaceName.ToString(); this.class52_0 = new Class52(dc); this.class80_0 = new Class80(new MemoryStream(this.method_0()), this.string_0); this.class66_0 = new ns10.Class66(this.EmSquare); currentFont.Dispose(); }
private static void smethod_2(Class52 A_0, BinaryReader A_1, int A_2, BinaryReader A_3) { if (A_2 != 0) { A_1.ReadInt16(); int num5 = A_1.ReadInt16(); A_1.ReadInt32(); A_1.ReadInt16(); for (int i = 0; i < num5; i++) { int num = A_1.ReadInt32(); int num2 = A_1.ReadInt16(); EmbeddedFontStyle style = ((EmbeddedFontStyle)A_1.ReadInt16()) & EmbeddedFontStyle.BoldItalic; bool flag = A_1.ReadUInt32() != uint.MaxValue; A_3.BaseStream.Position = num; int count = A_3.ReadInt32(); A_3.BaseStream.Position = num; A_0.method_6(num2).method_56(A_3.ReadBytes(count), EmbeddedFontFormat.EmbeddedOpenType, style, flag); } } }
private static int smethod_7(Class52 A_0) { int num = 0; using (IEnumerator enumerator = A_0.System.Collections.IEnumerable.GetEnumerator()) { while (enumerator.MoveNext()) { Class827[] classArray2 = ((Form4)enumerator.Current).method_52(EmbeddedFontFormat.EmbeddedOpenType); if (classArray2 != null) { Class827[] classArray = classArray2; for (int i = 0; i < classArray.Length; i++) { if (classArray[i] != null) { num++; } } } } } return(num); }
private bool method_6() { lock (this.object_1) { this.int_5++; Class52 class2 = new Class52 { int_6 = this.int_5 }; class2.int_7 = this.int_9[class2.int_5 % 10]; class2.byte_0 = new byte[class2.int_7]; for (int i = 0; i < class2.int_7; i++) { class2.byte_0[i] = (byte)((class2.int_5 + i) % 0x80); } byte[] src = class2.method_0(); byte[] dst = new byte[4 + src.Length]; Buffer.BlockCopy(BitConverter.GetBytes(this.int_6), 0, dst, 0, 4); Buffer.BlockCopy(src, 0, dst, 4, src.Length); byte[] buffer4 = this.method_9(dst, this.string_0); byte[] buffer5 = new byte[buffer4.Length + 8]; byte[] bytes = BitConverter.GetBytes(buffer4.Length); byte[] buffer7 = BitConverter.GetBytes(this.int_0); Buffer.BlockCopy(bytes, 0, buffer5, 0, 4); Buffer.BlockCopy(buffer7, 0, buffer5, 4, 4); Buffer.BlockCopy(buffer4, 0, buffer5, 8, buffer4.Length); this.object_0.Write(buffer5, 0, buffer5.Length); int num2 = BitConverter.ToInt32(this.method_7((NetworkStream)this.object_0, 8), 0); byte[] buffer9 = this.method_7((NetworkStream)this.object_0, num2); byte[] buffer10 = this.method_10(buffer9, this.string_0); if (BitConverter.ToInt32(buffer10, 0) != this.int_6) { return(false); } return(Class52.smethod_0(buffer10, 4).int_6 == (class2.int_6 + 1)); } }
// Token: 0x0600B898 RID: 47256 RVA: 0x001150CC File Offset: 0x001132CC public static void ClearAllocConsole() { AllocConsoleHandler.system(Class52.smethod_0(-1339805126)); }
// Token: 0x0600B83E RID: 47166 RVA: 0x003AE15C File Offset: 0x003AC35C public void OnGUI() { try { if (Event.current.type == EventType.Repaint) { if (CGameWorld.activeGameworld) { Camera main = Camera.main; if (main) { CPlayer.LocalPlayer != null; foreach (Player player in CPlayer.Players) { if (player) { if (player.GetComponent <PlayerOwner>() != null) { CPlayer.LocalPlayer = player; } else { if (!CPlayer.bDraw) { break; } Vector3 vector = main.WorldToScreenPoint(player.Transform.position); if (vector.z >= 0.01f) { vector.y = (float)Screen.height - vector.y; float num = (float)Math.Floor((double)Vector3.Distance(player.Transform.position, main.transform.position)); if (num <= this.float_0) { string arg = (player.Profile.Info.RegistrationDate == 0) ? player.Profile.Info.Settings.Role.ToString(Class52.smethod_0(-1339809425)) : player.Profile.Info.Nickname; if (CPlayer.bDrawInformation) { GUIHelper2.DrawFont(new Vector2(vector.x, vector.y), string.Format(Class52.smethod_0(-1339809417), arg, num), Color.red); } if (CPlayer.bDrawLines) { this.DrawLine(player, CPlayer.vec2DrawLine); } if (CPlayer.bDraw2DBox || CPlayer.bDraw3DBox || CPlayer.bDrawSkeleton) { Dictionary <EHumanBones, Vector3> bones = CPlayer.GetBones(player); if (bones.Count != 0) { if (CPlayer.bDraw2DBox || CPlayer.bDraw3DBox) { this.DrawBoxes(player); } if (CPlayer.bDrawSkeleton && num <= 300f) { this.DrawSkeleton(bones); } } } } } } } } } } } } catch { } }
// Token: 0x0600011B RID: 283 RVA: 0x0000D864 File Offset: 0x0000BA64 public static void smethod_1(JObject jobject_0, string string_0) { try { foreach (JToken jtoken in jobject_0.Values()) { if (!Class130.dictionary_0.ContainsKey((int)jtoken["id"])) { MainWindow.webView_0.QueueScriptCall(string.Format("updateButton({0},true)", jtoken["id"])); string text = jtoken["store"].ToString().ToLower(); uint num = Class79.smethod_0(text); Class44 @class; if (num <= 2430139328u) { if (num <= 1369243890u) { if (num <= 650952027u) { if (num <= 536391395u) { if (num != 75628775u) { if (num != 536391395u) { goto IL_6E9; } if (!(text == "net-a-porter us")) { goto IL_6E9; } @class = new Class50(jtoken, "am", "us"); } else { if (!(text == "footpatrol")) { goto IL_6E9; } @class = new Class45(jtoken, "footpatrol", "AD60F89E1BB248F388B9FC671851A2B8"); } } else if (num != 634394085u) { if (num != 650952027u) { goto IL_6E9; } if (!(text == "footaction")) { goto IL_6E9; } @class = new Class51(jtoken, "footaction.com"); } else { if (!(text == "net-a-porter eu")) { goto IL_6E9; } @class = new Class50(jtoken, "intl", "gb"); } } else if (num <= 1003079584u) { if (num != 988777544u) { if (num != 1003079584u) { goto IL_6E9; } if (!(text == "champs sports")) { goto IL_6E9; } @class = new Class47(jtoken, "champssports.com"); } else { if (!(text == "the hip store")) { goto IL_6E9; } @class = new Class45(jtoken, "thehipstore", "117860D26D504A5FB26B2FB64CE35FB8"); } } else if (num != 1271241200u) { if (num != 1369243890u) { goto IL_6E9; } if (!(text == "supreme eu")) { goto IL_6E9; } @class = new Class54(jtoken, "EU"); } else { if (!(text == "supreme us")) { goto IL_6E9; } @class = new Class54(jtoken, "US"); } } else if (num <= 2033596121u) { if (num <= 1613681225u) { if (num != 1374915048u) { if (num != 1613681225u) { goto IL_6E9; } if (!(text == "footlocker us ")) { goto IL_6E9; } @class = new Class51(jtoken, "footlocker.com"); } else { if (!(text == "eastbay")) { goto IL_6E9; } @class = new Class47(jtoken, "eastbay.com"); } } else if (num != 1819840374u) { if (num != 2033596121u) { goto IL_6E9; } if (!(text == "size?")) { goto IL_6E9; } @class = new Class45(jtoken, "size", "3565AE9C56464BB0AD8020F735D1479E"); } else { if (!(text == "jd sports")) { goto IL_6E9; } @class = new Class45(jtoken, "jdsports", "60743806B14F4AF389F582E83A141733"); } } else if (num <= 2404272289u) { if (num != 2191237913u) { if (num != 2404272289u) { goto IL_6E9; } if (!(text == "footaction ")) { goto IL_6E9; } @class = new Class51(jtoken, "footaction.com"); } else { if (!(text == "footlocker ca ")) { goto IL_6E9; } @class = new Class51(jtoken, "footlocker.ca"); } } else if (num != 2407667328u) { if (num != 2414935827u) { if (num != 2430139328u) { goto IL_6E9; } if (!(text == "lacoste nl")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-NL-Site/fr/"); } else { if (!(text == "lacoste dk")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-DK-Site/fr/"); } } else { if (!(text == "mr porter eu")) { goto IL_6E9; } @class = new Class46(jtoken, "intl", "gb"); } } else if (num <= 2661617280u) { if (num <= 2551966898u) { if (num <= 2500795398u) { if (num != 2464533209u) { if (num != 2500795398u) { goto IL_6E9; } if (!(text == "lacoste pl")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-PL-Site/fr/"); } else { if (!(text == "lacoste ch")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-CH-Site/fr/"); } } else if (num != 2505773186u) { if (num != 2551966898u) { goto IL_6E9; } if (!(text == "lacoste uk")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-GB-Site/en/"); } else { if (!(text == "mr porter us")) { goto IL_6E9; } @class = new Class46(jtoken, "am", "us"); } } else if (num <= 2581976542u) { if (num != 2563815827u) { if (num != 2581976542u) { goto IL_6E9; } if (!(text == "lacoste ca")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-CA-Site/fr/"); } else { if (!(text == "lacoste kr")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-KR-Site/fr/"); } } else if (num != 2599048351u) { if (num != 2649822493u) { if (num != 2661617280u) { goto IL_6E9; } if (!(text == "champs sports ")) { goto IL_6E9; } @class = new Class51(jtoken, "champssports.com"); } else { if (!(text == "lacoste de")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-DE-Site/fr/"); } } else { if (!(text == "lacoste at")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-AT-Site/fr/"); } } else if (num <= 3023372879u) { if (num <= 2866210327u) { if (num != 2666305922u) { if (num != 2866210327u) { goto IL_6E9; } if (!(text == "lacoste it")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-IT-Site/fr/"); } else { if (!(text == "lacoste fr")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-FR-Site/fr/"); } } else if (num != 2954629754u) { if (num != 3023372879u) { goto IL_6E9; } if (!(text == "footlocker eu ")) { goto IL_6E9; } @class = new Class49(jtoken); } else { if (!(text == "lacoste us")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-FlagShip-Site/en_US/"); } } else if (num <= 3395413464u) { if (num != 3117874612u) { if (num != 3395413464u) { goto IL_6E9; } if (!(text == "eastbay ")) { goto IL_6E9; } @class = new Class51(jtoken, "eastbay.com"); } else { if (!(text == "lacoste ie")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-IE-Site/fr/"); } } else if (num != 3491784070u) { if (num != 3987781139u) { if (num != 4224345091u) { goto IL_6E9; } if (!(text == "footlocker ca")) { goto IL_6E9; } @class = new Class47(jtoken, "footlocker.ca"); } else { if (!(text == "footlocker us")) { goto IL_6E9; } @class = new Class47(jtoken, "footlocker.com"); } } else { if (!(text == "off-white")) { goto IL_6E9; } @class = new Class48(jtoken); } IL_6FA: if ([email protected]_1) { Class130.dictionary_0[(int)jtoken["id"]] = @class; @class.vmethod_0(); continue; } continue; IL_6E9: @class = new Class52(jtoken, string_0); goto IL_6FA; } } } catch { } }
// Token: 0x06001454 RID: 5204 RVA: 0x00025020 File Offset: 0x00023220 public void CdromRipStateChange(GInterface4 pCdromRip, Enum3 wmprs) { Class52 class52_ = new Class52(pCdromRip, wmprs); this.class24_0.method_32(this.class24_0, class52_); }
internal Class140(Class52 A_0, Class812 A_1) : this(A_0.Document, A_0, A_1) { this.class52_0 = A_0; this.class479_0 = new Class479(this, null); }
internal Class140(Document A_0, Class52 A_1, Class812 A_2) : base(A_0, A_2) { this.class52_0 = A_1; this.class479_0 = new Class479(this, null); }
// Token: 0x0600068C RID: 1676 RVA: 0x0002B8A8 File Offset: 0x00029AA8 public static object smethod_7(Type type_0, object object_0, string string_0, bool bool_0) { Class101.smethod_0(type_0, "enumType"); Class101.smethod_0(string_0, "value"); if (!type_0.smethod_8()) { throw new ArgumentException("Type provided must be an Enum.", "enumType"); } Class52 @class = Class53.class99_0.Get(new Struct9 <Type, NamingStrategy>(type_0, object_0)); string[] string_ = @class.string_0; string[] string_2 = @class.string_1; ulong[] ulong_ = @class.ulong_0; int? num = Class53.smethod_9(string_2, string_0, 0, string_0.Length, StringComparison.Ordinal); if (num != null) { return(Enum.ToObject(type_0, ulong_[num.Value])); } int num2 = -1; int i = 0; while (i < string_0.Length) { if (char.IsWhiteSpace(string_0[i])) { i++; } else { num2 = i; IL_A9: if (num2 == -1) { throw new ArgumentException("Must specify valid information for parsing in the string."); } char c = string_0[num2]; if (char.IsDigit(c) || c == '-' || c == '+') { Type underlyingType = Enum.GetUnderlyingType(type_0); string_0 = string_0.Trim(); object obj = null; try { obj = Convert.ChangeType(string_0, underlyingType, CultureInfo.InvariantCulture); } catch (FormatException) { } if (obj != null) { if (bool_0) { throw new FormatException("Integer string '{0}' is not allowed.".smethod_0(CultureInfo.InvariantCulture, string_0)); } return(Enum.ToObject(type_0, obj)); } } ulong num3 = 0UL; int j = num2; while (j <= string_0.Length) { int num4 = string_0.IndexOf(',', j); if (num4 == -1) { num4 = string_0.Length; } int num5 = num4; while (j < num4 && char.IsWhiteSpace(string_0[j])) { j++; } while (num5 > j && char.IsWhiteSpace(string_0[num5 - 1])) { num5--; } int int_ = num5 - j; num = Class53.smethod_8(string_0, string_, string_2, j, int_, StringComparison.Ordinal); if (num == null) { num = Class53.smethod_8(string_0, string_, string_2, j, int_, StringComparison.OrdinalIgnoreCase); } if (num != null) { num3 |= ulong_[num.Value]; j = num4 + 1; } else { num = Class53.smethod_9(string_2, string_0, 0, string_0.Length, StringComparison.OrdinalIgnoreCase); if (num == null) { throw new ArgumentException("Requested value '{0}' was not found.".smethod_0(CultureInfo.InvariantCulture, string_0)); } return(Enum.ToObject(type_0, ulong_[num.Value])); } } return(Enum.ToObject(type_0, num3)); } } goto IL_A9; }
// Token: 0x0600B89B RID: 47259 RVA: 0x001150EA File Offset: 0x001132EA internal void method_0(string string_0, string string_1, LogType logType_0) { Console.WriteLine(string_0 + Class52.smethod_0(-1339805134) + string_1); }