EVENGINE_API_DOMAINS public API. 更多...
#include <RTSSystems.h>
静态 Public 成员函数 | |
| static Result< std::size_t > | step (const SimulationStep &step, const AmmoProductionPurchase &purchase={}, map::Pathfinder *pathfinder=nullptr, const NavigationGrid &grid={}, const LifecycleEventSink &events={}) |
| Produce stock through the economy port, dispatch suppliers, and transfer integral rounds. | |
详细描述
EVENGINE_API_DOMAINS public API.
在文件 RTSSystems.h 第 428 行定义.
成员函数说明
◆ step()
|
static |
Produce stock through the economy port, dispatch suppliers, and transfer integral rounds.
- 参数
-
step Fixed simulation time and tick. purchase Optional canonical economy settlement boundary for produced ammunition. pathfinder Optional canonical map pathfinder used for relay rendezvous selection. grid Navigation sampling configuration. events Optional deterministic lifecycle event sink.
- 返回
- Number of produced, dispatched, or transferred supply operations.
在文件 RTSSystems.cpp 第 2212 行定义.
引用了 eve::weapon::Ammo, eve::Applied, eve::weapon::WeaponSystem::cancelReload(), capacity, current, distance, dx, dy, eve::Diagnostic::error(), events, eve::Result< T >::failure(), eve::LogicalId::format(), eve::InvalidArgument, eve::InvariantViolation, eve::rts::CommandSpec::kind, left, eve::NoOp, eve::NotFound, order, previous, queued, resource, right, step, subject, eve::Status::success(), eve::Result< T >::success(), target, eve::rts::CommandSpec::target, eve::rts::CommandSpec::targetEntity, eve::rts::Building::Supply::transferProgress, unit, eve::rts::WorldPosition::x , 以及 eve::rts::WorldPosition::y.
该类的文档由以下文件生成:
- src/modules/rts/RTSSystems.h
- src/modules/rts/RTSSystems.cpp