载入中...
搜索中...
未找到
RTSCommands.cpp
浏览该文件的文档.
12Result<FanOutReceipt> RTS::commandUnits(std::span<const SubjectRef> subjects, const CommandSpec& command,
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 Result< FanOutReceipt > fanOut(std::span< const ecs::EntityHandle > unitHandles, const CommandSpec &command, const FormationSpec &formation)
Submit one command to every selected live Unit.
Definition RTSFormation.cpp:124
Result< FanOutReceipt > commandUnits(std::span< const SubjectRef > subjects, const CommandSpec &command, const FormationSpec &formation={}) const
Resolve stable unit identities and fan out one generic command.
Definition RTSCommands.cpp:12
Unit * findUnit(SubjectRef subject) const noexcept
Resolve a module-owned unit by persistent subject identity.
Definition RTS.cpp:889
Result< FanOutReceipt > fanOut(Player::Selection &selection, const CommandSpec &command, const FormationSpec &formation) const
Fan one common command out through a player's selected unit handles.
Definition RTSCommands.cpp:4
Definition RTS.cpp:24
@ NotFound
One domain-neutral command submitted to a unit's generic order queue.
Definition RTSTypes.h:101
RTS-owned selection handles; handles are generation checked on use.
Definition RTSTypes.h:1146
std::uint64_t revision
Control-plane revision incremented after accepted player-semantic commands.
Definition RTSTypes.h:1150