载入中...
搜索中...
未找到
eve::inventory::ItemCostAdapter类 参考final

Creates canonical costs for item and ammunition quantities. 更多...

#include <InventoryResourceAccount.h>

静态 Public 成员函数

static eve::Result< eve::resource::CostSpec > itemCost (std::string_view itemId, std::int64_t quantity)
 Build a positive cost for an inventory item.
 
static eve::Result< eve::resource::CostSpec > ammoCost (std::string_view ammoItemId, std::int64_t quantity)
 Build a positive cost for ammunition stored as an item stack.
 

详细描述

Creates canonical costs for item and ammunition quantities.

Item ids are passed through as ResourceId values. The account adapter then resolves them against the authoritative ItemDefinition/Bag path; no parallel price or ammunition table is introduced here.

在文件 InventoryResourceAccount.h 第 88 行定义.

成员函数说明

◆ ammoCost()

eve::Result< CostSpec > eve::inventory::ItemCostAdapter::ammoCost ( std::string_view  ammoItemId,
std::int64_t  quantity 
)
static

Build a positive cost for ammunition stored as an item stack.

参数
ammoItemIdRegistered ammunition ItemDefinition id.
quantityPositive number of rounds/charges.
返回
Canonical ammunition cost or a structured validation failure.

在文件 InventoryResourceAccount.cpp 第 340 行定义.

◆ itemCost()

eve::Result< CostSpec > eve::inventory::ItemCostAdapter::itemCost ( std::string_view  itemId,
std::int64_t  quantity 
)
static

Build a positive cost for an inventory item.

参数
itemIdRegistered ItemDefinition id.
quantityPositive quantity.
返回
Canonical item cost or a structured validation failure.

在文件 InventoryResourceAccount.cpp 第 336 行定义.

引用了 itemId.


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