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

Composes equipment upgrade with production and inventory owners. 更多...

#include <EquipmentUpgrade.h>

静态 Public 成员函数

static eve::Result< int > parseEnhanceLevel (std::string_view text)
 Parse a non-negative enhance level from an item prop string.
 
static eve::Result< EquipmentUpgradeReceipt > begin (EquipmentUpgradeRequest request)
 Atomically debit materials and enqueue pinned upgrade work.
 
static eve::Result< int > settle (production::WorkQueue &queue, inventory::Bag &bag, std::string_view taskId)
 Apply the reserved enhance mutation and settle the task exactly once.
 

详细描述

Composes equipment upgrade with production and inventory owners.

备注
Calls are synchronous and owner-thread only. Borrowed pointers are not retained. Ingredient balances stay on the supplied account, queued work on WorkQueue, and the upgraded stack on Bag.

在文件 EquipmentUpgrade.h 第 71 行定义.

成员函数说明

◆ begin()

◆ parseEnhanceLevel()

eve::Result< int > eve::rpg::EquipmentUpgrade::parseEnhanceLevel ( std::string_view  text)
static

Parse a non-negative enhance level from an item prop string.

在文件 EquipmentUpgrade.cpp 第 318 行定义.

引用了 begin, end, eve::rpg::kEquipmentEnhanceProp, eve::ParseError, eve::Result< T >::success(), text , 以及 value.

被这些函数引用 eve::rpg::EquipmentSystem::syncEquipModifiers().

◆ settle()

eve::Result< int > eve::rpg::EquipmentUpgrade::settle ( production::WorkQueue &  queue,
inventory::Bag &  bag,
std::string_view  taskId 
)
static

Apply the reserved enhance mutation and settle the task exactly once.

参数
queueAuthoritative queue containing the ready task.
bagBorrowed bag that must still hold the reserved instance.
taskIdStable production task id.
返回
New enhance level, NoOp for a repeated completed receipt, or structured failure.

在文件 EquipmentUpgrade.cpp 第 380 行定义.

引用了 eve::Applied, committed, eve::production::Completed, eve::Conflict, context, current, eve::transaction::Coordinator::execute(), eve::production::WorkQueue::failSettlement(), eve::Result< T >::failure(), eve::production::WorkQueue::find(), eve::inventory::Bag::getId(), eve::NoOp, eve::NotFound, eve::production::ProductionSettlementReceipt::payload, eve::production::ReadyToSettle, eve::production::SettlementFailed, eve::production::ProductionSettlementReceipt::settlementId, eve::Status::success(), eve::Result< T >::success() , 以及 taskId.

被这些函数引用 eve::rpg::ForgeBench::settle().


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