Example #1
0
 static int ReadFile(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         GameResFactory obj  = (GameResFactory)ToLua.CheckObject(L, 1, typeof(GameResFactory));
         string         arg0 = ToLua.CheckString(L, 2);
         LuaFunction    arg1 = ToLua.CheckLuaFunction(L, 3);
         obj.ReadFile(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }