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

summaryrefslogtreecommitdiff
path: root/source/game/StarTechController.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/StarTechController.hpp
parente2424b7dcf60d18b277b092eb7f2a947fff27415 (diff)
More directives optimization
Diffstat (limited to 'source/game/StarTechController.hpp')
-rw-r--r--source/game/StarTechController.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/game/StarTechController.hpp b/source/game/StarTechController.hpp
index badc4ec..584cf5d 100644
--- a/source/game/StarTechController.hpp
+++ b/source/game/StarTechController.hpp
@@ -6,6 +6,7 @@
#include "StarLuaComponents.hpp"
#include "StarLuaActorMovementComponent.hpp"
#include "StarTechDatabase.hpp"
+#include "StarDirectives.hpp"
namespace Star {
@@ -67,7 +68,7 @@ public:
void tickSlave();
Maybe<ParentState> parentState() const;
- String parentDirectives() const;
+ DirectivesGroup const& parentDirectives() const;
Vec2F parentOffset() const;
bool toolUsageSuppressed() const;
@@ -120,7 +121,7 @@ private:
scriptComponent;
bool visible;
bool toolUsageSuppressed;
- String parentDirectives;
+ Directives parentDirectives;
TechAnimatorGroup::ElementId animatorId;
};
@@ -159,7 +160,7 @@ private:
Vec2F m_aimPosition;
NetElementData<Maybe<ParentState>> m_parentState;
- NetElementString m_parentDirectives;
+ NetElementData<DirectivesGroup> m_parentDirectives;
NetElementFloat m_xParentOffset;
NetElementFloat m_yParentOffset;
NetElementBool m_parentHidden;