#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) |
| |
| static bool | setStageEnabled (const std::string &pipeline, const std::string &stage, bool enabled) |
| |
| static bool | setStagePriority (const std::string &pipeline, const std::string &stage, int priority) |
| |
| static bool | hasStage (const std::string &pipeline, const std::string &stage) |
| |
| static int | stageCount (const std::string &pipeline) |
| |
| static void | clearPipeline (const std::string &pipeline) |
| |
| static void | run (const std::string &pipeline, SettlementContext &ctx) |
| | 按 priority 升序依次执行 pipeline 内已启用的阶段;ctx.cancelled 时提前终止。
|
| |
◆ 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 |
◆ 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 |
该类的文档由以下文件生成: