Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
        public static IntPtr ReflectionTypeGetType(string type)
        {
            IntPtr ptr = smethod_2(type);

            if (ptr == IntPtr.Zero)
            {
                return(IntPtr.Zero);
            }
            return(Class272_0.method_5(ptr));
        }
Ejemplo n.º 3
0
        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));
        }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
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));
        }
Ejemplo n.º 6
0
        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)));
        }
Ejemplo n.º 7
0
        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)));
        }
Ejemplo n.º 8
0
        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));
        }
Ejemplo n.º 9
0
        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));
        }
Ejemplo n.º 10
0
        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));
        }
Ejemplo n.º 11
0
        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));
        }
Ejemplo n.º 12
0
 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)));
 }
Ejemplo n.º 13
0
        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();
            }
        }
Ejemplo n.º 14
0
        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)));
        }
Ejemplo n.º 15
0
        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));
        }
Ejemplo n.º 16
0
        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));
        }
Ejemplo n.º 17
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);
        }
Ejemplo n.º 18
0
        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);
        }
Ejemplo n.º 19
0
        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));
        }
Ejemplo n.º 20
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);
        }
Ejemplo n.º 21
0
        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);
        }
Ejemplo n.º 22
0
 private int method_16()
 {
     return(Class272_0.method_8(Class272_0.method_23(this.Address)));
 }
Ejemplo n.º 23
0
 internal int method_17()
 {
     return(Class272_0.method_7(this.Address));
 }
Ejemplo n.º 24
0
 private IntPtr method_18(int int_1)
 {
     return(Class272_0.method_9(this.Address, this.method_16(), int_1));
 }