Ejemplo n.º 1
0
        public void __Gen_Delegate_Imp43(int p0, cn.sharesdk.unity3d.ResponseState p1, cn.sharesdk.unity3d.PlatformType p2, System.Collections.Hashtable p3)
        {
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
            RealStatePtr L = luaEnv.rawL;
            int err_func   = LuaAPI.load_error_func(L, errorFuncRef);
            ObjectTranslator translator = luaEnv.translator;

            LuaAPI.lua_getref(L, luaReference);

            LuaAPI.xlua_pushinteger(L, p0);
            translator.Push(L, p1);
            translator.Push(L, p2);
            translator.Push(L, p3);

            int __gen_error = LuaAPI.lua_pcall(L, 4, 0, err_func);
            if (__gen_error != 0)
            {
                luaEnv.ThrowExceptionFromError(err_func - 1);
            }



            LuaAPI.lua_settop(L, err_func - 1);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }
Ejemplo n.º 2
0
    static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        cn.sharesdk.unity3d.ResponseState o = (cn.sharesdk.unity3d.ResponseState)arg0;
        ToLua.Push(L, o);
        return(1);
    }
Ejemplo n.º 3
0
        public void __Gen_Delegate_Imp42(int p0, cn.sharesdk.unity3d.ResponseState p1, cn.sharesdk.unity3d.PlatformType p2, System.Collections.Hashtable p3)
        {
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
            RealStatePtr L = luaEnv.rawL;
            int errFunc    = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);
            ObjectTranslator translator = luaEnv.translator;
            LuaAPI.xlua_pushinteger(L, p0);
            translator.Push(L, p1);
            translator.Push(L, p2);
            translator.Push(L, p3);

            PCall(L, 4, 0, errFunc);



            LuaAPI.lua_settop(L, errFunc - 1);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }