25 lines
547 B
C++
25 lines
547 B
C++
#ifndef LIGHTKEEPER_WINGOAL_H
|
|
#define LIGHTKEEPER_WINGOAL_H
|
|
|
|
#include <components/Activatable.h>
|
|
|
|
class WinGoal final : public Activatable {
|
|
public:
|
|
explicit WinGoal(GameObject& parent);
|
|
|
|
std::string GetTypeName() const override { return "WinGoal"; }
|
|
|
|
void Reflect(FieldVisitor& v) override;
|
|
|
|
[[nodiscard]] bool IsReached() const { return m_Reached; }
|
|
void Reset() { m_Reached = false; }
|
|
|
|
protected:
|
|
void OnActivate(GameObject& instigator) override;
|
|
|
|
private:
|
|
bool m_Reached{false};
|
|
};
|
|
|
|
#endif // LIGHTKEEPER_WINGOAL_H
|