mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +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.
17 lines
261 B
C++
17 lines
261 B
C++
#pragma once
|
|
|
|
#include "Cubed/gameplay/game_time.hpp"
|
|
namespace Cubed {
|
|
struct AIBase {
|
|
TickType interval = 1;
|
|
TickType count = 0;
|
|
};
|
|
|
|
struct WanderAITag {};
|
|
|
|
struct MoveBoost {
|
|
TickType duration = 0;
|
|
TickType count = 0;
|
|
};
|
|
|
|
} // namespace Cubed
|