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

Configurable candidate query against SensingWorld. 更多...

#include <Sensing.h>

Public 成员函数

EVENGINE_API_PLATFORM eve::Result< void > validate () const
 Validates ranges, counts, tags and shape invariants.
 

Public 属性

QueryShape shape {}
 
float minRange = 0.f
 
float maxRange = std::numeric_limits<float>::infinity()
 
std::vector< std::string > requiredTags
 
std::vector< std::string > excludedTags
 
std::vector< std::string > includeFactions
 
std::vector< std::string > excludeFactions
 
std::optional< std::string > visibleTo
 
std::uint32_t minCount = 0
 
std::uint32_t maxCount = std::numeric_limits<std::uint32_t>::max()
 
CountPolicy countPolicy = CountPolicy::TruncateToMax
 
SortKey sortKey = SortKey::DistanceAscending
 
bool requireLineOfSight = false
 
QueryAxes axes = QueryAxes::XY
 

详细描述

Configurable candidate query against SensingWorld.

This is the single filtering/sorting implementation surface. Script circle/box helpers and Targeting adapters compose a QuerySpec rather than reimplementing acceptance rules. The axes select distance and planar-shape semantics independently of the index. LOS is explicitly injected; domain and zone policy stays in adapters.

在文件 Sensing.h 第 128 行定义.

成员函数说明

◆ validate()

eve::Result< void > eve::sensing::QuerySpec::validate ( ) const

类成员变量说明

◆ axes

QueryAxes eve::sensing::QuerySpec::axes = QueryAxes::XY

Independent of index selection.

在文件 Sensing.h 第 143 行定义.

被这些函数引用 eve::sensing::SensingWorld::collectCandidates(), eve::sensing::SensingWorldCandidateProvider::query() , 以及 validate().

◆ countPolicy

CountPolicy eve::sensing::QuerySpec::countPolicy = CountPolicy::TruncateToMax

◆ excludedTags

std::vector<std::string> eve::sensing::QuerySpec::excludedTags

在文件 Sensing.h 第 133 行定义.

被这些函数引用 eve::sensing::SensingWorldCandidateProvider::query() , 以及 validate().

◆ excludeFactions

std::vector<std::string> eve::sensing::QuerySpec::excludeFactions

在文件 Sensing.h 第 135 行定义.

被这些函数引用 validate().

◆ includeFactions

std::vector<std::string> eve::sensing::QuerySpec::includeFactions

在文件 Sensing.h 第 134 行定义.

被这些函数引用 validate().

◆ maxCount

std::uint32_t eve::sensing::QuerySpec::maxCount = std::numeric_limits<std::uint32_t>::max()

◆ maxRange

float eve::sensing::QuerySpec::maxRange = std::numeric_limits<float>::infinity()

◆ minCount

std::uint32_t eve::sensing::QuerySpec::minCount = 0

◆ minRange

float eve::sensing::QuerySpec::minRange = 0.f

在文件 Sensing.h 第 130 行定义.

被这些函数引用 eve::sensing::SensingWorldCandidateProvider::query() , 以及 validate().

◆ requiredTags

std::vector<std::string> eve::sensing::QuerySpec::requiredTags

在文件 Sensing.h 第 132 行定义.

被这些函数引用 eve::sensing::SensingWorldCandidateProvider::query() , 以及 validate().

◆ requireLineOfSight

bool eve::sensing::QuerySpec::requireLineOfSight = false

Missing provider is Unsupported, never silently ignored.

在文件 Sensing.h 第 142 行定义.

被这些函数引用 eve::sensing::SensingWorld::query().

◆ shape

QueryShape eve::sensing::QuerySpec::shape {}

◆ sortKey

SortKey eve::sensing::QuerySpec::sortKey = SortKey::DistanceAscending

◆ visibleTo

std::optional<std::string> eve::sensing::QuerySpec::visibleTo

在文件 Sensing.h 第 136 行定义.

被这些函数引用 validate().


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