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

summaryrefslogtreecommitdiff
path: root/source/game/StarStatusController.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-25 18:12:54 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-25 18:12:54 +1000
commit7d205330dbf1c2fd44d9d58393ab46434ac8bb5e (patch)
treee73db06236120e2399f0b4863257477eec528295 /source/game/StarStatusController.hpp
parente2424b7dcf60d18b277b092eb7f2a947fff27415 (diff)
More directives optimization
Diffstat (limited to 'source/game/StarStatusController.hpp')
-rw-r--r--source/game/StarStatusController.hpp12
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;