mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
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.
14 lines
339 B
C++
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
|