feat: add basic canvas / improve inspector
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#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"; }
|
||||
|
||||
nlohmann::json Serialize() const override;
|
||||
void Deserialize(const nlohmann::json& data) override;
|
||||
void ImGuiInspector() 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
|
||||
Reference in New Issue
Block a user