载入中...
搜索中...
未找到
NpcAiECS.cpp
浏览该文件的文档.
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
constexpr bool isValid() const noexcept
Returns whether both coordinates are usable handle values.
Definition RuntimeHandle.h:146
static constexpr RuntimeHandle invalid() noexcept
Returns the canonical invalid handle.
Definition RuntimeHandle.h:143
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.h:81
Authoritative owner and deterministic scheduler for NPC AI agents.
Definition NpcAi.h:216
Definition Navigation.cpp:6
std::span< const NpcAiSystemContract > npcAiSystemContracts() noexcept
Returns immutable process-lifetime metadata for the NPC AI ECS phase.
Definition NpcAiECS.cpp:25
@ NoOp
@ Applied
static Result< NpcAgentState > create(NpcAiWorld &world, std::string_view behaviorId)
Creates the canonical module-owned agent referenced by this component.
Definition NpcAiECS.cpp:7
Result< void > releaseAgent(NpcAiWorld &world)
Releases the owned agent once and clears this component's handle.
Definition NpcAiECS.cpp:13