载入中...
搜索中...
未找到
StylizeAction.cpp
浏览该文件的文档.
82 if (mode == "stop" || mode == "stopEmitting") return eve::stylize::AttackVfxStopMode::StopEmitting;
187 cls.addFunc("signal", [vm](StylizeAction* self, int slot, int generation, const std::string& cue) {
207 cls.addFunc("stop", [vm](StylizeAction* self, int slot, int generation, const std::string& mode) {
Data-driven layered attack VFX recipe and element skin (Phase 1 schema).
The single Squirrel projection for common Result, Status and Value.
Action/camera adapter satellite for AttackVfx presentation blocks.
Owning, renderer-independent dynamic values.
A structured explanation of a failed, degraded, or noteworthy result.
Definition Diagnostic.h:94
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 std::optional< LogicalId > parse(std::string_view text)
Parses a scoped logical name.
Definition Identity.cpp:36
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
Result< void > registerSkin(const AttackVfxSkin &skin)
Validate and store a reusable skin keyed by skin.id.
Definition AttackVfxRuntime.cpp:471
std::optional< AttackVfxInstanceState > inspect(AttackVfxHandle handle) const
Snapshot one live instance; empty when the handle is stale.
Definition AttackVfxRuntime.cpp:693
Result< AttackVfxFrame > stop(AttackVfxHandle handle, AttackVfxStopMode mode)
Stop one instance using the requested teardown mode.
Definition AttackVfxRuntime.cpp:678
Result< void > registerRecipe(const AttackVfxRecipe &recipe)
Validate and store an immutable recipe copy keyed by recipe.id.
Definition AttackVfxRuntime.cpp:455
std::size_t activeCount() const noexcept
Number of occupied slots.
Definition AttackVfxRuntime.cpp:699
Result< AttackVfxHandle > play(const LogicalId &recipeId, const AttackVfxRequest &request)
Spawn one instance from a registered recipe.
Definition AttackVfxRuntime.cpp:490
Result< AttackVfxFrame > signal(AttackVfxHandle handle, std::string_view cue)
Deliver a named cue to one live instance (e.g. "impact", "cancel").
Definition AttackVfxRuntime.cpp:555
Result< AttackVfxFrame > advance(double dtSeconds)
Advance all live instances by injected simulation seconds.
Definition AttackVfxRuntime.cpp:573
Composition entry for AttackVfx Action notify handlers and layer bridges.
Definition StylizeAction.h:30
eve::Result< eve::stylize::AttackVfxFrame > stop(std::uint32_t slot, std::uint32_t generation, std::string_view mode)
Stop one instance.
Definition StylizeAction.cpp:139
eve::Result< void > registerRecipeJson(std::string_view json)
Validate and register a JSON recipe document on the module runtime.
Definition StylizeAction.cpp:104
eve::Result< eve::stylize::AttackVfxFrame > signal(std::uint32_t slot, std::uint32_t generation, std::string_view cue)
Deliver a named cue to one live instance.
Definition StylizeAction.cpp:129
eve::Result< eve::stylize::AttackVfxFrame > advance(double dtSeconds)
Advance all live instances by injected simulation seconds.
Definition StylizeAction.cpp:135
std::size_t activeCount() const noexcept
Number of occupied AttackVfx pool slots.
Definition StylizeAction.cpp:154
eve::Result< eve::stylize::AttackVfxInstanceState > inspect(std::uint32_t slot, std::uint32_t generation)
Snapshot one live instance; fails with NotFound when stale.
Definition StylizeAction.cpp:145
eve::Result< eve::stylize::AttackVfxHandle > play(std::string_view recipeId, std::uint32_t sourceId, std::uint32_t targetId)
Play a registered recipe on the module runtime.
Definition StylizeAction.cpp:116
eve::Result< void > registerSkinJson(std::string_view json)
Validate and register a JSON skin document on the module runtime.
Definition StylizeAction.cpp:110
ssq::Table projectResult(HSQUIRRELVM vm, Result< void > &&result)
Consume and project a void native Result using the common schema.
Definition SquirrelBinding.cpp:470
void registerCameraAttackVfxExecutor()
Definition CameraAttackVfx.cpp:129
void unregisterPrefabAttackVfxExecutor()
Definition PrefabAttackVfx.cpp:87
void registerPrefabAttackVfxExecutor()
Definition PrefabAttackVfx.cpp:81
void unregisterActionAttackVfxProvider()
Definition ActionAttackVfxHandler.cpp:286
void unregisterAudioAttackVfxExecutor()
Definition AudioAttackVfx.cpp:166
void unregisterCameraAttackVfxExecutor()
Definition CameraAttackVfx.cpp:135
void registerAudioAttackVfxExecutor()
Definition AudioAttackVfx.cpp:165
void registerActionAttackVfxProvider()
Definition ActionAttackVfxHandler.cpp:280
@ ClearImmediately
@ StopEmitting
std::string_view attackVfxLayerRoleName(AttackVfxLayerRole role) noexcept
Stable JSON spelling for a layer role.
Definition AttackVfxRecipe.cpp:440
@ InvalidArgument
@ NotFound
Definition Container.h:602
@ LayerStarted
@ InstanceStopped
@ CueConsumed
@ LayerSkipped
Owning result of one atomic orchestration step.
Definition AttackVfxRuntime.h:101
std::vector< AttackVfxHandle > advanced
Definition AttackVfxRuntime.h:102
std::vector< AttackVfxFrameEvent > events
Definition AttackVfxRuntime.h:104
std::vector< AttackVfxHandle > stopped
Definition AttackVfxRuntime.h:103
Generation-qualified reference to one pooled attack VFX instance.
Definition AttackVfxRuntime.h:27
Owning observable state for one live instance.
Definition AttackVfxRuntime.h:68
static Result< AttackVfxRecipe > fromJson(std::string_view json)
Parse, validate, and return a complete recipe without mutating live state.
Definition AttackVfxRecipe.cpp:569
static Result< AttackVfxSkin > fromJson(std::string_view json)
Parse a standalone skin document.
Definition AttackVfxRecipe.cpp:561