载入中...
搜索中...
未找到
eve::rpg::SettlementPipeline类 参考

#include <Settlement.h>

Public 类型

using Stage = std::function< void(SettlementContext &)>
 

静态 Public 成员函数

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 时提前终止。
 

详细描述

在文件 Settlement.h50 行定义.

成员类型定义说明

◆ Stage

在文件 Settlement.h52 行定义.

成员函数说明

◆ clearPipeline()

void eve::rpg::SettlementPipeline::clearPipeline ( const std::string &  pipeline)
static

在文件 Settlement.cpp109 行定义.

被这些函数引用 eve::rpg::RPG::clearSettlementPipeline().

◆ hasStage()

bool eve::rpg::SettlementPipeline::hasStage ( const std::string &  pipeline,
const std::string &  stage 
)
static

在文件 Settlement.cpp98 行定义.

被这些函数引用 eve::rpg::RPG::hasSettlementStage().

◆ registerStage()

void eve::rpg::SettlementPipeline::registerStage ( const std::string &  pipeline,
const std::string &  stage,
int  priority,
Stage  fn 
)
static

同名 stage 已存在则整体覆盖(fn/priority),并重置为 enabled。

在文件 Settlement.cpp51 行定义.

引用了 fn , 以及 priority.

◆ run()

void eve::rpg::SettlementPipeline::run ( const std::string &  pipeline,
SettlementContext ctx 
)
static

按 priority 升序依次执行 pipeline 内已启用的阶段;ctx.cancelled 时提前终止。

在文件 Settlement.cpp111 行定义.

引用了 a, b, eve::rpg::SettlementContext::cancelled , 以及 s.

被这些函数引用 eve::rpg::RPG::runSettlement().

◆ setStageEnabled()

bool eve::rpg::SettlementPipeline::setStageEnabled ( const std::string &  pipeline,
const std::string &  stage,
bool  enabled 
)
static

在文件 Settlement.cpp78 行定义.

引用了 enabled , 以及 s.

被这些函数引用 eve::rpg::RPG::setSettlementStageEnabled().

◆ setStagePriority()

bool eve::rpg::SettlementPipeline::setStagePriority ( const std::string &  pipeline,
const std::string &  stage,
int  priority 
)
static

在文件 Settlement.cpp88 行定义.

引用了 priority , 以及 s.

被这些函数引用 eve::rpg::RPG::setSettlementStagePriority().

◆ stageCount()

int eve::rpg::SettlementPipeline::stageCount ( const std::string &  pipeline)
static

在文件 Settlement.cpp104 行定义.

被这些函数引用 eve::rpg::RPG::getSettlementStageCount().

◆ unregisterStage()

bool eve::rpg::SettlementPipeline::unregisterStage ( const std::string &  pipeline,
const std::string &  stage 
)
static

在文件 Settlement.cpp68 行定义.

引用了 s.

被这些函数引用 eve::rpg::RPG::removeSettlementStage().


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