Show raw api
{
"functions": [
{
"name": "new",
"desc": "Constructs a new Cooldown.",
"params": [
{
"name": "numberValue",
"desc": "",
"lua_type": "NumberValue"
},
{
"name": "serviceBag",
"desc": "",
"lua_type": "ServiceBag"
}
],
"returns": [
{
"desc": "",
"lua_type": "CooldownBase"
}
],
"function_type": "static",
"source": {
"line": 43,
"path": "src/cooldown/src/Shared/Binders/CooldownBase.lua"
}
},
{
"name": "GetObject",
"desc": "Gets the Roblox instance of the cooldown.",
"params": [
{
"name": "self",
"desc": "",
"lua_type": "CooldownBase"
}
],
"returns": [
{
"desc": "",
"lua_type": "Instance"
}
],
"function_type": "static",
"source": {
"line": 86,
"path": "src/cooldown/src/Shared/Binders/CooldownBase.lua"
}
},
{
"name": "GetTimePassed",
"desc": "Gets the time passed",
"params": [
{
"name": "self",
"desc": "",
"lua_type": "CooldownBase"
}
],
"returns": [
{
"desc": "",
"lua_type": "number?"
}
],
"function_type": "static",
"source": {
"line": 94,
"path": "src/cooldown/src/Shared/Binders/CooldownBase.lua"
}
},
{
"name": "GetTimeRemaining",
"desc": "Gets the time remaining",
"params": [
{
"name": "self",
"desc": "",
"lua_type": "CooldownBase"
}
],
"returns": [
{
"desc": "",
"lua_type": "number?"
}
],
"function_type": "static",
"source": {
"line": 102,
"path": "src/cooldown/src/Shared/Binders/CooldownBase.lua"
}
},
{
"name": "GetEndTime",
"desc": "Gets the syncronized time stamp the cooldown is ending at",
"params": [
{
"name": "self",
"desc": "",
"lua_type": "CooldownBase"
}
],
"returns": [
{
"desc": "",
"lua_type": "number?"
}
],
"function_type": "static",
"source": {
"line": 110,
"path": "src/cooldown/src/Shared/Binders/CooldownBase.lua"
}
},
{
"name": "GetStartTime",
"desc": "Gets the syncronized time stamp the cooldown is starting at",
"params": [
{
"name": "self",
"desc": "",
"lua_type": "CooldownBase"
}
],
"returns": [
{
"desc": "",
"lua_type": "number?"
}
],
"function_type": "static",
"source": {
"line": 118,
"path": "src/cooldown/src/Shared/Binders/CooldownBase.lua"
}
},
{
"name": "GetLength",
"desc": "Gets the length of the cooldown",
"params": [
{
"name": "self",
"desc": "",
"lua_type": "CooldownBase"
}
],
"returns": [
{
"desc": "",
"lua_type": "number"
}
],
"function_type": "static",
"source": {
"line": 126,
"path": "src/cooldown/src/Shared/Binders/CooldownBase.lua"
}
}
],
"properties": [
{
"name": "Done",
"desc": "Event that fires when the cooldown is done.",
"lua_type": "Signal<()>",
"source": {
"line": 73,
"path": "src/cooldown/src/Shared/Binders/CooldownBase.lua"
}
}
],
"types": [],
"name": "CooldownBase",
"desc": "Base object for a cooldown. Provides calculation utilties.",
"source": {
"line": 6,
"path": "src/cooldown/src/Shared/Binders/CooldownBase.lua"
}
}