diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-06 17:49:39 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-06 17:49:39 +0100 |
commit | 07615060da6c211e08a3d7f2e1bb9e99ffc05364 (patch) | |
tree | e272fd896ac25aa7ac6d7b4c20dbe5c49a042dce /game/coins/CoinSystemScript.h | |
parent | ce655acf72c5d5be62497dbaac41af7ef49be411 (diff) |
moved and updated files
Diffstat (limited to 'game/coins/CoinSystemScript.h')
-rw-r--r-- | game/coins/CoinSystemScript.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/game/coins/CoinSystemScript.h b/game/coins/CoinSystemScript.h index 4bafa01..f558f08 100644 --- a/game/coins/CoinSystemScript.h +++ b/game/coins/CoinSystemScript.h @@ -1,6 +1,7 @@ #pragma once -#include "CoinData.h" +#include "types.h" +#include <string> #include "api/CircleCollider.h" #include "api/Script.h" #include "api/Sprite.h" @@ -8,6 +9,13 @@ #include <random> class CoinSystemScript : public crepe::Script { +private: + struct CoinData{ + crepe::vec2 start_location = {0,0}; + std::string name = ""; + bool active = false; + CoinData(crepe::vec2 start_location) : start_location(start_location),name(""), active(false) {} + }; public: CoinSystemScript() {}; void init() override; |