aboutsummaryrefslogtreecommitdiff
path: root/game/prefab/PlayerScript.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 17:26:27 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 17:26:27 +0100
commit0dae96161a99158815a8075b5c405a35b0939936 (patch)
tree5b9b214c0397694b671e271f6b743c0fd845f51f /game/prefab/PlayerScript.h
parent7e12ebdf945d40d6f11872cf5852c9bb54d1864f (diff)
fix Player prefab
Diffstat (limited to 'game/prefab/PlayerScript.h')
-rw-r--r--game/prefab/PlayerScript.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/game/prefab/PlayerScript.h b/game/prefab/PlayerScript.h
index bd4a00a..131c73f 100644
--- a/game/prefab/PlayerScript.h
+++ b/game/prefab/PlayerScript.h
@@ -6,18 +6,12 @@
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;
+ PlayerScript(const PlayerObject & player);
protected:
void fixed_update(crepe::duration_t dt);
- void init();
protected:
- PlayerObject * player = nullptr;
+ PlayerObject player;
};