载入中...
搜索中...
未找到
WorldHitProbe.h
浏览该文件的文档.
1#pragma once
2
4
5#include <memory>
6#include <optional>
7
8namespace eve::weapon {
17public:
19 virtual ~IWorldHitTargetMapper() = default;
22};
23
32public:
34 explicit WorldHitProbe(std::unique_ptr<IWorldSphereSweep> sweep);
36 WorldHitProbe(std::unique_ptr<IWorldSphereSweep> sweep, std::unique_ptr<IWorldHitTargetMapper> mapper);
37 WorldHitProbe(const WorldHitProbe&) = delete;
46 const CarrierMotion& current) const override;
47
48private:
49 std::unique_ptr<IWorldSphereSweep> sweep_;
50 std::unique_ptr<IWorldHitTargetMapper> mapper_;
51};
52} // namespace eve::weapon
Composable combat-carrier runtime: motion ops, triggers, and impacts.
#define EVENGINE_API_WORLD
Definition Export.h:109
std::shared_ptr< const OceanSprayFrame > previous
PrimitiveHandle handle
double current
Contact contact
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Optional swept-hit boundary used only by OnHit triggers.
Optional gameplay-owned mapping from a physical contact to an ECS target. @ownership The probe owns t...
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.
Explicit sphere-query adapter; never registered or installed in a carrier runtime automatically....
WorldHitProbe(const WorldHitProbe &)=delete
WorldHitProbe & operator=(const WorldHitProbe &)=delete
载具模块入口(eve.Vehicle):定义注册 / 实体工厂 / RTS 命令 / 帧调度。 设计文档:docs/dev/通用载具系统设计.md
Owning sphere sweep contact; position is the moving sphere center, not the obstacle surface.
Generation-qualified reference to one pooled carrier slot.
Live motion snapshot for one carrier.