mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
Merge pull request #571 from AthrogatePEQ/master
Expose GetLowestLevel() to Lua.
This commit is contained in:
commit
a3c16ecdbe
@ -82,6 +82,11 @@ int Lua_Group::GetHighestLevel() {
|
||||
return self->GetHighestLevel();
|
||||
}
|
||||
|
||||
int Lua_Group::GetLowestLevel() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->GetLowestLevel();
|
||||
}
|
||||
|
||||
void Lua_Group::TeleportGroup(Lua_Mob sender, uint32 zone_id, uint32 instance_id, float x, float y, float z, float h) {
|
||||
Lua_Safe_Call_Void();
|
||||
self->TeleportGroup(sender, zone_id, instance_id, x, y, z, h);
|
||||
@ -121,6 +126,7 @@ luabind::scope lua_register_group() {
|
||||
.def("IsLeader", (bool(Lua_Group::*)(Lua_Mob))&Lua_Group::IsLeader)
|
||||
.def("GroupCount", (int(Lua_Group::*)(void))&Lua_Group::GroupCount)
|
||||
.def("GetHighestLevel", (int(Lua_Group::*)(void))&Lua_Group::GetHighestLevel)
|
||||
.def("GetLowestLevel", (int(Lua_Group::*)(void))&Lua_Group::GetLowestLevel)
|
||||
.def("TeleportGroup", (void(Lua_Group::*)(Lua_Mob,uint32,uint32,float,float,float,float))&Lua_Group::TeleportGroup)
|
||||
.def("GetID", (int(Lua_Group::*)(void))&Lua_Group::GetID)
|
||||
.def("GetMember", (Lua_Mob(Lua_Group::*)(int))&Lua_Group::GetMember);
|
||||
|
||||
@ -40,6 +40,7 @@ public:
|
||||
bool IsLeader(Lua_Mob leader);
|
||||
int GroupCount();
|
||||
int GetHighestLevel();
|
||||
int GetLowestLevel();
|
||||
void TeleportGroup(Lua_Mob sender, uint32 zone_id, uint32 instance_id, float x, float y, float z, float h);
|
||||
int GetID();
|
||||
Lua_Mob GetMember(int index);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user