Loom Engine - v3.1.1
GitHub
TheWorldTable.ai
Preparing search index...
CooldownManager
Class CooldownManager
Index
Methods
create
start
tick
is
Ready
is
On
Cooldown
remaining
total
For
fraction
Elapsed
clear
clear
All
active
Count
active
Keys
try
Use
dispose
Methods
Static
create
create
(
opts
?:
CooldownManagerOptions
)
:
CooldownManager
Parameters
opts
:
CooldownManagerOptions
= {}
Returns
CooldownManager
start
start
(
key
:
string
,
durationMs
:
number
)
:
void
Parameters
key
:
string
durationMs
:
number
Returns
void
tick
tick
(
dtMs
:
number
)
:
void
Parameters
dtMs
:
number
Returns
void
is
Ready
isReady
(
key
:
string
)
:
boolean
Parameters
key
:
string
Returns
boolean
is
On
Cooldown
isOnCooldown
(
key
:
string
)
:
boolean
Parameters
key
:
string
Returns
boolean
remaining
remaining
(
key
:
string
)
:
number
Parameters
key
:
string
Returns
number
total
For
totalFor
(
key
:
string
)
:
number
Parameters
key
:
string
Returns
number
fraction
Elapsed
fractionElapsed
(
key
:
string
)
:
number
Parameters
key
:
string
Returns
number
clear
clear
(
key
:
string
)
:
boolean
Parameters
key
:
string
Returns
boolean
clear
All
clearAll
()
:
void
Returns
void
active
Count
activeCount
()
:
number
Returns
number
active
Keys
activeKeys
()
:
string
[]
Returns
string
[]
try
Use
tryUse
(
key
:
string
,
durationMs
:
number
)
:
boolean
Parameters
key
:
string
durationMs
:
number
Returns
boolean
dispose
dispose
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
create
start
tick
is
Ready
is
On
Cooldown
remaining
total
For
fraction
Elapsed
clear
clear
All
active
Count
active
Keys
try
Use
dispose
GitHub
TheWorldTable.ai
Loom Engine - v3.1.1
Loading...