internal virtual IntPtr vmethod_0(string string_4, string string_5, string string_6) { if (this.Address != IntPtr.Zero) { return(Class272_0.method_23(this.Address)); } return(smethod_3(string_4, string_5, string_6)); }
public static IntPtr ReflectionTypeGetType(string type) { IntPtr ptr = smethod_2(type); if (ptr == IntPtr.Zero) { return(IntPtr.Zero); } return(Class272_0.method_5(ptr)); }
internal static string smethod_13(string string_4, string string_5, string string_6, string string_7, Class272.Enum20[] enum20_0, params object[] object_0) { IntPtr ptr = smethod_10(string_4, string_5, string_6, string_7, enum20_0, object_0); if (ptr == IntPtr.Zero) { return(null); } return(Class272_0.method_24(ptr)); }
internal MonoClass(IntPtr address, string className) : this(TritonHs.MainAssemblyPath, "", className) { if (address == IntPtr.Zero) { throw new InvalidOperationException("Cannot create an instance of MonoClass with a backing pointer of Zero."); } this.Address = address; this.UInt32_0 = Class272_0.method_10(address, true); this.RealClassName = Class272_0.method_45(this.IntPtr_0); }
internal string method_4(string string_4) { IntPtr ptr = this.method_5(string_4); if (ptr == IntPtr.Zero) { return(null); } return(Class272_0.method_24(ptr)); }
internal T method_2 <T>(string string_4) where T : struct { IntPtr ptr = this.method_5(string_4); if (ptr == IntPtr.Zero) { return(default(T)); } return(ExternalProcessMemory_0.Read <T>(Class272_0.method_26(ptr))); }
internal static T smethod_6 <T>(string string_4, string string_5, string string_6, string string_7) where T : struct { IntPtr ptr = smethod_9(string_4, string_5, string_6, string_7); if (ptr == IntPtr.Zero) { return(default(T)); } return(ExternalProcessMemory_0.Read <T>(Class272_0.method_26(ptr))); }
internal static string smethod_8(string string_4, string string_5, string string_6, string string_7) { IntPtr ptr = smethod_9(string_4, string_5, string_6, string_7); if (ptr == IntPtr.Zero) { return(null); } return(Class272_0.method_24(ptr)); }
internal static IntPtr smethod_9(string string_4, string string_5, string string_6, string string_7) { IntPtr ptr = smethod_5(string_4, string_5, string_6, string_7); if (ptr == IntPtr.Zero) { throw new MissingFieldException(string_6, string_7); } return(Class272_0.method_22(IntPtr.Zero, ptr)); }
internal string method_12(string string_4, Class272.Enum20[] enum20_0, params object[] object_0) { IntPtr ptr = this.method_7(string_4, enum20_0, object_0); if (ptr == IntPtr.Zero) { return(null); } return(Class272_0.method_24(ptr)); }
internal string method_23(int int_1) { if ((int_1 < 0) || (int_1 >= this.method_17())) { throw new InvalidOperationException(string.Format("The index {0} is invalid for this array.", int_1)); } IntPtr addr = this.method_18(int_1); IntPtr ptr2 = ExternalProcessMemory_0.Read <IntPtr>(addr); return(Class272_0.method_24(ptr2)); }
private T method_20 <T>(IntPtr intptr_1) where T : struct { if (intptr_1 == IntPtr.Zero) { return(default(T)); } if (typeof(T) == typeof(bool)) { IntPtr addr = Class272_0.method_26(intptr_1); return((T)(ExternalProcessMemory_0.Read <byte>(addr) > 0)); } return(ExternalProcessMemory_0.Read <T>(Class272_0.method_26(intptr_1))); }
internal static void smethod_0() { List <uint> list = list_0; lock (list) { int count = list_0.Count; foreach (uint num in list_0) { Class272_0.method_11(num); } list_0.Clear(); } }
internal static T smethod_11 <T>(string string_4, string string_5, string string_6, string string_7, Class272.Enum20[] enum20_0, params object[] object_0) where T : struct { IntPtr ptr = smethod_10(string_4, string_5, string_6, string_7, enum20_0, object_0); if (ptr == IntPtr.Zero) { return(default(T)); } if (typeof(T) == typeof(bool)) { IntPtr addr = Class272_0.method_26(ptr); return((T)(ExternalProcessMemory_0.Read <byte>(addr) > 0)); } return(ExternalProcessMemory_0.Read <T>(Class272_0.method_26(ptr))); }
internal IntPtr method_5(string string_4) { IntPtr classInstance = this.GetClassInstance(); if (classInstance == IntPtr.Zero) { throw new Exception("Cannot call a method on an object instance that has no address!"); } IntPtr ptr2 = this.method_1(string_4); if (ptr2 == IntPtr.Zero) { throw new MissingFieldException(this.ClassName, string_4); } return(Class272_0.method_22(classInstance, ptr2)); }
internal IntPtr method_7(string string_4, Class272.Enum20[] enum20_0, params object[] object_0) { IntPtr classInstance = this.GetClassInstance(); if (classInstance == IntPtr.Zero) { throw new Exception("Cannot call a method on an object instance that has no address!"); } IntPtr ptr2 = this.method_0(string_4, enum20_0); if (ptr2 == IntPtr.Zero) { throw new MissingMethodException(this.ClassName, string_4); } return(Class272_0.method_43(ptr2, classInstance, object_0)); }
internal static IntPtr smethod_3(string string_4, string string_5, string string_6) { IntPtr ptr; string[] textArray1 = new string[] { string_4, "~", string_5, ".", string_6 }; string key = string.Concat(textArray1); if (!Dictionary_1.TryGetValue(key, out ptr)) { ptr = Class272_0.method_21(string_4, string_5, string_6); if (ptr != IntPtr.Zero) { Dictionary_1.Add(key, ptr); } } return(ptr); }
internal IntPtr method_1(string string_4) { Dictionary <string, IntPtr> dictionary; IntPtr ptr; if (!dictionary_4.TryGetValue(this.IntPtr_0, out dictionary)) { dictionary_4.Add(this.IntPtr_0, new Dictionary <string, IntPtr>()); dictionary = dictionary_4[this.IntPtr_0]; } if (!dictionary.TryGetValue(string_4, out ptr)) { ptr = Class272_0.method_34(this.IntPtr_0, string_4); if (ptr != IntPtr.Zero) { dictionary.Add(string_4, ptr); } } return(ptr); }
internal static IntPtr smethod_10(string string_4, string string_5, string string_6, string string_7, Class272.Enum20[] enum20_0, params object[] object_0) { IntPtr ptr; string[] textArray1 = new string[] { string_4, "~", string_5, ".", string_6 }; string key = string.Concat(textArray1); if (!Dictionary_1.TryGetValue(key, out ptr)) { ptr = Class272_0.method_21(string_4, string_5, string_6); Dictionary_1.Add(key, ptr); } IntPtr ptr2 = smethod_4(ptr, string_7, enum20_0); if (ptr2 == IntPtr.Zero) { return(IntPtr.Zero); } return(Class272_0.method_43(ptr2, IntPtr.Zero, object_0)); }
internal static IntPtr smethod_5(string string_4, string string_5, string string_6, string string_7) { Dictionary <string, IntPtr> dictionary; IntPtr ptr2; string key = string_6 + "." + string_7; if (!dictionary_5.TryGetValue(key, out dictionary)) { dictionary_5.Add(key, new Dictionary <string, IntPtr>()); dictionary = dictionary_5[key]; } IntPtr ptr = smethod_3(string_4, string_5, string_6); if (!dictionary.TryGetValue(string_7, out ptr2)) { ptr2 = Class272_0.method_34(ptr, string_7); if (ptr2 != IntPtr.Zero) { dictionary.Add(string_7, ptr2); } } return(ptr2); }
private static IntPtr smethod_4(IntPtr intptr_1, string string_4, Class272.Enum20[] enum20_0) { Dictionary <string, List <Class269> > dictionary; List <Class269> list; Class270 class2 = new Class270 { string_0 = string_4, enum20_0 = enum20_0 }; if (!dictionary_3.TryGetValue(intptr_1, out dictionary)) { dictionary_3.Add(intptr_1, new Dictionary <string, List <Class269> >()); dictionary = dictionary_3[intptr_1]; } if (!dictionary.TryGetValue(class2.string_0, out list)) { dictionary.Add(class2.string_0, new List <Class269>()); list = dictionary[class2.string_0]; } Class269 item = list.FirstOrDefault <Class269>(new Func <Class269, bool>(class2.method_0)); if (item == null) { IntPtr address = Class272_0.method_33(intptr_1, class2.string_0, class2.enum20_0); if (address != IntPtr.Zero) { item = new Class269(class2.string_0, address, class2.enum20_0); list.Add(item); } } if (item == null) { return(IntPtr.Zero); } return(item.IntPtr_0); }
private int method_16() { return(Class272_0.method_8(Class272_0.method_23(this.Address))); }
internal int method_17() { return(Class272_0.method_7(this.Address)); }
private IntPtr method_18(int int_1) { return(Class272_0.method_9(this.Address, this.method_16(), int_1)); }