载入中...
搜索中...
未找到
DecalAttackVfx.cpp
浏览该文件的文档.
Pluggable AttackVfx layer backends registered via capability listeners.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.h:81
bool contains(int id) const
Whether a projected decal id is still registered.
Definition DecalManager.cpp:141
void update(float dt)
Advance instance ages; expire and evict finished decals.
Definition DecalManager.cpp:301
int project(float x, float y, float z, float nx, float ny, float nz, graphics::Texture *albedo, const std::string &kind, float size, float depth, bool randomYaw, int seed, float fadeIn, float lifetime, float fadeOut, float normalStrength, float roughnessStrength, float metalStrength, float emissiveStrength)
Spawn a decal at a world-space point facing along (nx,ny,nz).
Definition DecalManager.cpp:81
Optional open backend for one AttackVfxLayerRole.
Definition AttackVfxLayerExecutor.h:56
Definition Decal.cpp:12
void unregisterDecalAttackVfxExecutor()
Unregister the AttackVfx Decal layer executor.
Definition DecalAttackVfx.cpp:189
void registerDecalAttackVfxExecutor()
Register the AttackVfx Decal layer executor (soft-skips when Graphics is absent).
Definition DecalAttackVfx.cpp:183
AttackVfxLayerRole
Which existing presentation backend a layer binds to.
Definition AttackVfxRecipe.h:40
@ ClearImmediately
@ InvalidArgument
@ NotFound
@ Failed
@ StaleHandle
@ NoOp
@ Applied
Opaque executor-owned layer instance identity.
Definition AttackVfxLayerExecutor.h:22
Borrowed start context for one layer inside an entering phase.
Definition AttackVfxLayerExecutor.h:37