diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-07 13:20:50 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-07 13:20:50 +0100 |
commit | bc66e7195c80facca244f933b882011e5e81fa3c (patch) | |
tree | a9417c19a7f9cecb09130ac7becfbba059b1ec5b /game/hud/HudScript.h | |
parent | 42cbef630ccaf3e841459d364edade1a3c72a525 (diff) |
coins use events
Diffstat (limited to 'game/hud/HudScript.h')
-rw-r--r-- | game/hud/HudScript.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/game/hud/HudScript.h b/game/hud/HudScript.h index 8e7e8fc..0aa10a4 100644 --- a/game/hud/HudScript.h +++ b/game/hud/HudScript.h @@ -3,11 +3,17 @@ #include "api/Script.h" #include "manager/SaveManager.h" +struct GetCoinEvent : public crepe::Event { + int amount_of_coins; +}; + class HudScript : public crepe::Script { public: void init() override; void frame_update(crepe::duration_t dt) override; + bool get_coin(const GetCoinEvent e); private: crepe::SaveManager* savemgr; bool show_fps = false; + int coin_amount = 0; }; |