@kayahr/wastelib
    Preparing search index...

    Interface AnimationPlayer

    Shared interface for [[EndingAnimationPlayer]] and [[PortraitAnimationPlayer]].

    interface AnimationPlayer {
        getHeight(): number;
        getNextDelay(): number;
        getSpeed(): number;
        getWidth(): number;
        next(): void;
        reset(): void;
        setSpeed(speed: number): void;
        start(): void;
        stop(): void;
    }

    Implemented by

    Index

    Methods

    • Returns the animation height in pixels.

      Returns number

      The animation height in pixels.

    • Returns the delay to wait before rendering the next frame.

      Returns number

      The next delay in milliseconds.

    • Returns the animation speed in milliseconds per time unit. Default is 50.

      Returns number

      The animation speed in milliseconds per time unit.

    • Returns the animation width in pixels.

      Returns number

      The animation width in pixels.

    • Sets the animation speed in milliseconds per time unit. Default is 50.

      Parameters

      • speed: number

        The animation speed to set.

      Returns void