private T method_19 <T>(IntPtr intptr_1) where T : class
 {
     if (intptr_1 == IntPtr.Zero)
     {
         return(default(T));
     }
     return(FastObjectFactory.CreateObjectInstance <T>(intptr_1));
 }
        internal static T smethod_7 <T>(string string_4, string string_5, string string_6, string string_7) where T : class
        {
            IntPtr ptr = smethod_9(string_4, string_5, string_6, string_7);

            if (ptr == IntPtr.Zero)
            {
                return(default(T));
            }
            return(FastObjectFactory.CreateObjectInstance <T>(ptr));
        }
        internal static T smethod_16 <T>(string string_4, string string_5, string string_6, string string_7, Class272.Enum20[] enum20_0, params object[] object_0) where T : MonoClass
        {
            IntPtr ptr = smethod_10(string_4, string_5, string_6, string_7, enum20_0, object_0);

            if (ptr == IntPtr.Zero)
            {
                return(default(T));
            }
            return(FastObjectFactory.CreateObjectInstance <T>(ptr));
        }
        internal T method_3 <T>(string string_4) where T : class
        {
            IntPtr ptr = this.method_5(string_4);

            if (ptr == IntPtr.Zero)
            {
                return(default(T));
            }
            return(FastObjectFactory.CreateObjectInstance <T>(ptr));
        }
Exemple #5
0
        private T InvokeMethodByRetClass <T>(string methodName) where T : class
        {
            IntPtr intPtr = MonoClassInternalMethod5(methodName);

            if (intPtr == IntPtr.Zero)
            {
                return(default(T));
            }

            return(FastObjectFactory.CreateObjectInstance <T>(intPtr));
        }
Exemple #6
0
        public SimpleMedalInfoTranslator GetLocalPlayerMedalInfo()
        {
            MethodInfo method7 = this.GetType().GetMethod("method_7", BindingFlags.Instance | BindingFlags.NonPublic);
            IntPtr     intPtr  = (IntPtr)method7.Invoke(this,
                                                        new object[] { "GetLocalPlayerMedalInfo", null, Array.Empty <object>() });

            if (intPtr == IntPtr.Zero)
            {
                return(default(SimpleMedalInfoTranslator));
            }

            return(FastObjectFactory.CreateObjectInstance <SimpleMedalInfoTranslator>(intPtr));
        }
Exemple #7
0
        public SimplTranslatedMedalInfo GetCurrentMedal(bool useWildMedal)
        {
            MethodInfo method7 = this.GetType().GetMethod("method_7", BindingFlags.Instance | BindingFlags.NonPublic);
            IntPtr     intPtr  = (IntPtr)method7.Invoke(this,
                                                        new object[] { "GetCurrentMedal", null, new object[] { useWildMedal } });

            if (intPtr == IntPtr.Zero)
            {
                return(default(SimplTranslatedMedalInfo));
            }

            return(FastObjectFactory.CreateObjectInstance <SimplTranslatedMedalInfo>(intPtr));
        }
        internal T method_15 <T>(string string_4, Class272.Enum20[] enum20_0, params object[] object_0) where T : class
        {
            if (!typeof(T).IsClass)
            {
                object[] objArray1 = new object[] { typeof(T), " is not a class type. Please fix the method invocation for ", this.ClassName, ".", string_4, " to use Get<T> or GetString instead." };
                throw new InvalidOperationException(string.Concat(objArray1));
            }
            IntPtr ptr = this.method_7(string_4, enum20_0, object_0);

            if (ptr == IntPtr.Zero)
            {
                return(default(T));
            }
            return(FastObjectFactory.CreateObjectInstance <T>(ptr));
        }