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

Compatibility-only named calculator retained for existing RPG scripts. 更多...

#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)
 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.
备注
run() delegates scheduling and transaction boundaries to the canonical settlement pipeline; this facade retains only legacy stage registration and the open numeric value bag required by existing scripts.

在文件 Settlement.h 第 63 行定义.

成员类型定义说明

◆ Stage

在文件 Settlement.h 第 65 行定义.

成员函数说明

◆ clearPipeline()

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

Clears pipeline.

在文件 Settlement.cpp 第 141 行定义.

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

◆ hasStage()

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

True when stage.

在文件 Settlement.cpp 第 130 行定义.

被这些函数引用 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.cpp 第 83 行定义.

引用了 fn , 以及 priority.

◆ 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

Sets the stage enabled.

在文件 Settlement.cpp 第 110 行定义.

引用了 enabled , 以及 s.

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

◆ setStagePriority()

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

Sets the stage priority.

在文件 Settlement.cpp 第 120 行定义.

引用了 priority , 以及 s.

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

◆ stageCount()

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

Stage count.

在文件 Settlement.cpp 第 136 行定义.

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

◆ unregisterStage()

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

Unregisters stage.

在文件 Settlement.cpp 第 100 行定义.

引用了 s.

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


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