Add world object methods

This commit is contained in:
Rochet2
2017-09-28 23:45:41 +03:00
parent b1e31a6886
commit fad53ae637
3 changed files with 216 additions and 22 deletions

View File

@@ -220,6 +220,16 @@ ElunaRegister<WorldObject> WorldObjectMethods[] =
// Boolean
{ "IsWithinLoS", &LuaWorldObject::IsWithinLoS },
{ "IsInMap", &LuaWorldObject::IsInMap },
{ "IsWithinDist3d", &LuaWorldObject::IsWithinDist3d },
{ "IsWithinDist2d", &LuaWorldObject::IsWithinDist2d },
{ "IsWithinDist", &LuaWorldObject::IsWithinDist },
{ "IsWithinDistInMap", &LuaWorldObject::IsWithinDistInMap },
{ "IsInRange", &LuaWorldObject::IsInRange },
{ "IsInRange2d", &LuaWorldObject::IsInRange2d },
{ "IsInRange3d", &LuaWorldObject::IsInRange3d },
{ "IsInFront", &LuaWorldObject::IsInFront },
{ "IsInBack", &LuaWorldObject::IsInBack },
// Other
{ "SummonGameObject", &LuaWorldObject::SummonGameObject },
@@ -359,7 +369,6 @@ ElunaRegister<Unit> UnitMethods[] =
{ "IsStopped", &LuaUnit::IsStopped },
{ "HasUnitState", &LuaUnit::HasUnitState },
{ "IsQuestGiver", &LuaUnit::IsQuestGiver },
{ "IsWithinDistInMap", &LuaUnit::IsWithinDistInMap },
{ "IsInAccessiblePlaceFor", &LuaUnit::IsInAccessiblePlaceFor },
{ "IsVendor", &LuaUnit::IsVendor },
{ "IsRooted", &LuaUnit::IsRooted },