mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
Add GetZoneVersion to expedition api
This commit is contained in:
parent
ea34aa2030
commit
b5db40cba6
@ -115,6 +115,11 @@ int Lua_Expedition::GetZoneID() {
|
|||||||
return self->GetDynamicZone().GetZoneID();
|
return self->GetDynamicZone().GetZoneID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Lua_Expedition::GetZoneVersion() {
|
||||||
|
Lua_Safe_Call_Int();
|
||||||
|
return self->GetDynamicZone().GetZoneVersion();
|
||||||
|
}
|
||||||
|
|
||||||
bool Lua_Expedition::HasLockout(std::string event_name) {
|
bool Lua_Expedition::HasLockout(std::string event_name) {
|
||||||
Lua_Safe_Call_Bool();
|
Lua_Safe_Call_Bool();
|
||||||
return self->HasLockout(event_name);
|
return self->HasLockout(event_name);
|
||||||
@ -209,6 +214,7 @@ luabind::scope lua_register_expedition() {
|
|||||||
.def("GetSecondsRemaining", (int(Lua_Expedition::*)(void))&Lua_Expedition::GetSecondsRemaining)
|
.def("GetSecondsRemaining", (int(Lua_Expedition::*)(void))&Lua_Expedition::GetSecondsRemaining)
|
||||||
.def("GetUUID", (std::string(Lua_Expedition::*)(void))&Lua_Expedition::GetUUID)
|
.def("GetUUID", (std::string(Lua_Expedition::*)(void))&Lua_Expedition::GetUUID)
|
||||||
.def("GetZoneID", (int(Lua_Expedition::*)(void))&Lua_Expedition::GetZoneID)
|
.def("GetZoneID", (int(Lua_Expedition::*)(void))&Lua_Expedition::GetZoneID)
|
||||||
|
.def("GetZoneVersion", &Lua_Expedition::GetZoneVersion)
|
||||||
.def("HasLockout", (bool(Lua_Expedition::*)(std::string))&Lua_Expedition::HasLockout)
|
.def("HasLockout", (bool(Lua_Expedition::*)(std::string))&Lua_Expedition::HasLockout)
|
||||||
.def("HasReplayLockout", (bool(Lua_Expedition::*)(void))&Lua_Expedition::HasReplayLockout)
|
.def("HasReplayLockout", (bool(Lua_Expedition::*)(void))&Lua_Expedition::HasReplayLockout)
|
||||||
.def("RemoveCompass", (void(Lua_Expedition::*)(void))&Lua_Expedition::RemoveCompass)
|
.def("RemoveCompass", (void(Lua_Expedition::*)(void))&Lua_Expedition::RemoveCompass)
|
||||||
|
|||||||
@ -66,6 +66,7 @@ public:
|
|||||||
int GetSecondsRemaining();
|
int GetSecondsRemaining();
|
||||||
std::string GetUUID();
|
std::string GetUUID();
|
||||||
int GetZoneID();
|
int GetZoneID();
|
||||||
|
int GetZoneVersion();
|
||||||
bool HasLockout(std::string event_name);
|
bool HasLockout(std::string event_name);
|
||||||
bool HasReplayLockout();
|
bool HasReplayLockout();
|
||||||
void RemoveCompass();
|
void RemoveCompass();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user