static int set_name(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ABVObject obj = (ABVObject)o; string arg0 = ToLua.CheckString(L, 2); obj.name = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index name on a nil value")); } }
static int get_hash(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ABVObject obj = (ABVObject)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 get_size(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ABVObject obj = (ABVObject)o; int ret = obj.size; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index size on a nil value")); } }
static int set_size(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); ABVObject obj = (ABVObject)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.size = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index size on a nil value")); } }
static int _CreateABVObject(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { ABVObject obj = new ABVObject(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: ABVObject.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }