diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-01-21 09:07:37 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-01-21 09:07:37 +1100 |
commit | 3f8b480b21538a97e6256ad7a0fcb95cb1b27e46 (patch) | |
tree | 9c0353ebb114127fd9ca11d1339e478b994fb434 /source/game/StarHumanoid.hpp | |
parent | 449d05d195cf7b3215a2338afa593bfcef052796 (diff) |
let chest and leg armor override humanoid config values
Diffstat (limited to 'source/game/StarHumanoid.hpp')
-rw-r--r-- | source/game/StarHumanoid.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/game/StarHumanoid.hpp b/source/game/StarHumanoid.hpp index d43c5ef..d11de1d 100644 --- a/source/game/StarHumanoid.hpp +++ b/source/game/StarHumanoid.hpp @@ -127,7 +127,7 @@ public: void setIdentity(HumanoidIdentity const& identity); HumanoidIdentity const& identity() const; - void loadConfig(Json const& config); + void loadConfig(Json merger = JsonObject()); // All of the image identifiers here are meant to be image *base* names, with // a collection of frames specific to each piece. If an image is set to @@ -308,6 +308,9 @@ private: Maybe<DancePtr> getDance() const; + Json m_baseConfig; + Json m_mergeConfig; + Vec2F m_globalOffset; Vec2F m_headRunOffset; Vec2F m_headSwimOffset; |