expose core functions

Exposed/added functions/methods:
- IsPlayer()
- GameObject:AddLoot(entry,amount)
This commit is contained in:
55Honey
2022-06-04 19:36:55 +02:00
parent 7e64c3dcbd
commit af59e0dc90
3 changed files with 79 additions and 6 deletions

View File

@@ -180,6 +180,7 @@ ElunaRegister<Object> ObjectMethods[] =
// Boolean
{ "IsInWorld", &LuaObject::IsInWorld },
{ "IsPlayer", &LuaObject::IsPlayer },
{ "HasFlag", &LuaObject::HasFlag },
// Other
@@ -914,6 +915,7 @@ ElunaRegister<GameObject> GameObjectMethods[] =
{ "Despawn", &LuaGameObject::Despawn },
{ "Respawn", &LuaGameObject::Respawn },
{ "SaveToDB", &LuaGameObject::SaveToDB },
{ "AddLoot", &LuaGameObject::AddLoot },
{ NULL, NULL }
};