static int _m_Handle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.EventProxy gen_to_be_invoked = (DCET.Model.EventProxy)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { gen_to_be_invoked.Handle( ); return(0); } if (gen_param_count == 2 && translator.Assignable <object>(L, 2)) { object _a = translator.GetObject(L, 2, typeof(object)); gen_to_be_invoked.Handle(_a); return(0); } if (gen_param_count == 3 && translator.Assignable <object>(L, 2) && translator.Assignable <object>(L, 3)) { object _a = translator.GetObject(L, 2, typeof(object)); object _b = translator.GetObject(L, 3, typeof(object)); gen_to_be_invoked.Handle(_a, _b); return(0); } if (gen_param_count == 4 && translator.Assignable <object>(L, 2) && translator.Assignable <object>(L, 3) && translator.Assignable <object>(L, 4)) { object _a = translator.GetObject(L, 2, typeof(object)); object _b = translator.GetObject(L, 3, typeof(object)); object _c = translator.GetObject(L, 4, typeof(object)); gen_to_be_invoked.Handle(_a, _b, _c); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to DCET.Model.EventProxy.Handle!")); }
static int _s_set_param(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.EventProxy gen_to_be_invoked = (DCET.Model.EventProxy)translator.FastGetCSObj(L, 1); gen_to_be_invoked.param = (System.Collections.Generic.List <object>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <object>)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_param(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.EventProxy gen_to_be_invoked = (DCET.Model.EventProxy)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.param); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <System.Action <System.Collections.Generic.List <object> > >(L, 2)) { System.Action <System.Collections.Generic.List <object> > _action = translator.GetDelegate <System.Action <System.Collections.Generic.List <object> > >(L, 2); DCET.Model.EventProxy gen_ret = new DCET.Model.EventProxy(_action); translator.Push(L, 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 DCET.Model.EventProxy constructor!")); }