aboutsummaryrefslogtreecommitdiff
path: root/game/prefab/PlayerScript.h
diff options
context:
space:
mode:
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;
};