载入中...
搜索中...
未找到

Strong, domain-neutral reference to a runtime subject. 更多...

#include <SubjectRef.h>

Public 成员函数

 SubjectRef ()=default
 Construct an invalid nil reference.
 
bool isValid () const noexcept
 Return whether this reference is valid and non-nil.
 
PersistentId persistentId () const noexcept
 Return the wrapped persistent identity.
 
std::string format () const
 Return the canonical lower-case UUID spelling.
 

静态 Public 成员函数

static SubjectRef fromPersistentId (PersistentId id) noexcept
 Wrap a persistent identity without changing its bytes.
 
static SubjectRef nil () noexcept
 Return the invalid nil reference.
 

友元

bool operator== (const SubjectRef &, const SubjectRef &) noexcept=default
 

详细描述

Strong, domain-neutral reference to a runtime subject.

A nil reference is invalid. There is deliberately no implicit conversion to PersistentId so call sites cannot accidentally mix subject, asset and definition identities.

在文件 SubjectRef.h 第 26 行定义.

构造及析构函数说明

◆ SubjectRef()

eve::SubjectRef::SubjectRef ( )
default

Construct an invalid nil reference.

被这些函数引用 fromPersistentId().

成员函数说明

◆ format()

◆ fromPersistentId()

◆ isValid()

bool eve::SubjectRef::isValid ( ) const
inlinenoexcept

Return whether this reference is valid and non-nil.

在文件 SubjectRef.h 第 38 行定义.

引用了 eve::detail::Id128< Tag >::isNil().

被这些函数引用 eve::tactics::BattleSystem::addObjective(), eve::combat::CombatLoopRuntime::advance(), eve::rts::RTSEffectComponent::apply(), eve::rpg::BattleControl::bindParticipant(), eve::rts::RTSEffectComponent::bindSubject(), eve::combat::GuardWindowState::evaluate(), eve::climbing::ClimbingControl::gameplayInstances(), eve::rpg::BattleControl::gameplayInstances(), eve::rpg::ProductControl::gameplayInstances(), eve::weapon::WeaponControl::gameplayInstances(), eve::tactics::Tactics::interactionContext(), eve::tactics::makeSettlementRequest(), eve::rpg::RPG::newBattleControl(), eve::rpg::RPG::newProductControl(), eve::climbing::ClimbingControl::observeGameplay(), eve::rpg::BattleControl::observeGameplay(), eve::rpg::ProductControl::observeGameplay(), eve::weapon::WeaponControl::observeGameplay(), eve::dialogue::DialogueControl::publish(), eve::inventory::InventoryControl::publish(), eve::card::CardControl::publish(), eve::economy::EconomyControl::publish(), eve::rts::RTSCommandLog::queue(), eve::rts::RTS::queueScriptReinforcement(), eve::rts::RTS::queueScriptUnit(), eve::combat::CombatTargetRuntime::registerOwner(), eve::rts::RTS::startScriptConstruction(), eve::rts::TacticsSystem::step(), eve::tactics::Tactics::submitGameplay(), eve::sensing::SensingCandidateProvider::upsert(), eve::combat::CombatCharacterDefinition::validate(), eve::combat::CombatEnemyDefinition::validate(), eve::combat::CombatLocomotionDefinition::validate(), eve::combat::CombatState::validate(), eve::combat::DamageRequest::validate(), eve::combat::HitFeelRequest::validate(), eve::combat::MeleeHurtboxDefinition::validate(), eve::sensing::TargetingQuery::validate() , 以及 eve::tactics::validateAbility().

◆ nil()

static SubjectRef eve::SubjectRef::nil ( )
inlinestaticnoexcept

Return the invalid nil reference.

在文件 SubjectRef.h 第 35 行定义.

被这些函数引用 eve::combat::CombatActionDamageSink::apply() , 以及 eve::action::game_event_adapter::ActionGameEventSink::emit().

◆ persistentId()

PersistentId eve::SubjectRef::persistentId ( ) const
inlinenoexcept

Return the wrapped persistent identity.

在文件 SubjectRef.h 第 41 行定义.

友元及相关函数文档

◆ operator==

bool operator== ( const SubjectRef &  ,
const SubjectRef &   
)
friend

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