载入中...
搜索中...
未找到
eve::weapon::IWorldHitTargetMapper类 参考abstract

Optional gameplay-owned mapping from a physical contact to an ECS target. @ownership The probe owns the mapper; implementations retain handles, never entity/body pointers. @thread Simulation owner only, synchronously without locks. Do not mutate either world or the carrier pool. 更多...

#include <WorldHitProbe.h>

Public 成员函数

virtual ~IWorldHitTargetMapper ()=default
 Release the mapping policy without destroying either world.
 
virtual Result< std::optional< ecs::EntityHandle > > target (const WorldSphereContact &contact) const =0
 Resolve one borrowed contact for this call; return an owning optional target or diagnostic.
 

详细描述

Optional gameplay-owned mapping from a physical contact to an ECS target. @ownership The probe owns the mapper; implementations retain handles, never entity/body pointers. @thread Simulation owner only, synchronously without locks. Do not mutate either world or the carrier pool.

备注
Validate entity generations on each call. Return empty for scenery, failure for a stale required link. Rebuild links after restore/hot reload; mappings are not persistent state.

在文件 WorldHitProbe.h 第 16 行定义.

构造及析构函数说明

◆ ~IWorldHitTargetMapper()

virtual eve::weapon::IWorldHitTargetMapper::~IWorldHitTargetMapper ( )
virtualdefault

Release the mapping policy without destroying either world.

成员函数说明

◆ target()

virtual Result< std::optional< ecs::EntityHandle > > eve::weapon::IWorldHitTargetMapper::target ( const WorldSphereContact &  contact) const
pure virtual

Resolve one borrowed contact for this call; return an owning optional target or diagnostic.


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