载入中...
搜索中...
未找到
RTSProductionSpawn.cpp
浏览该文件的文档.
27 if (settings == &*unit.crowd() || !settings->link.isBound() || containment->container.isBound()) continue;
42 batch.agents.push_back({key, requested.x, requested.y, unit.crowd()->heading, unit.crowd()->radius, {}});
RTS module owner and phase-one composition profile entry point.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.cpp:19
int getNamedAgentIndex(const std::string &stableId) const
Resolve a stable logical identifier to the current compact slot.
Definition Crowd.cpp:177
Result< SpawnReceipt > createAgents(const AgentCreateBatch &batch)
Canonical atomic agent creation with placement policies and work budgets. @ownership Borrows the owni...
Definition CrowdSpawn.cpp:37
bool isAgentAlive(AgentRef reference) const noexcept
Whether the owner and generation still identify a live agent. @thread Simulation thread only; the cal...
Definition CrowdRegistry.cpp:124
Result< AgentBatchReceipt > copyAgentStates(std::span< const AgentRef > references, AgentFrame &destination) const
Copy a selected owning frame in request order; stale input preserves the destination....
Definition CrowdBatch.cpp:108
@ PushNeighbors
Definition RTS.cpp:30
@ PreconditionViolation
@ Failed
@ Conflict
@ Pending