aboutsummaryrefslogtreecommitdiff
path: root/game/prefab/PlayerScript.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 16:12:31 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 16:12:31 +0100
commit7e12ebdf945d40d6f11872cf5852c9bb54d1864f (patch)
treed81f4661e2fd47f487cf0c9627baa1e21dc45b37 /game/prefab/PlayerScript.h
parent61148c757a1f742ff09e40e5347e74e638c7371c (diff)
big WIP
Diffstat (limited to 'game/prefab/PlayerScript.h')
-rw-r--r--game/prefab/PlayerScript.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/game/prefab/PlayerScript.h b/game/prefab/PlayerScript.h
new file mode 100644
index 0000000..bd4a00a
--- /dev/null
+++ b/game/prefab/PlayerScript.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <crepe/api/Script.h>
+
+#include "PlayerObject.h"
+
+class PlayerScript : public crepe::Script {
+public:
+ PlayerScript(PlayerObject * player);
+
+ PlayerScript(const PlayerScript &) = delete;
+ PlayerScript(PlayerScript &&) = delete;
+ PlayerScript & operator=(const PlayerScript &) = delete;
+ PlayerScript & operator=(PlayerScript &&) = delete;
+
+protected:
+ void fixed_update(crepe::duration_t dt);
+ void init();
+
+protected:
+ PlayerObject * player = nullptr;
+};
+