mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 01:01:30 +00:00
Add follow getters to lua just in case
This commit is contained in:
parent
dbb368865c
commit
467e2d3114
@ -348,6 +348,21 @@ void Lua_NPC::SetFollowCanRun(bool v) {
|
||||
self->SetFollowCanRun(v);
|
||||
}
|
||||
|
||||
int Lua_NPC::GetFollowID() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetFollowID();
|
||||
}
|
||||
|
||||
int Lua_NPC::GetFollowDistance() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetFollowDistance();
|
||||
}
|
||||
|
||||
bool Lua_NPC::GetFollowCanRun() {
|
||||
Lua_Safe_Call_Bool();
|
||||
return self->GetFollowCanRun();
|
||||
}
|
||||
|
||||
int Lua_NPC::GetNPCSpellsID() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetNPCSpellsID();
|
||||
@ -590,6 +605,10 @@ luabind::scope lua_register_npc() {
|
||||
.def("SetFollowID", (void(Lua_NPC::*)(int))&Lua_NPC::SetFollowID)
|
||||
.def("SetFollowDistance", (void(Lua_NPC::*)(int))&Lua_NPC::SetFollowDistance)
|
||||
.def("SetFollowCanRun", (void(Lua_NPC::*)(bool))&Lua_NPC::SetFollowCanRun)
|
||||
.def("GetFollowID", (int(Lua_NPC::*)(void))&Lua_NPC::GetFollowID)
|
||||
.def("GetFollowDistance", (int(Lua_NPC::*)(void))&Lua_NPC::GetFollowDistance)
|
||||
.def("GetFollowCanRun", (bool(Lua_NPC::*)(void))&Lua_NPC::GetFollowCanRun)
|
||||
.def("GetNPCSpellsID", (int(Lua_NPC::*)(void))&Lua_NPC::GetNPCSpellsID)
|
||||
.def("GetNPCSpellsID", (int(Lua_NPC::*)(void))&Lua_NPC::GetNPCSpellsID)
|
||||
.def("GetSpawnPointID", (int(Lua_NPC::*)(void))&Lua_NPC::GetSpawnPointID)
|
||||
.def("GetSpawnPointX", (float(Lua_NPC::*)(void))&Lua_NPC::GetSpawnPointX)
|
||||
|
||||
@ -95,6 +95,9 @@ public:
|
||||
void SetFollowID(int id);
|
||||
void SetFollowDistance(int dist);
|
||||
void SetFollowCanRun(bool v);
|
||||
int GetFollowID();
|
||||
int GetFollowDistance();
|
||||
bool GetFollowCanRun();
|
||||
int GetNPCSpellsID();
|
||||
int GetSpawnPointID();
|
||||
float GetSpawnPointX();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user