Skip to main content

StatEffectShellAnimator

A class in Root.Township, Alta.PlayerEffects.

Client: the shell animator for stat effect shields around a player. Several shields can be asked for at once; the highest priority shows and the rest wait in a queue.

Constructors​

MemberWhat it is
StatEffectShellAnimator(PlayerCharacter character, Material shellMaterialSample)Creates a StatEffectShellAnimator from character and shellMaterialSample.

Fields​

MemberWhat it is
static readonly int _ColorAShader ID of _ColorA.
static readonly int _ColorBShader ID of _ColorB.
static readonly int _ProgressShader ID of _Progress.
static readonly int _SpeedShader ID of _Speed.
static readonly int _UTileShader ID of _UTile.
static readonly int _VTileShader ID of _VTile.
static readonly int _WaveAlphaShader ID of _WaveAlpha.
static readonly int _WaveColorShader ID of _WaveColor.
static readonly int _WaveTextureShader ID of _WaveTexture.
static readonly int _WidthShader ID of _Width.
2 private and internal fields
MemberWhat it is
private FastPriorityQueue<StatEffectShellAnimator.ShellAnimationHandlerNode> animationQueueWaiting shell effects, ordered by priority (lower value first).
private ShellAnimationHandler currentHandlerThe shell effect being shown. Backing field for CurrentHandler.

Properties​

MemberWhat it is
ShellAnimationHandler CurrentHandler { get; set; }The shield being shown.
protected override string MeshName { get; }"_Stat EffectS Shell".

Methods​

MemberWhat it is
ShellAnimationHandler AnimateShield(StatEffectShellSetting setting, float startProgress, float priority)Asks for a shield with a setting and priority (higher shows first). It plays now or queues; the returned handler ends it.
4 private and internal methods
MemberWhat it is
private void AnimateCurrentHandler()Starts the current handler's expand animation, or queues it by priority if another animation is running.
private void FollowQueue()Takes the next still-active handler off the queue and animates it; clears the current handler if none is left.
private void HandlerDeactivated(ShellAnimationHandler handler)When the current handler ends, animates the shell back out and then moves on to the queue.
private void ReturnToCurrent()Re-animates the current handler if still active, otherwise follows the queue.

Used in​

Members of other types that take, return or hold a StatEffectShellAnimator: