Skip to main content

DeathAnimationSettings

A class in Root.Township, Alta.PlayerStates.

Settings for a two-burst death dissolve effect. DeadStateSettings.AnimationSettings holds one, but nothing reads it; the effect in use takes Alta.Combat.DeathAnimationSettings.

Constructors​

MemberWhat it is
DeathAnimationSettings()Creates a DeathAnimationSettings with default values.

Fields​

11 private and internal fields
MemberWhat it is
private Material ashesMaterialMaterial for the ashes left by the death effect.
private PooledObjectDefinition deathVisualPooled effect spawned for the death.
private PooledObjectDefinition deathVisualGroundPositionPooled effect spawned at ground level for the death.
private float defaultDurationLength of the death animation in seconds (default 3).
private float firstDissolveStrengthDissolve strength for the first burst.
private Texture2D firstRamp1First colour ramp texture of the first burst.
private Texture2D firstRamp2Second colour ramp texture of the first burst.
private PooledObjectDefinition preDeathVisualPooled effect spawned before the death burst.
private float secondDissolveStrengthDissolve strength for the second burst.
private Texture2D secondRamp1First colour ramp texture of the second burst.
private Texture2D secondRamp2Second colour ramp texture of the second burst.

Properties​

MemberWhat it is
Material AshesMaterial { get; }Material for the ashes.
PooledObjectDefinition DeathVisual { get; }Pooled particles for the second burst.
PooledObjectDefinition DeathVisualGroundPosition { get; }Pooled visual placed at ground level.
float DefaultDuration { get; }Default duration in seconds (3).
float FirstDissolveStrength { get; }Shell dissolve strength for the first burst.
Texture2D FirstRamp1 { get; }First colour ramp texture for the first burst.
Texture2D FirstRamp2 { get; }Second colour ramp texture for the first burst.
PooledObjectDefinition PreDeathVisual { get; }Pooled particles for the first burst.
float SecondDissolveStrength { get; }Shell dissolve strength for the second burst.
Texture2D SecondRamp1 { get; }First colour ramp texture for the second burst.
Texture2D SecondRamp2 { get; }Second colour ramp texture for the second burst.

Used in​

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