static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); QFramework.QMgrBehaviour obj = (QFramework.QMgrBehaviour)ToLua.CheckObject <QFramework.QMgrBehaviour>(L, 1); obj.Init(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SendEvent(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); QFramework.QMgrBehaviour obj = (QFramework.QMgrBehaviour)ToLua.CheckObject <QFramework.QMgrBehaviour>(L, 1); object arg0 = ToLua.ToVarObject(L, 2); obj.SendEvent((IConvertible)arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SendMsg(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); QFramework.QMgrBehaviour obj = (QFramework.QMgrBehaviour)ToLua.CheckObject <QFramework.QMgrBehaviour>(L, 1); QFramework.QMsg arg0 = (QFramework.QMsg)ToLua.CheckObject <QFramework.QMsg>(L, 2); obj.SendMsg(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int UnRegistEvent(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); QFramework.QMgrBehaviour obj = (QFramework.QMgrBehaviour)ToLua.CheckObject <QFramework.QMgrBehaviour>(L, 1); object arg0 = ToLua.ToVarObject(L, 2); QFramework.OnEvent arg1 = (QFramework.OnEvent)ToLua.CheckDelegate <QFramework.OnEvent>(L, 3); obj.UnRegistEvent((IConvertible)arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_Manager(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); QFramework.QMgrBehaviour obj = (QFramework.QMgrBehaviour)o; QFramework.IManager ret = obj.Manager; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Manager on a nil value")); } }