mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
[Quest API] Add Several Door Methods to Perl/Lua (#4451)
This commit is contained in:
@@ -180,6 +180,96 @@ uint32 Lua_Door::GetID() {
|
||||
return self->GetID();
|
||||
}
|
||||
|
||||
uint8 Lua_Door::GetTriggerDoorID() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetTriggerDoorID();
|
||||
}
|
||||
|
||||
uint8 Lua_Door::GetTriggerType() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetTriggerType();
|
||||
}
|
||||
|
||||
bool Lua_Door::IsLDoNDoor() {
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->IsLDoNDoor();
|
||||
}
|
||||
|
||||
uint32 Lua_Door::GetClientVersionMask() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetClientVersionMask();
|
||||
}
|
||||
|
||||
int Lua_Door::GetDoorParam() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetDoorParam();
|
||||
}
|
||||
|
||||
bool Lua_Door::HasDestinationZone() {
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->HasDestinationZone();
|
||||
}
|
||||
|
||||
bool Lua_Door::IsDestinationZoneSame() {
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->IsDestinationZoneSame();
|
||||
}
|
||||
|
||||
bool Lua_Door::IsDoorBlacklisted() {
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->IsDoorBlacklisted();
|
||||
}
|
||||
|
||||
std::string Lua_Door::GetDestinationZoneName() {
|
||||
Lua_Safe_Call_String();
|
||||
return self->GetDestinationZoneName();
|
||||
}
|
||||
|
||||
int Lua_Door::GetDestinationInstanceID() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetDestinationInstanceID();
|
||||
}
|
||||
|
||||
float Lua_Door::GetDestinationX() {
|
||||
Lua_Safe_Call_Real();
|
||||
return self->GetDestinationX();
|
||||
}
|
||||
|
||||
float Lua_Door::GetDestinationY() {
|
||||
Lua_Safe_Call_Real();
|
||||
return self->GetDestinationY();
|
||||
}
|
||||
|
||||
float Lua_Door::GetDestinationZ() {
|
||||
Lua_Safe_Call_Real();
|
||||
return self->GetDestinationZ();
|
||||
}
|
||||
|
||||
float Lua_Door::GetDestinationHeading() {
|
||||
Lua_Safe_Call_Real();
|
||||
return self->GetDestinationHeading();
|
||||
}
|
||||
|
||||
int Lua_Door::GetDzSwitchID() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetDzSwitchID();
|
||||
}
|
||||
|
||||
int Lua_Door::GetInvertState() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetInvertState();
|
||||
}
|
||||
|
||||
void Lua_Door::SetInvertState(int invert_state) {
|
||||
Lua_Safe_Call_Void();
|
||||
self->SetInvertState(invert_state);
|
||||
}
|
||||
|
||||
uint32 Lua_Door::GetGuildID() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetGuildID();
|
||||
}
|
||||
|
||||
luabind::scope lua_register_door() {
|
||||
return luabind::class_<Lua_Door, Lua_Entity>("Door")
|
||||
.def(luabind::constructor<>())
|
||||
@@ -191,24 +281,42 @@ luabind::scope lua_register_door() {
|
||||
.def("ForceOpen", (void(Lua_Door::*)(Lua_Mob))&Lua_Door::ForceOpen)
|
||||
.def("ForceOpen", (void(Lua_Door::*)(Lua_Mob,bool))&Lua_Door::ForceOpen)
|
||||
.def("GetDisableTimer", (bool(Lua_Door::*)(void))&Lua_Door::GetDisableTimer)
|
||||
.def("GetClientVersionMask", (uint32(Lua_Door::*)(void))&Lua_Door::GetClientVersionMask)
|
||||
.def("GetDestinationHeading", (float(Lua_Door::*)(void))&Lua_Door::GetDestinationHeading)
|
||||
.def("GetDestinationInstanceID", (int(Lua_Door::*)(void))&Lua_Door::GetDestinationInstanceID)
|
||||
.def("GetDestinationX", (float(Lua_Door::*)(void))&Lua_Door::GetDestinationX)
|
||||
.def("GetDestinationY", (float(Lua_Door::*)(void))&Lua_Door::GetDestinationY)
|
||||
.def("GetDestinationZ", (float(Lua_Door::*)(void))&Lua_Door::GetDestinationZ)
|
||||
.def("GetDestinationZoneName", (std::string(Lua_Door::*)(void))&Lua_Door::GetDestinationZoneName)
|
||||
.def("GetDoorDBID", (uint32(Lua_Door::*)(void))&Lua_Door::GetDoorDBID)
|
||||
.def("GetDoorID", (uint32(Lua_Door::*)(void))&Lua_Door::GetDoorID)
|
||||
.def("GetDoorName", (const char*(Lua_Door::*)(void))&Lua_Door::GetDoorName)
|
||||
.def("GetDoorParam", (int(Lua_Door::*)(void))&Lua_Door::GetDoorParam)
|
||||
.def("GetDzSwitchID", (int(Lua_Door::*)(void))&Lua_Door::GetDzSwitchID)
|
||||
.def("GetGuildID", (uint32(Lua_Door::*)(void))&Lua_Door::GetGuildID)
|
||||
.def("GetHeading", (float(Lua_Door::*)(void))&Lua_Door::GetHeading)
|
||||
.def("GetID", (uint32(Lua_Door::*)(void))&Lua_Door::GetID)
|
||||
.def("GetIncline", (uint32(Lua_Door::*)(void))&Lua_Door::GetIncline)
|
||||
.def("GetInvertState", (int(Lua_Door::*)(void))&Lua_Door::GetInvertState)
|
||||
.def("GetKeyItem", (uint32(Lua_Door::*)(void))&Lua_Door::GetKeyItem)
|
||||
.def("GetLockPick", (uint32(Lua_Door::*)(void))&Lua_Door::GetLockPick)
|
||||
.def("GetNoKeyring", (int(Lua_Door::*)(void))&Lua_Door::GetNoKeyring)
|
||||
.def("GetOpenType", (uint32(Lua_Door::*)(void))&Lua_Door::GetOpenType)
|
||||
.def("GetSize", (uint32(Lua_Door::*)(void))&Lua_Door::GetSize)
|
||||
.def("GetTriggerDoorID", (uint8(Lua_Door::*)(void))&Lua_Door::GetTriggerDoorID)
|
||||
.def("GetTriggerType", (uint8(Lua_Door::*)(void))&Lua_Door::GetTriggerType)
|
||||
.def("GetX", (float(Lua_Door::*)(void))&Lua_Door::GetX)
|
||||
.def("GetY", (float(Lua_Door::*)(void))&Lua_Door::GetY)
|
||||
.def("GetZ", (float(Lua_Door::*)(void))&Lua_Door::GetZ)
|
||||
.def("HasDestinationZone", (bool(Lua_Door::*)(void))&Lua_Door::HasDestinationZone)
|
||||
.def("IsDestinationZoneSame", (bool(Lua_Door::*)(void))&Lua_Door::IsDestinationZoneSame)
|
||||
.def("IsDoorBlacklisted", (bool(Lua_Door::*)(void))&Lua_Door::IsDoorBlacklisted)
|
||||
.def("IsLDoNDoor", (bool(Lua_Door::*)(void))&Lua_Door::IsLDoNDoor)
|
||||
.def("SetDisableTimer", (void(Lua_Door::*)(bool))&Lua_Door::SetDisableTimer)
|
||||
.def("SetDoorName", (void(Lua_Door::*)(const char*))&Lua_Door::SetDoorName)
|
||||
.def("SetHeading", (void(Lua_Door::*)(float))&Lua_Door::SetHeading)
|
||||
.def("SetIncline", (void(Lua_Door::*)(uint32))&Lua_Door::SetIncline)
|
||||
.def("SetInvertState", (void(Lua_Door::*)(int))&Lua_Door::SetInvertState)
|
||||
.def("SetKeyItem", (void(Lua_Door::*)(uint32))&Lua_Door::SetKeyItem)
|
||||
.def("SetLocation", (void(Lua_Door::*)(float,float,float))&Lua_Door::SetLocation)
|
||||
.def("SetLockPick", (void(Lua_Door::*)(uint32))&Lua_Door::SetLockPick)
|
||||
|
||||
Reference in New Issue
Block a user