public void __Gen_Delegate_Imp3(Maria.EventCustom p0) { #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); translator.Push(L, p0); int __gen_error = LuaAPI.lua_pcall(L, 1, 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 }
static int _g_get_Name(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Maria.EventCustom __cl_gen_to_be_invoked = (Maria.EventCustom)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, __cl_gen_to_be_invoked.Name); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_Addition(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { Maria.EventCustom __cl_gen_to_be_invoked = (Maria.EventCustom)translator.FastGetCSObj(L, 1); translator.PushAny(L, __cl_gen_to_be_invoked.Addition); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <Maria.Context>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { Maria.Context ctx = (Maria.Context)translator.GetObject(L, 2, typeof(Maria.Context)); string name = LuaAPI.lua_tostring(L, 3); Maria.EventCustom __cl_gen_ret = new Maria.EventCustom(ctx, name); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 4 && translator.Assignable <Maria.Context>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 4)) { Maria.Context ctx = (Maria.Context)translator.GetObject(L, 2, typeof(Maria.Context)); string name = LuaAPI.lua_tostring(L, 3); object addition = translator.GetObject(L, 4, typeof(object)); Maria.EventCustom __cl_gen_ret = new Maria.EventCustom(ctx, name, addition); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 5 && translator.Assignable <Maria.Context>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 4) && translator.Assignable <object>(L, 5)) { Maria.Context ctx = (Maria.Context)translator.GetObject(L, 2, typeof(Maria.Context)); string name = LuaAPI.lua_tostring(L, 3); object addition = translator.GetObject(L, 4, typeof(object)); object ud = translator.GetObject(L, 5, typeof(object)); Maria.EventCustom __cl_gen_ret = new Maria.EventCustom(ctx, name, addition, ud); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to Maria.EventCustom constructor!")); }