diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-01-21 19:16:23 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-01-21 19:16:23 +1100 |
commit | 46deaa1f1a3f770e55553c2392567eba467d08af (patch) | |
tree | a40c68efa901f54655c34a247991c977d2d8fd6a /source/game/scripting/StarWorldLuaBindings.hpp | |
parent | 034b6cb93f0b39aefceee69c81b911fe1bac3d27 (diff) |
add world.loungingEntities, world.loungableAnchorCount and anchor index arg to loungeableOccupied
Diffstat (limited to 'source/game/scripting/StarWorldLuaBindings.hpp')
-rw-r--r-- | source/game/scripting/StarWorldLuaBindings.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/game/scripting/StarWorldLuaBindings.hpp b/source/game/scripting/StarWorldLuaBindings.hpp index e3329bf..3cb8c72 100644 --- a/source/game/scripting/StarWorldLuaBindings.hpp +++ b/source/game/scripting/StarWorldLuaBindings.hpp @@ -154,7 +154,9 @@ namespace LuaBindings { Maybe<LuaValue> callScriptedEntity(World* world, EntityId entityId, String const& function, LuaVariadic<LuaValue> const& args); RpcPromise<Vec2F> findUniqueEntity(World* world, String const& uniqueId); RpcPromise<Json> sendEntityMessage(World* world, LuaEngine& engine, LuaValue entityId, String const& message, LuaVariadic<Json> args); - Maybe<bool> loungeableOccupied(World* world, EntityId entityId); + Maybe<List<EntityId>> loungingEntities(World* world, EntityId entityId, Maybe<size_t> anchorIndex); + Maybe<bool> loungeableOccupied(World* world, EntityId entityId, Maybe<size_t> anchorIndex); + Maybe<size_t> loungeableAnchorCount(World* world, EntityId entityId); bool isMonster(World* world, EntityId entityId, Maybe<bool> const& aggressive); Maybe<String> monsterType(World* world, EntityId entityId); Maybe<String> npcType(World* world, EntityId entityId); |