[Quest API] Add back removed lua class properties (#1742)

Fixes regression from 7b6decae
This commit is contained in:
hg
2021-11-12 21:16:39 -05:00
committed by GitHub
parent 1a69218045
commit 3c87480553
5 changed files with 11 additions and 1 deletions
+3 -1
View File
@@ -265,10 +265,12 @@ void Lua_ItemInst::ClearTimers() {
}
luabind::scope lua_register_iteminst() {
return luabind::class_<Lua_ItemInst>("ItemInst")
return luabind::class_<Lua_ItemInst>("ItemInst")
.def(luabind::constructor<>())
.def(luabind::constructor<int>())
.def(luabind::constructor<int,int>())
.property("null", &Lua_ItemInst::Null)
.property("valid", &Lua_ItemInst::Valid)
.def("AddExp", (void(Lua_ItemInst::*)(uint32))&Lua_ItemInst::AddExp)
.def("ClearTimers", (void(Lua_ItemInst::*)(void))&Lua_ItemInst::ClearTimers)
.def("Clone", (Lua_ItemInst(Lua_ItemInst::*)(void))&Lua_ItemInst::Clone)