aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Script.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 13:31:34 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 13:31:34 +0100
commit24578c9afb61ae65b300dd7fb645220e133089be (patch)
treec6451ea01a56f0bde33a803ea37169f59d0fc41d /src/crepe/api/Script.h
parentbcaee968761c1d2e85c20925b237480c87da9747 (diff)
parent707db8c94b6bb3921105f40658aab13511d8df07 (diff)
Merge branch 'wouter/text-component' into niels/UI
Diffstat (limited to 'src/crepe/api/Script.h')
-rw-r--r--src/crepe/api/Script.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crepe/api/Script.h b/src/crepe/api/Script.h
index a24e32e..4503525 100644
--- a/src/crepe/api/Script.h
+++ b/src/crepe/api/Script.h
@@ -156,7 +156,7 @@ private:
void subscribe_internal(const EventHandler<EventType> & callback, event_channel_t channel);
protected:
- OptionalRef<Mediator> mediator;
+
// NOTE: This must be the only constructor on Script, see "Late references" below
Script() = default;
//! Only \c BehaviorScript instantiates Script
@@ -186,12 +186,13 @@ private:
*
* \{
*/
+
//! Game object ID of game object parent BehaviorScript is attached to
game_object_id_t game_object_id;
//! Reference to parent component
OptionalRef<bool> active;
//! Mediator reference
-
+ OptionalRef<Mediator> mediator;
//! \}
private: