static int Reset(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Nova.Variables obj = (Nova.Variables)ToLua.CheckObject <Nova.Variables>(L, 1); obj.Reset(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CopyFrom(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Nova.Variables obj = (Nova.Variables)ToLua.CheckObject <Nova.Variables>(L, 1); Nova.Variables arg0 = (Nova.Variables)ToLua.CheckObject <Nova.Variables>(L, 2); obj.CopyFrom(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ToString(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Nova.Variables obj = (Nova.Variables)ToLua.CheckObject <Nova.Variables>(L, 1); string o = obj.ToString(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Set(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); Nova.Variables obj = (Nova.Variables)ToLua.CheckObject <Nova.Variables>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); obj.Set(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_hash(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.Variables obj = (Nova.Variables)o; string ret = obj.hash; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index hash on a nil value")); } }
static int _CreateNova_Variables(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { Nova.Variables obj = new Nova.Variables(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.Variables.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }