Ejemplo n.º 1
0
    static int RequestAdvertisingIdentifierAsync(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 1);
            UnityEngine.Application.AdvertisingIdentifierCallback arg0 = null;
            LuaTypes funcType1 = LuaDLL.lua_type(L, 1);

            if (funcType1 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (UnityEngine.Application.AdvertisingIdentifierCallback)ToLua.CheckObject(L, 1, typeof(UnityEngine.Application.AdvertisingIdentifierCallback));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 1);
                arg0 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Application.AdvertisingIdentifierCallback), func) as UnityEngine.Application.AdvertisingIdentifierCallback;
            }

            bool o = UnityEngine.Application.RequestAdvertisingIdentifierAsync(arg0);
            LuaDLL.lua_pushboolean(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Ejemplo n.º 2
0
    static int RequestAdvertisingIdentifierAsync(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UnityEngine.Application.AdvertisingIdentifierCallback arg0 = LuaScriptMgr.GetNetObject <UnityEngine.Application.AdvertisingIdentifierCallback>(L, 1);
        bool o = Application.RequestAdvertisingIdentifierAsync(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Ejemplo n.º 3
0
    public static Delegate UnityEngine_Application_AdvertisingIdentifierCallback(LuaFunction func)
    {
        if (func == null)
        {
            UnityEngine.Application.AdvertisingIdentifierCallback fn = delegate { };
            return(fn);
        }

        UnityEngine.Application.AdvertisingIdentifierCallback d = (new UnityEngine_Application_AdvertisingIdentifierCallback_Event(func)).Call;
        return(d);
    }
Ejemplo n.º 4
0
 static int QPYX_RequestAdvertisingIdentifierAsync_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 1);
         UnityEngine.Application.AdvertisingIdentifierCallback QPYX_arg0_YXQP = (UnityEngine.Application.AdvertisingIdentifierCallback)ToLua.CheckDelegate <UnityEngine.Application.AdvertisingIdentifierCallback>(L_YXQP, 1);
         bool QPYX_o_YXQP = UnityEngine.Application.RequestAdvertisingIdentifierAsync(QPYX_arg0_YXQP);
         LuaDLL.lua_pushboolean(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Ejemplo n.º 5
0
 static int RequestAdvertisingIdentifierAsync(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Application.AdvertisingIdentifierCallback arg0 = (UnityEngine.Application.AdvertisingIdentifierCallback)ToLua.CheckDelegate <UnityEngine.Application.AdvertisingIdentifierCallback>(L, 1);
         bool o = UnityEngine.Application.RequestAdvertisingIdentifierAsync(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
        static StackObject *RequestAdvertisingIdentifierAsync_38(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Application.AdvertisingIdentifierCallback delegateMethod = (UnityEngine.Application.AdvertisingIdentifierCallback) typeof(UnityEngine.Application.AdvertisingIdentifierCallback).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = UnityEngine.Application.RequestAdvertisingIdentifierAsync(delegateMethod);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }
Ejemplo n.º 7
0
    public static Delegate UnityEngine_Application_AdvertisingIdentifierCallback(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            UnityEngine.Application.AdvertisingIdentifierCallback fn = delegate(string param0, bool param1, string param2) { };
            return(fn);
        }

        if (!flag)
        {
            UnityEngine.Application.AdvertisingIdentifierCallback d = (new UnityEngine_Application_AdvertisingIdentifierCallback_Event(func)).Call;
            return(d);
        }
        else
        {
            UnityEngine.Application.AdvertisingIdentifierCallback d = (new UnityEngine_Application_AdvertisingIdentifierCallback_Event(func, self)).CallWithSelf;
            return(d);
        }
    }
Ejemplo n.º 8
0
        static internal int checkDelegate(IntPtr l, int p, out UnityEngine.Application.AdvertisingIdentifierCallback ua)
        {
            int op = extractFunction(l, p);

            if (LuaDLL.lua_isnil(l, p))
            {
                ua = null;
                return(op);
            }
            else if (LuaDLL.lua_isuserdata(l, p) == 1)
            {
                ua = (UnityEngine.Application.AdvertisingIdentifierCallback)checkObj(l, p);
                return(op);
            }
            if (LuaDLL.lua_isnil(l, -1))
            {
                ua = null;
                return(op);
            }
            LuaDelegate ld;

            checkType(l, -1, out ld);
            LuaDLL.lua_pop(l, 1);
            if (ld.d != null)
            {
                ua = (UnityEngine.Application.AdvertisingIdentifierCallback)ld.d;
                return(op);
            }

            l  = LuaState.get(l).L;
            ua = (string a1, bool a2, string a3) =>
            {
                int error = pushTry(l);

                pushValue(l, a1);
                pushValue(l, a2);
                pushValue(l, a3);
                ld.pcall(3, error);
                LuaDLL.lua_settop(l, error - 1);
            };
            ld.d = ua;
            return(op);
        }
Ejemplo n.º 9
0
        static int _m_RequestAdvertisingIdentifierAsync_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    UnityEngine.Application.AdvertisingIdentifierCallback delegateMethod = translator.GetDelegate <UnityEngine.Application.AdvertisingIdentifierCallback>(L, 1);

                    bool __cl_gen_ret = UnityEngine.Application.RequestAdvertisingIdentifierAsync(delegateMethod);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
    static bool Application_RequestAdvertisingIdentifierAsync__AdvertisingIdentifierCallback(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 1)
        {
            UnityEngine.Application.AdvertisingIdentifierCallback arg0 = JSDataExchangeMgr.GetJSArg <UnityEngine.Application.AdvertisingIdentifierCallback>(() =>
            {
                if (JSApi.isFunctionS((int)JSApi.GetType.Arg))
                {
                    return(Application_RequestAdvertisingIdentifierAsync_GetDelegate_member16_arg0(JSApi.getFunctionS((int)JSApi.GetType.Arg)));
                }
                else
                {
                    return((UnityEngine.Application.AdvertisingIdentifierCallback)JSMgr.datax.getObject((int)JSApi.GetType.Arg));
                }
            });
            JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(UnityEngine.Application.RequestAdvertisingIdentifierAsync(arg0)));
        }

        return(true);
    }
Ejemplo n.º 11
0
    public UnityEngine.Application.AdvertisingIdentifierCallback UnityEngine_Application_AdvertisingIdentifierCallback(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            UnityEngine.Application.AdvertisingIdentifierCallback fn = delegate(string param0, bool param1, string param2) { };
            return(fn);
        }

        if (!flag)
        {
            UnityEngine_Application_AdvertisingIdentifierCallback_Event target = new UnityEngine_Application_AdvertisingIdentifierCallback_Event(func);
            UnityEngine.Application.AdvertisingIdentifierCallback       d      = target.Call;
            target.method = d.Method;
            return(d);
        }
        else
        {
            UnityEngine_Application_AdvertisingIdentifierCallback_Event target = new UnityEngine_Application_AdvertisingIdentifierCallback_Event(func, self);
            UnityEngine.Application.AdvertisingIdentifierCallback       d      = target.CallWithSelf;
            target.method = d.Method;
            return(d);
        }
    }
Ejemplo n.º 12
0
 void Push_UnityEngine_Application_AdvertisingIdentifierCallback(IntPtr L, UnityEngine.Application.AdvertisingIdentifierCallback o)
 {
     ToLua.Push(L, o);
 }
Ejemplo n.º 13
0
 public static Delegate UnityEngine_Application_AdvertisingIdentifierCallback_Self(LuaFunction func, LuaTable self)
 {
     UnityEngine.Application.AdvertisingIdentifierCallback d = (new UnityEngine_Application_AdvertisingIdentifierCallback_Event_Self(func, self)).Call;
     return(d);
 }