Compatibility-only named calculator retained for existing RPG scripts.
更多...
#include <Settlement.h>
|
| static void | registerStage (const std::string &pipeline, const std::string &stage, int priority, Stage fn) |
| | 同名 stage 已存在则整体覆盖(fn/priority),并重置为 enabled。
|
| |
| static bool | unregisterStage (const std::string &pipeline, const std::string &stage) |
| | Unregisters stage.
|
| |
| static bool | setStageEnabled (const std::string &pipeline, const std::string &stage, bool enabled) |
| | Sets the stage enabled.
|
| |
| static bool | setStagePriority (const std::string &pipeline, const std::string &stage, int priority) |
| | Sets the stage priority.
|
| |
| static bool | hasStage (const std::string &pipeline, const std::string &stage) |
| | True when stage.
|
| |
| static int | stageCount (const std::string &pipeline) |
| | Stage count.
|
| |
| static void | clearPipeline (const std::string &pipeline) |
| | Clears pipeline.
|
| |
| static void | run (const std::string &pipeline, SettlementContext &ctx) |
| | 按 priority 升序依次执行 pipeline 内已启用的阶段;ctx.cancelled 时提前终止。
|
| |
Compatibility-only named calculator retained for existing RPG scripts.
- 弃用:
- New gameplay must use eve::settlement::SettlementPipeline through Battle or a domain policy.
在文件 Settlement.h 第 63 行定义.
◆ Stage
◆ clearPipeline()
| void eve::rpg::SettlementPipeline::clearPipeline |
( |
const std::string & |
pipeline | ) |
|
|
static |
◆ hasStage()
| bool eve::rpg::SettlementPipeline::hasStage |
( |
const std::string & |
pipeline, |
|
|
const std::string & |
stage |
|
) |
| |
|
static |
◆ registerStage()
| void eve::rpg::SettlementPipeline::registerStage |
( |
const std::string & |
pipeline, |
|
|
const std::string & |
stage, |
|
|
int |
priority, |
|
|
Stage |
fn |
|
) |
| |
|
static |
◆ run()
| void eve::rpg::SettlementPipeline::run |
( |
const std::string & |
pipeline, |
|
|
SettlementContext & |
ctx |
|
) |
| |
|
static |
按 priority 升序依次执行 pipeline 内已启用的阶段;ctx.cancelled 时提前终止。
在文件 Settlement.cpp 第 143 行定义.
引用了 eve::settlement::SettlementPipeline::addStage(), eve::rpg::SettlementContext::cancelled, eve::Result< void >::ignore(), eve::rpg::SettlementContext::kind, left, request, right, eve::settlement::SettlementPipeline::settle(), eve::settlement::SourceModifiers, eve::Result< T >::success() , 以及 eve::settlement::SettlementRequest::target.
被这些函数引用 eve::rpg::RPG::runSettlement().
◆ setStageEnabled()
| bool eve::rpg::SettlementPipeline::setStageEnabled |
( |
const std::string & |
pipeline, |
|
|
const std::string & |
stage, |
|
|
bool |
enabled |
|
) |
| |
|
static |
◆ setStagePriority()
| bool eve::rpg::SettlementPipeline::setStagePriority |
( |
const std::string & |
pipeline, |
|
|
const std::string & |
stage, |
|
|
int |
priority |
|
) |
| |
|
static |
◆ stageCount()
| int eve::rpg::SettlementPipeline::stageCount |
( |
const std::string & |
pipeline | ) |
|
|
static |
◆ unregisterStage()
| bool eve::rpg::SettlementPipeline::unregisterStage |
( |
const std::string & |
pipeline, |
|
|
const std::string & |
stage |
|
) |
| |
|
static |
该类的文档由以下文件生成: