platformer - v1.0.0
    Preparing search index...

    Component responsible for selecting the active animation for an entity based on ECS state.

    interface AnimationControllerComponent {
        getAnimation: (ecs: default, id: symbol) => string;
    }
    Index

    Properties

    Properties

    getAnimation: (ecs: default, id: symbol) => string

    Returns the animation key that should be played.

    Type Declaration

      • (ecs: default, id: symbol): string
      • Parameters

        • ecs: default

          The ECS instance.

        • id: symbol

          Entity identifier.

        Returns string