static int Restore(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Nova.AssetLoader obj = (Nova.AssetLoader)ToLua.CheckObject <Nova.AssetLoader>(L, 1); Nova.IRestoreData arg0 = (Nova.IRestoreData)ToLua.CheckObject <Nova.IRestoreData>(L, 2); obj.Restore(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetRestoreData(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Nova.AssetLoader obj = (Nova.AssetLoader)ToLua.CheckObject <Nova.AssetLoader>(L, 1); Nova.IRestoreData o = obj.GetRestoreData(); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_restorableObjectName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.AssetLoader obj = (Nova.AssetLoader)o; string ret = obj.restorableObjectName; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index restorableObjectName on a nil value")); } }
static int get_priority(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.AssetLoader obj = (Nova.AssetLoader)o; Nova.RestorablePriority ret = obj.priority; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index priority on a nil value")); } }