载入中...
搜索中...
未找到
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()
|
static |
Build a positive cost for ammunition stored as an item stack.
- 参数
-
ammoItemId Registered ammunition ItemDefinition id. quantity Positive number of rounds/charges.
- 返回
- Canonical ammunition cost or a structured validation failure.
在文件 InventoryResourceAccount.cpp 第 340 行定义.
◆ itemCost()
|
static |
Build a positive cost for an inventory item.
- 参数
-
itemId Registered ItemDefinition id. quantity Positive quantity.
- 返回
- Canonical item cost or a structured validation failure.
在文件 InventoryResourceAccount.cpp 第 336 行定义.
引用了 itemId.
该类的文档由以下文件生成:
- src/modules/inventory/InventoryResourceAccount.h
- src/modules/inventory/InventoryResourceAccount.cpp