static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { Logic.Test __cl_gen_ret = new Logic.Test(); 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 Logic.Test constructor!")); }
static int _m_Foo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Logic.Test __cl_gen_to_be_invoked = (Logic.Test)translator.FastGetCSObj(L, 1); { bool b = LuaAPI.lua_toboolean(L, 2); __cl_gen_to_be_invoked.Foo(b); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_TestDel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Logic.Test __cl_gen_to_be_invoked = (Logic.Test)translator.FastGetCSObj(L, 1); { Logic.Misc.TimerEntry.TimerHandler fun = translator.GetDelegate <Logic.Misc.TimerEntry.TimerHandler>(L, 2); __cl_gen_to_be_invoked.TestDel(fun); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }