예제 #1
0
 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));
     }
 }
예제 #2
0
 public EventSubscription(UserEvents.Events eventKey, QFramework.OnEvent onEvent)
 {
     this.eventKey = eventKey;
     this.onEvent  = onEvent;
 }