feat: add basic canvas / improve inspector

This commit is contained in:
2026-10-18 20:42:04 +02:00
parent 7df65f52b5
commit ad16daea7c
47 changed files with 3142 additions and 405 deletions
+26
View File
@@ -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