载入中...
搜索中...
未找到
RTSProductionSpawn.cpp
浏览该文件的文档.
18 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={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.h:81
int getNamedAgentIndex(const std::string &stableId) const
Resolve a stable logical identifier to the current compact slot.
Definition Crowd.cpp:139
Result< SpawnReceipt > applySpawnBatch(const SpawnBatch &batch)
Apply a caller-built spawn batch atomically, including neighbor displacement.
Definition CrowdSpawn.cpp:35
@ PushNeighbors
Definition RTS.cpp:24
@ PreconditionViolation
@ Conflict
@ Pending