static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { DCET.Model.NumericWatcher_Hp_ShowUI gen_ret = new DCET.Model.NumericWatcher_Hp_ShowUI(); 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.NumericWatcher_Hp_ShowUI constructor!")); }
static int _m_Run(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.NumericWatcher_Hp_ShowUI gen_to_be_invoked = (DCET.Model.NumericWatcher_Hp_ShowUI)translator.FastGetCSObj(L, 1); { long _id = LuaAPI.lua_toint64(L, 2); int _value = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.Run(_id, _value); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }