static int LoadedLevelName(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameResFactory obj = (GameResFactory)ToLua.CheckObject(L, 1, typeof(GameResFactory)); int o = obj.LoadedLevelName(); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }