载入中...
搜索中...
未找到
eve::resource::Affordability结构体 参考

Structured answer to a canAfford query. 更多...

#include <ResourceAccount.h>

Public 成员函数

bool isAffordable () const noexcept
 Return whether every item in the queried cost is available.
 

Public 属性

bool affordable = false
 
std::vector< ResourceShortfall > shortfalls
 

详细描述

Structured answer to a canAfford query.

Insufficient balance is a successful query with affordable == false. An invalid cost or an implementation failure is represented by the enclosing Result failure instead.

在文件 ResourceAccount.h 第 212 行定义.

成员函数说明

◆ isAffordable()

bool eve::resource::Affordability::isAffordable ( ) const
inlinenoexcept

Return whether every item in the queried cost is available.

在文件 ResourceAccount.h 第 217 行定义.

引用了 affordable.

类成员变量说明

◆ affordable

bool eve::resource::Affordability::affordable = false

在文件 ResourceAccount.h 第 213 行定义.

被这些函数引用 isAffordable().

◆ shortfalls

std::vector<ResourceShortfall> eve::resource::Affordability::shortfalls

在文件 ResourceAccount.h 第 214 行定义.


该结构体的文档由以下文件生成: