Table of Contents

Interface ICharacterAnimationController

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Centralized animation control interface for characters. Abstracts Animator parameter setting and integrates with FishNet NetworkAnimator for sync.

public interface ICharacterAnimationController : ICharacterBehaviour
Inherited Members

Methods

ResetDeath()

Resets the death animation state and restores default locomotion params. Called on resurrection or when death was mispredicted (reconcile correction). Resets Death trigger, clears Speed to 0, restores Grounded/Crouching defaults, and clears any lingering Attack/Cast/Roll/Jump/Block state.

void ResetDeath()

SetBlocking(bool)

Sets the blocking state.

void SetBlocking(bool blocking)

Parameters

blocking bool

SetCrouching(bool)

Sets whether the character is crouching.

void SetCrouching(bool crouching)

Parameters

crouching bool

SetGrounded(bool)

Sets whether the character is on the ground.

void SetGrounded(bool grounded)

Parameters

grounded bool

SetRootMotion(bool)

Enables or disables root motion on the Animator.

void SetRootMotion(bool enabled)

Parameters

enabled bool

SetSpeed(float)

Sets the locomotion speed parameter (0=Idle, 0.5=Walk, 1=Run, 1.5=Sprint).

void SetSpeed(float speed)

Parameters

speed float

TriggerAttack()

Triggers an attack animation.

void TriggerAttack()

TriggerCast()

Triggers a spell cast animation.

void TriggerCast()

TriggerDeath()

Triggers the death animation and suppresses all other animation state.

void TriggerDeath()

TriggerJump()

Triggers a jump animation.

void TriggerJump()

TriggerRoll()

Triggers a roll/dodge animation.

void TriggerRoll()