@cccode/fxr - v31.0.0
    Preparing search index...

    Class SteppedProperty<T>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    function: Stepped
    keyframes: IBasicKeyframe<T>[] = []
    loop: boolean = false
    modifiers: IModifier<T>[]

    Accessors

    • get componentCount(): 1 | 2 | 3 | 4

      Returns 1 | 2 | 3 | 4

    • get duration(): number

      Returns number

    • set duration(value: number): void

      Parameters

      • value: number

      Returns void

    • get fieldCount(): number

      Returns number

    Methods

    • Returns an equal property that works with the given game.

      If the property has multiple modifiers, there is a chance that the output of this method will not be perfectly equal, but it should still be close.

      Parameters

      • game: Game

        The game to ensure that the property works with.

      Returns Property<T, Stepped>

    • Creates a new sequence property that steps from one value to another.

      Type Parameters

      Parameters

      • duration: number

        The duration of the animation.

      • startValue: T

        The value at the start of the animation.

      • endValue: T

        The value at the end of the animation.

      Returns SteppedProperty<T>