static int Restore(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Nova.MeshController obj = (Nova.MeshController)ToLua.CheckObject <Nova.MeshController>(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.MeshController obj = (Nova.MeshController)ToLua.CheckObject <Nova.MeshController>(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_meshEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.MeshController obj = (Nova.MeshController)o; bool ret = obj.meshEnabled; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index meshEnabled on a nil value")); } }
static int get_luaGlobalName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.MeshController obj = (Nova.MeshController)o; string ret = obj.luaGlobalName; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index luaGlobalName on a nil value")); } }
static int set_meshEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.MeshController obj = (Nova.MeshController)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.meshEnabled = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index meshEnabled on a nil value")); } }
static int set_luaGlobalName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.MeshController obj = (Nova.MeshController)o; string arg0 = ToLua.CheckString(L, 2); obj.luaGlobalName = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index luaGlobalName on a nil value")); } }