CooldownEntry
@zylem/game-lib / behavior / CooldownEntry
Interface: CooldownEntry
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:70
A single cooldown entry in the global store.
Properties
active
active:
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:82
Whether this cooldown is currently counting down
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:74
Total cooldown time in seconds
elapsed
elapsed:
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:76
Time accumulated since last fire
name
name:
string
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:72
Identifier for this cooldown
progress
progress:
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:80
Normalized progress 0..1 (0 = just fired, 1 = ready)
ready
ready:
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:78
Whether the cooldown is ready (elapsed >= duration)