Files
Cubed/include/Cubed/gameplay/systems/wander_ai_system.hpp
zhenyan121 412f88565a feat(ai): add wander AI system with move boost
Add AIBase and WanderAITag components, a WanderAISystem, and a MoveBoost component to control wandering behavior. Replace the old MoveState with MoveBoost and include a horizontal random direction helper.
2026-07-31 19:59:33 +08:00

14 lines
339 B
C++

#pragma once
#include "Cubed/gameplay/ecs/ai_struct.hpp"
#include "Cubed/gameplay/ecs/server_entity.hpp"
#include <entt/entt.hpp>
namespace Cubed {
class WanderAISystem {
public:
static void update(entt::registry& registry);
private:
static void do_ai(BaseServerCreature& creature, MoveBoost& move_boost);
};
} // namespace Cubed