载入中...
搜索中...
未找到
ActionDamageSink.h 文件参考
#include "action/ActionDamageBlock.h"
#include "common/Export.h"
#include "common/SubjectRef.h"
#include <functional>
#include <memory>
#include <optional>
#include <vector>

浏览源代码.

类

struct  eve::rpg::RPGDamageTarget
 Owning identity projection; the host owns the mapping, ECS owns the actor. 更多...
 
struct  eve::rpg::RPGActionDamageReceipt
 Owning post-commit observation; no actor pointers survive dispatch. 更多...
 
class  eve::rpg::RPGActionDamageSink
 Scoped action damage provider using RPG Vitals as the sole health authority. @ownership Host owns this nonmovable sink and the resolver's captured mapping. @lifetime Destroy the sink before captured owners; actor destruction is handle-checked. @thread Create, dispatch, poll and destroy on the simulation owner thread. @reentrancy Resolver calls are synchronous without locks and must not reenter. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::rpg
 RPG 模块的基础实体:把属性 / 状态 / 技能三张表挂到一个 ECS 实体上。
 

类型定义

using eve::rpg::RPGDamageResolver = std::function< std::optional< RPGDamageTarget >(ecs::EntityHandle)>
 Resolve a live action entity to an RPG actor and stable reward identity. @ownership Callback captures remain host-owned and must outlive the sink. @lifetime Returned handles are revalidated on every call, never cached as pointers. @thread Simulation owner thread only. @reentrancy Must not throw, mutate participants, or reenter the sink.