diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-07 14:33:07 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-07 14:33:07 +0100 |
commit | 5d798c30af7026099344a068e91e1684018b4386 (patch) | |
tree | 923b54a2745c338478246b8707c6ce8361822fc7 /game/prefab/ZapperPoolSubScene.h | |
parent | 6d69c8ef6b663bd6716b441cc7d01164c7e33dfc (diff) | |
parent | 42cbef630ccaf3e841459d364edade1a3c72a525 (diff) |
merge + more WIP
Diffstat (limited to 'game/prefab/ZapperPoolSubScene.h')
-rw-r--r-- | game/prefab/ZapperPoolSubScene.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/game/prefab/ZapperPoolSubScene.h b/game/prefab/ZapperPoolSubScene.h index 79598ce..25328ee 100644 --- a/game/prefab/ZapperPoolSubScene.h +++ b/game/prefab/ZapperPoolSubScene.h @@ -4,18 +4,24 @@ #include <crepe/api/Scene.h> #include <crepe/api/GameObject.h> +#include <crepe/api/Event.h> +#include <crepe/util/OptionalRef.h> #include "ZapperObject.h" +class CreateZapperEvent : public crepe::Event {}; + class ZapperPoolSubScene { public: ZapperPoolSubScene(crepe::Scene & scene); -public: +private: crepe::GameObject controller; std::vector<ZapperObject> zappers; private: static constexpr size_t POOL_SIZE = 4; +public: + crepe::OptionalRef<ZapperObject> get_next_zapper(); }; |