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()
|
static |
Atomically debit materials and enqueue pinned upgrade work.
在文件 EquipmentUpgrade.cpp 第 335 行定义.
引用了 eve::Applied, committed, context, eve::production::ProductionRequest::context, eve::production::ProductionRequest::definition, eve::production::ProductionRequest::duration, eve::transaction::AtomicResourcePayment::execute(), eve::Result< T >::failure(), eve::InvalidArgument, eve::production::ProductionRequest::kind, eve::production::ProductionRequest::owner, eve::production::ProductionRequest::priority, eve::production::ProductionRequest::product, request, eve::production::ProductionRequest::reservation, eve::production::ProductionRequest::settlementRequired, eve::Status::success(), eve::Result< T >::success() , 以及 valid.
被这些函数引用 eve::rpg::ForgeBench::upgrade().
◆ parseEnhanceLevel()
|
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.
◆ settle()
|
static |
Apply the reserved enhance mutation and settle the task exactly once.
- 参数
-
queue Authoritative queue containing the ready task. bag Borrowed bag that must still hold the reserved instance. taskId Stable 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().
该类的文档由以下文件生成:
- src/modules/rpg/EquipmentUpgrade.h
- src/modules/rpg/EquipmentUpgrade.cpp