static int _m_ContainsValue(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Collections.Generic.Dictionary <string, Framework.Event.Action <string> > gen_to_be_invoked = (System.Collections.Generic.Dictionary <string, Framework.Event.Action <string> >)translator.FastGetCSObj(L, 1); { Framework.Event.Action <string> _value = translator.GetDelegate <Framework.Event.Action <string> >(L, 2); bool gen_ret = gen_to_be_invoked.ContainsValue(_value); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetAction(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Framework.Param gen_to_be_invoked = (Framework.Param)translator.FastGetCSObj(L, 1); { object _name = translator.GetObject(L, 2, typeof(object)); Framework.Event.Action gen_ret = gen_to_be_invoked.GetAction(_name); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Add(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Collections.Generic.Dictionary <string, Framework.Event.Action <string> > gen_to_be_invoked = (System.Collections.Generic.Dictionary <string, Framework.Event.Action <string> >)translator.FastGetCSObj(L, 1); { string _key = LuaAPI.lua_tostring(L, 2); Framework.Event.Action <string> _value = translator.GetDelegate <Framework.Event.Action <string> >(L, 3); gen_to_be_invoked.Add(_key, _value); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_AddEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Framework.Param gen_to_be_invoked = (Framework.Param)translator.FastGetCSObj(L, 1); { object _name = translator.GetObject(L, 2, typeof(object)); Framework.Event.Action _value = translator.GetDelegate <Framework.Event.Action>(L, 3); gen_to_be_invoked.AddEvent(_name, _value); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }