Skip to main content

PlayingToDownedTransition

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

Moves a playing player to Downed when their Downed event fires.

Constructors​

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

Fields​

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

Methods​

MemberWhat it is
protected override void AddListeners()Subscribes to the player's Downed event (and logs it).
protected override void DestinationPreActivationCallback(IPlayerState activatedState)Hands the damage that downed the player to the new Downed state.
protected override void RemoveListeners()Unsubscribes from Downed.
1 private and internal method
MemberWhat it is
private void HandlePlayerDowned(DamageData impact)Stores the damage and switches to Downed.

Used in​

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