Beispiel #1
0
 static int OpenFromTXT(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         TableUtil obj  = (TableUtil)ToLua.CheckObject(L, 1, typeof(TableUtil));
         string    arg0 = ToLua.CheckString(L, 2);
         bool      o    = obj.OpenFromTXT(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }