static int OnClickEquipCell(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UIManager obj = (UIManager)ToLua.CheckObject(L, 1, typeof(UIManager)); EventSystem.IEvent arg0 = (EventSystem.IEvent)ToLua.CheckObject(L, 2, typeof(EventSystem.IEvent)); obj.OnClickEquipCell(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int DispatchEvent(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); EventSystem.EventDispatcher obj = (EventSystem.EventDispatcher)ToLua.CheckObject(L, 1, typeof(EventSystem.EventDispatcher)); EventSystem.IEvent arg0 = (EventSystem.IEvent)ToLua.CheckObject(L, 2, typeof(EventSystem.IEvent)); bool o = obj.DispatchEvent(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }