Skip to main content

CooldownConfig

@zylem/game-lib


@zylem/game-lib / behavior / CooldownConfig

Interface: CooldownConfig

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/cooldown.d.ts:11

CooldownBehavior

A stage-scoped behavior that manages named cooldowns via the global CooldownStore. Entities use this to register, check, and fire cooldowns. UI components (CooldownIcon) can read from the same store.

Properties​

duration​

duration: number

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/cooldown.d.ts:13

Duration in seconds


immediate?​

optional immediate?: boolean

Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/cooldown.d.ts:15

Whether the cooldown starts ready (default: true)