#pragma once #include #include "core/events.hpp" #include "game/floor.hpp" // Walk-to-activate objectives that replace the old key/door exit flow. // The three beacons are authored as PropKind::Beacon props in the level; the // third activation emits a placeholder event (its effect is still to be // designed). Proximity only — no interact key, matching the other rituals. class BeaconSystem { public: struct BeaconState { Vec2 pos{}; float yaw = 0.0f; float scale = 1.0f; bool active = false; }; static constexpr float kActivationRadius = 2.5f; static constexpr int kCount = 3; void init(const Floor& floor); void reset(); void update(Vec2 player_pos, EventQueue& events); int active_count() const { return active_count_; } int count() const { return static_cast(beacons_.size()); } bool complete() const { return count() >= kCount && active_count_ >= kCount; } const std::vector& beacons() const { return beacons_; } private: std::vector beacons_; int active_count_ = 0; bool complete_fired_ = false; };