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

    Function getAnimationForTechnique

    • Get animation name for a technique

      PRIORITY ORDER:

      1. Direct lookup in ALL_ANIMATIONS by technique ID (stance-specific)
      2. Regex pattern matching for generic techniques
      3. Fallback to "jab"

      This ensures stance-specific animations like "geon_heaven_strike" are used when available, while still supporting generic technique names.

      Parameters

      • techniqueNameOrId: string

        Technique name, ID, or Korean name

      Returns string

      Animation name from ALL_ANIMATIONS

      getAnimationForTechnique("geon_heaven_strike") // "geon_heaven_strike" (exact match)
      getAnimationForTechnique("tae_wrist_lock") // "tae_wrist_lock" (exact match)
      getAnimationForTechnique("roundhouse_kick") // "roundhouse_kick" (regex match)
      getAnimationForTechnique("앞차기") // "front_kick" (regex match)

      기술에맞는애니메이션가져오기