载入中...
搜索中...
未找到
eve::rts::SupplySystem类 参考

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()

Result< std::size_t > eve::rts::SupplySystem::step ( const SimulationStep &  step,
const AmmoProductionPurchase &  purchase = {},
map::Pathfinder *  pathfinder = nullptr,
const NavigationGrid &  grid = {},
const LifecycleEventSink &  events = {} 
)
static

Produce stock through the economy port, dispatch suppliers, and transfer integral rounds.

参数
stepFixed simulation time and tick.
purchaseOptional canonical economy settlement boundary for produced ammunition.
pathfinderOptional canonical map pathfinder used for relay rendezvous selection.
gridNavigation sampling configuration.
eventsOptional 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.


该类的文档由以下文件生成: