Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/scripting/StarWorldLuaBindings.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-25 00:49:20 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-25 00:49:20 +1000
commitea084165bf2f414a49a559ddf5921b9073fc464c (patch)
treec8f1263d9e11600f3632df2d0202cb884673c97e /source/game/scripting/StarWorldLuaBindings.hpp
parent8547c56ba4607e1c4efac483f97f01b8ba8c3a01 (diff)
Optimize entityPortrait: Drawable > LuaTable instead of Drawable > Json > LuaTable
Diffstat (limited to 'source/game/scripting/StarWorldLuaBindings.hpp')
-rw-r--r--source/game/scripting/StarWorldLuaBindings.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/game/scripting/StarWorldLuaBindings.hpp b/source/game/scripting/StarWorldLuaBindings.hpp
index e2d082c..e308ded 100644
--- a/source/game/scripting/StarWorldLuaBindings.hpp
+++ b/source/game/scripting/StarWorldLuaBindings.hpp
@@ -5,6 +5,7 @@
#include "StarRect.hpp"
#include "StarPoly.hpp"
#include "StarColor.hpp"
+#include "StarDrawable.hpp"
#include "StarGameTypes.hpp"
#include "StarCollisionBlock.hpp"
#include "StarLua.hpp"
@@ -122,7 +123,7 @@ namespace LuaBindings {
Maybe<String> entityGender(World* world, EntityId entityId);
Maybe<String> entityName(World* world, EntityId entityId);
Maybe<String> entityDescription(World* world, EntityId entityId, Maybe<String> const& species);
- LuaNullTermWrapper<Maybe<JsonArray>> entityPortrait(World* world, EntityId entityId, String const& portraitMode);
+ LuaNullTermWrapper<Maybe<List<Drawable>>> entityPortrait(World* world, EntityId entityId, String const& portraitMode);
Maybe<String> entityHandItem(World* world, EntityId entityId, String const& handName);
Json entityHandItemDescriptor(World* world, EntityId entityId, String const& handName);
LuaNullTermWrapper<Maybe<String>> entityUniqueId(World* world, EntityId entityId);