aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Script.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 13:10:25 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 13:10:25 +0100
commitfac06d488e635583307cd4a916a611500fb64c16 (patch)
treef62f79cc8ba540498d5dfa1deb4379469738a682 /src/crepe/api/Script.h
parent9d58e897fb68ab8dd001a5085cde2fae4634c274 (diff)
cleanup + fix examples
Diffstat (limited to 'src/crepe/api/Script.h')
-rw-r--r--src/crepe/api/Script.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/api/Script.h b/src/crepe/api/Script.h
index 837420f..051ea00 100644
--- a/src/crepe/api/Script.h
+++ b/src/crepe/api/Script.h
@@ -32,7 +32,7 @@ protected:
template <typename T>
std::vector<std::reference_wrapper<T>> get_components();
-private:
+protected:
// NOTE: Script must have a constructor without arguments so the game
// programmer doesn't need to manually add `using Script::Script` to their
// concrete script class.
@@ -40,6 +40,7 @@ private:
//! Only \c BehaviorScript instantiates Script
friend class BehaviorScript;
+private:
// These references are set by BehaviorScript immediately after calling the
// constructor of Script.
BehaviorScript * parent_ref = nullptr;