Skip to main content

PlayingToDeadTransition

A class in Root.Township, Alta.PlayerStates.Transitions.

Playing to Dead transition. Its listeners are empty and nothing adds it, so in this build death goes through Downed instead.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private DamageData killingImpactThe damage that killed the player.

Methods​

MemberWhat it is
protected override void AddListeners()Does nothing.
protected override void DestinationPreActivationCallback(IPlayerState activatedState)Hands the killing damage to the new Dead state.
protected override void RemoveListeners()Does nothing.
1 private and internal method
MemberWhat it is
private void HandleDeath(DamageData impact)Stores the killing damage and switches to Dead. Not hooked to anything.

Used in​

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