[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 1 deletions

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)

View File

@ -326,6 +326,8 @@ luabind::scope lua_register_packet() {
.def(luabind::constructor<>())
.def(luabind::constructor<int,int>())
.def(luabind::constructor<int,int,bool>())
.property("null", &Lua_Packet::Null)
.property("valid", &Lua_Packet::Valid)
.def("GetOpcode", &Lua_Packet::GetOpcode)
.def("GetRawOpcode", &Lua_Packet::GetRawOpcode)
.def("GetSize", &Lua_Packet::GetSize)

View File

@ -146,6 +146,8 @@ bool Lua_Raid::DoesAnyMemberHaveExpeditionLockout(std::string expedition_name, s
luabind::scope lua_register_raid() {
return luabind::class_<Lua_Raid>("Raid")
.def(luabind::constructor<>())
.property("null", &Lua_Raid::Null)
.property("valid", &Lua_Raid::Valid)
.def("BalanceHP", (void(Lua_Raid::*)(int,uint32))&Lua_Raid::BalanceHP)
.def("CastGroupSpell", (void(Lua_Raid::*)(Lua_Mob,int,uint32))&Lua_Raid::CastGroupSpell)
.def("DoesAnyMemberHaveExpeditionLockout", (bool(Lua_Raid::*)(std::string, std::string))&Lua_Raid::DoesAnyMemberHaveExpeditionLockout)

View File

@ -141,6 +141,8 @@ uint32 Lua_Spawn::GetKillCount() {
luabind::scope lua_register_spawn() {
return luabind::class_<Lua_Spawn>("Spawn")
.def(luabind::constructor<>())
.property("null", &Lua_Spawn::Null)
.property("valid", &Lua_Spawn::Valid)
.def("CurrentNPCID", (uint32(Lua_Spawn::*)(void))&Lua_Spawn::CurrentNPCID)
.def("Depop", (void(Lua_Spawn::*)(void))&Lua_Spawn::Depop)
.def("Disable", (void(Lua_Spawn::*)(void))&Lua_Spawn::Disable)

View File

@ -493,6 +493,8 @@ luabind::scope lua_register_spell() {
return luabind::class_<Lua_Spell>("Spell")
.def(luabind::constructor<>())
.def(luabind::constructor<int>())
.property("null", &Lua_Spell::Null)
.property("valid", &Lua_Spell::Valid)
.def("AEDuration", &Lua_Spell::GetAEDuration)
.def("AEMaxTargets", &Lua_Spell::GetAEMaxTargets)
.def("Activated", &Lua_Spell::GetActivated)