Skip to main content

DownedToDeadTransition

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

Moves a downed player to Dead when they are killed.

Constructors​

MemberWhat it is
DownedToDeadTransition()Creates a DownedToDeadTransition 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()Subscribes to the player's Killed event (and logs it).
protected override void DestinationPreActivationCallback(IPlayerState activatedState)Hands the killing damage to the new Dead state.
protected override void RemoveListeners()Unsubscribes from Killed.
1 private and internal method
MemberWhat it is
private void HandleDeath(DamageData impact)Stores the killing damage and switches to Dead.

Used in​

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