Show raw api
{
"functions": [
{
"name": "new",
"desc": "Constructs a new Cooldown.",
"params": [
{
"name": "obj",
"desc": "",
"lua_type": "NumberValue"
},
{
"name": "serviceBag",
"desc": "",
"lua_type": "ServiceBag"
}
],
"returns": [
{
"desc": "",
"lua_type": "CooldownBase"
}
],
"function_type": "static",
"source": {
"line": 24,
"path": "src/cooldown/src/Shared/CooldownBase.lua"
}
},
{
"name": "GetObject",
"desc": "Gets the Roblox instance of the cooldown.",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "Instance"
}
],
"function_type": "method",
"source": {
"line": 53,
"path": "src/cooldown/src/Shared/CooldownBase.lua"
}
},
{
"name": "GetTimePassed",
"desc": "Gets the time passed",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "number?"
}
],
"function_type": "method",
"source": {
"line": 61,
"path": "src/cooldown/src/Shared/CooldownBase.lua"
}
},
{
"name": "GetTimeRemaining",
"desc": "Gets the time remaining",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "number?"
}
],
"function_type": "method",
"source": {
"line": 78,
"path": "src/cooldown/src/Shared/CooldownBase.lua"
}
},
{
"name": "GetEndTime",
"desc": "Gets the syncronized time stamp the cooldown is ending at",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "number?"
}
],
"function_type": "method",
"source": {
"line": 95,
"path": "src/cooldown/src/Shared/CooldownBase.lua"
}
},
{
"name": "GetStartTime",
"desc": "Gets the syncronized time stamp the cooldown is starting at",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "number?"
}
],
"function_type": "method",
"source": {
"line": 107,
"path": "src/cooldown/src/Shared/CooldownBase.lua"
}
},
{
"name": "GetLength",
"desc": "Gets the length of the cooldown",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "number"
}
],
"function_type": "method",
"source": {
"line": 120,
"path": "src/cooldown/src/Shared/CooldownBase.lua"
}
}
],
"properties": [],
"types": [],
"name": "CooldownBase",
"desc": "Base object for a cooldown. Provides calculation utilties.",
"source": {
"line": 5,
"path": "src/cooldown/src/Shared/CooldownBase.lua"
}
}