clik-engine API
    Preparing search index...

    Interface DestructibleConfig

    interface DestructibleConfig {
        maxHealth: number;
        onDamage?: (amount: number, remaining: number) => void;
        onDestroy?: () => void;
        stages?: { callback: () => void; threshold: number }[];
    }
    Index

    Properties

    maxHealth: number

    Total health

    onDamage?: (amount: number, remaining: number) => void

    Called on each damage

    onDestroy?: () => void

    Called when fully destroyed

    stages?: { callback: () => void; threshold: number }[]

    Visual/behavioral stages as health decreases. Thresholds are ratios (0-1).