aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Script.h
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-10-16 08:35:17 +0200
committermax-001 <maxsmits21@kpnmail.nl>2024-10-16 08:35:17 +0200
commit5b158d9705f9e912f938f22f2389d6f1dc783b2a (patch)
tree7addd40affd1e15b5e6c4ea108847ef6a6eef7ea /src/crepe/Script.h
parent2f644ac353f65cd182be13549e32e9b9409f7aad (diff)
parent579824011d5e8776e2079d6624a39535517760ff (diff)
Merge remote-tracking branch 'origin/master' into max/POC-ECS-homemade
Diffstat (limited to 'src/crepe/Script.h')
-rw-r--r--src/crepe/Script.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/crepe/Script.h b/src/crepe/Script.h
new file mode 100644
index 0000000..ba4073a
--- /dev/null
+++ b/src/crepe/Script.h
@@ -0,0 +1,16 @@
+#pragma once
+
+namespace crepe {
+
+class Script {
+protected:
+ virtual void init();
+ virtual void update();
+ // NOTE: additional *events* (like unity's OnDisable and OnEnable) should be
+ // implemented as member methods in derivative user script classes and
+ // registered in init(), otherwise this class will balloon in size with each
+ // added event.
+};
+
+}
+