Пример #1
0
 static int AddLoopEvent(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         TimeManager obj  = (TimeManager)ToLua.CheckObject <TimeManager>(L, 1);
         string      arg0 = ToLua.CheckString(L, 2);
         float       arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
         LuaFunction arg3 = ToLua.CheckLuaFunction(L, 5);
         obj.AddLoopEvent(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }