Skip to main content

ShellAnimationHandler

A class in Root.Township, Alta.PlayerEffects.

One request to show a shell effect on a player through StatEffectShellAnimator, which queues requests by priority.

Constructors​

MemberWhat it is
ShellAnimationHandler(ShellSetting setting, DurationCurve curve, float targetProgress, float priority, StatEffectShellAnimator animator)Creates a ShellAnimationHandler from setting, curve, targetProgress, priority and animator.

Fields​

MemberWhat it is
Action<ShellAnimationHandler> DeactivatedCalled when Deactivate runs.
2 private and internal fields
MemberWhat it is
private StatEffectShellAnimator animatorThe shell animator whose material this handler sets.
private ShellSetting settingThe shell setting applied to the animator's material by SetMaterial.

Properties​

MemberWhat it is
DurationCurve Curve { get; }Timing curve for animating to TargetProgress.
bool IsActive { get; private set; }True until Deactivate is called.
float Priority { get; }Queue priority in the animator.
float TargetProgress { get; }Shell progress to animate to.

Methods​

MemberWhat it is
void Deactivate()Marks it inactive and calls Deactivated so the animator moves on.
void SetMaterial()Applies this request's shell setting to the animator's shell material, if not already current.

Used in​

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