diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 18:12:54 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-25 18:12:54 +1000 |
commit | 7d205330dbf1c2fd44d9d58393ab46434ac8bb5e (patch) | |
tree | e73db06236120e2399f0b4863257477eec528295 /source/game/StarStatusController.hpp | |
parent | e2424b7dcf60d18b277b092eb7f2a947fff27415 (diff) |
More directives optimization
Diffstat (limited to 'source/game/StarStatusController.hpp')
-rw-r--r-- | source/game/StarStatusController.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/game/StarStatusController.hpp b/source/game/StarStatusController.hpp index 3789bff..4e9839f 100644 --- a/source/game/StarStatusController.hpp +++ b/source/game/StarStatusController.hpp @@ -78,8 +78,8 @@ public: bool uniqueStatusEffectActive(String const& effectName) const; - String primaryDirectives() const; - void setPrimaryDirectives(String const& directives); + const Directives& primaryDirectives() const; + void setPrimaryDirectives(Directives const& directives); // damage request and notification methods should only be called on the master controller. List<DamageNotification> applyDamageRequest(DamageRequest const& damageRequest); @@ -118,7 +118,7 @@ public: void tickMaster(); void tickSlave(); - String parentDirectives() const; + const DirectivesGroup& parentDirectives() const; List<Drawable> drawables() const; List<LightSource> lightSources() const; List<OverheadBar> overheadBars(); @@ -180,7 +180,7 @@ private: struct UniqueEffectInstance { UniqueStatusEffectConfig effectConfig; - String parentDirectives; + Directives parentDirectives; HashSet<StatModifierGroupId> modifierGroups; StatScript script; UniqueEffectMetadataGroup::ElementId metadataId; @@ -205,7 +205,7 @@ private: NetElementGroup m_netGroup; StatCollection m_statCollection; NetElementData<JsonObject> m_statusProperties; - NetElementString m_parentDirectives; + NetElementData<DirectivesGroup> m_parentDirectives; UniqueEffectMetadataGroup m_uniqueEffectMetadata; EffectAnimatorGroup m_effectAnimators; @@ -226,7 +226,7 @@ private: Maybe<String> m_primaryAnimationConfig; StatScript m_primaryScript; - String m_primaryDirectives; + Directives m_primaryDirectives; EffectAnimatorGroup::ElementId m_primaryAnimatorId; List<DamageNotification> m_pendingSelfDamageNotifications; |