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
@@ -0,0 +1,27 @@
#ifndef LIGHTKEEPER_CHECKPOINT_H
#define LIGHTKEEPER_CHECKPOINT_H
#include <glm/vec3.hpp>
#include <destrum/ObjectModel/Component.h>
class Checkpoint final : public Component {
public:
explicit Checkpoint(GameObject& parent);
std::string GetTypeName() const override { return "Checkpoint"; }
void OnTriggerEnter(GameObject* other) override;
nlohmann::json Serialize() const override;
void Deserialize(const nlohmann::json& data) override;
void ImGuiInspector() override;
void SetSpawnOffset(const glm::vec3& offset) { m_SpawnOffset = offset; }
[[nodiscard]] glm::vec3 GetSpawnPoint() const;
private:
glm::vec3 m_SpawnOffset{0.0f};
};
#endif // LIGHTKEEPER_CHECKPOINT_H