载入中...
搜索中...
未找到
eve::stylize::BeamSkillEffect类 参考

Gameplay-facing recipe for laser and lightning mesh effects. 更多...

#include <BeamSkillEffect.h>

Public 成员函数

 BeamSkillEffect (BeamSkillPreset preset)
 Construct one recipe and apply preset geometry/style defaults.
 
void setPath (std::span< const glm::vec3 > points)
 Replace the owning world-space path; at least two points are required to build.
 
void setEndpoints (const glm::vec3 &start, const glm::vec3 &end)
 Convenience two-point path assignment.
 
void play () noexcept
 Restart the effect playback envelope.
 
void stop (float fadeOutSeconds=0.f)
 Stop immediately or fade using the requested duration.
 
void update (float deltaSeconds)
 Advance the owned effect envelope with caller-provided simulation time.
 
BeamBuildResult build (const glm::vec3 &cameraForward) const
 Build and merge every path segment into one owning ribbon snapshot.
 
eve::Result< MeshEffectSubmitStatus > submit (MeshEffectRenderer &renderer, const glm::vec3 &cameraForward, const graphics::Color &tint=graphics::Color(1.f))
 Build and submit the current path through the shared Trail renderer.
 
BeamEffectConfig & geometry () noexcept
 Access mutable geometry controls for per-skill overrides.
 
MeshEffectInstance & effect () noexcept
 Access the owned style/playback instance for exposed parameters.
 
BeamSkillPreset preset () const noexcept
 Return the selected immutable behavior preset.
 

详细描述

Gameplay-facing recipe for laser and lightning mesh effects.

The recipe owns playback/style/path state but no Graphics resources. Path points are copied on assignment. Rendering is synchronous and render-thread affine through MeshEffectRenderer; gameplay callbacks are never retained.

在文件 BeamSkillEffect.h 第 25 行定义.

构造及析构函数说明

◆ BeamSkillEffect()

成员函数说明

◆ build()

BeamBuildResult eve::stylize::BeamSkillEffect::build ( const glm::vec3 &  cameraForward) const

◆ effect()

MeshEffectInstance & eve::stylize::BeamSkillEffect::effect ( )
inlinenoexcept

Access the owned style/playback instance for exposed parameters.

在文件 BeamSkillEffect.h 第 63 行定义.

◆ geometry()

BeamEffectConfig & eve::stylize::BeamSkillEffect::geometry ( )
inlinenoexcept

Access mutable geometry controls for per-skill overrides.

在文件 BeamSkillEffect.h 第 60 行定义.

◆ play()

void eve::stylize::BeamSkillEffect::play ( )
inlinenoexcept

Restart the effect playback envelope.

在文件 BeamSkillEffect.h 第 37 行定义.

◆ preset()

BeamSkillPreset eve::stylize::BeamSkillEffect::preset ( ) const
inlinenoexcept

Return the selected immutable behavior preset.

在文件 BeamSkillEffect.h 第 66 行定义.

◆ setEndpoints()

void eve::stylize::BeamSkillEffect::setEndpoints ( const glm::vec3 &  start,
const glm::vec3 &  end 
)

Convenience two-point path assignment.

在文件 BeamSkillEffect.cpp 第 65 行定义.

引用了 end , 以及 start.

◆ setPath()

void eve::stylize::BeamSkillEffect::setPath ( std::span< const glm::vec3 >  points)

Replace the owning world-space path; at least two points are required to build.

在文件 BeamSkillEffect.cpp 第 61 行定义.

引用了 points.

◆ stop()

void eve::stylize::BeamSkillEffect::stop ( float  fadeOutSeconds = 0.f)
inline

Stop immediately or fade using the requested duration.

在文件 BeamSkillEffect.h 第 40 行定义.

◆ submit()

eve::Result< MeshEffectSubmitStatus > eve::stylize::BeamSkillEffect::submit ( MeshEffectRenderer &  renderer,
const glm::vec3 &  cameraForward,
const graphics::Color &  tint = graphics::Color(1.f) 
)

Build and submit the current path through the shared Trail renderer.

参数
rendererBorrowed render-thread adapter; never retained.
cameraForwardCamera direction used to face ribbon vertices.
tintPer-draw tint multiplied by recipe playback intensity.
返回
Draw status or a structured invalid-path/build failure.

在文件 BeamSkillEffect.cpp 第 92 行定义.

引用了 build(), eve::stylize::Built, code, eve::stylize::DegenerateInput, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::PreconditionViolation, eve::stylize::MeshEffectRenderer::submitTrail() , 以及 tint.

◆ update()

void eve::stylize::BeamSkillEffect::update ( float  deltaSeconds)
inline

Advance the owned effect envelope with caller-provided simulation time.

在文件 BeamSkillEffect.h 第 43 行定义.


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