1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#pragma once #include <memory> #include <raylib.h> class Generator { public: virtual ~Generator() = default; virtual void update(float dt) = 0; void attach(std::shared_ptr<Vector2> origin); void detach(); Vector2 position() const; protected: std::shared_ptr<Vector2> m_origin; };