载入中...
搜索中...
未找到
eve::npc_ai::NpcAiEcsSystem类 参考
Gameplay-decision phase adapter over a caller-selected existing entity root. 更多...
#include <NpcAiECS.h>
静态 Public 成员函数 | |
| template<class EntityRoot > | |
| static Result< NpcAiEcsStepReport > | step (NpcAiWorld &world, const TickContext &context) |
| Preflights every link, advances the AI world once, then publishes projections. | |
详细描述
Gameplay-decision phase adapter over a caller-selected existing entity root.
在文件 NpcAiECS.h 第 70 行定义.
成员函数说明
◆ step()
template<class EntityRoot >
|
inlinestatic |
Preflights every link, advances the AI world once, then publishes projections.
- 模板参数
-
EntityRoot Existing project/domain short root; no NPC entity base is introduced.
- 参数
-
world Synchronously borrowed AI world; never retained. context Injected deterministic time and budgets.
- 返回
- Entity and runtime work report, or the first structured stale/provider failure. @thread Owning ECS simulation thread. @reentrancy Provider callbacks run only after the preflight View scope closes.
- 备注
- Reads NpcAgentState, writes NpcAiProjection, performs no ECS structural mutation, and publishes no callbacks while iterating a View.
Step.
Success.
在文件 NpcAiECS.h 第 85 行定义.
引用了 context, current, state, eve::Result< T >::success(), view , 以及 world.
该类的文档由以下文件生成:
- src/modules/npc_ai/NpcAiECS.h