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

    Interface UseTechniqueSelectionResult

    Technique selection state and actions.

    interface UseTechniqueSelectionResult {
        activeCooldowns: readonly TechniqueCooldown[];
        availableTechniques: readonly Technique[];
        executeTechnique: (indexOverride?: number) => void;
        getRemainingCooldown: (techniqueId: string) => number;
        hasResources: (technique: Technique) => boolean;
        isOnCooldown: (techniqueId: string) => boolean;
        selectedIndex: number;
        selectTechnique: (index: number) => void;
        validateTechnique: (technique: Technique) => TechniqueValidation;
    }
    Index

    Properties

    activeCooldowns: readonly TechniqueCooldown[]

    Active cooldowns for techniques

    availableTechniques: readonly Technique[]

    Available techniques for player archetype

    executeTechnique: (indexOverride?: number) => void

    Execute currently selected technique

    getRemainingCooldown: (techniqueId: string) => number

    Get remaining cooldown time in ms

    hasResources: (technique: Technique) => boolean

    Check if player has sufficient resources

    isOnCooldown: (techniqueId: string) => boolean

    Check if technique is on cooldown

    selectedIndex: number

    Currently selected technique index

    selectTechnique: (index: number) => void

    Select technique by index

    validateTechnique: (technique: Technique) => TechniqueValidation

    Check if technique can be executed