Black Trigram (흑괘) - Korean Martial Arts Combat Simulator API - v0.7.0
    Preparing search index...

    Class AnimationBuilder

    Animation builder for fluent animation construction

    애니메이션빌더

    Index

    Constructors

    Methods

    • Add a keyframe to the animation

      Parameters

      • time: number

        Time of keyframe in seconds

      • easing: string = "linear"

        Easing function name

      Returns KeyframeBuilder

      Keyframe builder for defining keyframe contents

    • Set animation type

      Parameters

      • animType: "idle" | "attack" | "defense" | "movement"

        Animation type

      Returns this

      This builder for chaining

    Properties

    animationName: string
    duration: number
    keyframes: AnimationKeyframe[]
    koreanName: string
    loop: boolean
    type: "idle" | "attack" | "defense" | "movement"