Ejemplo n.º 1
0
 static int OnResourceInited(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Framework.GameManager obj = (Framework.GameManager)ToLua.CheckObject <Framework.GameManager>(L, 1);
         obj.OnResourceInited();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 2
0
 static int OnMessage(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Framework.GameManager obj = (Framework.GameManager)ToLua.CheckObject <Framework.GameManager>(L, 1);
         Framework.Interfaces.INotification arg0 = (Framework.Interfaces.INotification)ToLua.CheckObject <Framework.Interfaces.INotification>(L, 2);
         obj.OnMessage(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }