Skip to main content

CooldownModel

Functions

GetStartTime

CooldownModel:GetStartTime() → number

Gets the syncronized time stamp the cooldown is starting at

GetTimeRemaining

CooldownModel:GetTimeRemaining() → number

Gets the time remaining

GetEndTime

CooldownModel:GetEndTime() → number?

Gets the syncronized time stamp the cooldown is ending at

Show raw api
{
    "functions": [
        {
            "name": "GetStartTime",
            "desc": "Gets the syncronized time stamp the cooldown is starting at",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 91,
                "path": "src/cooldown/src/Shared/Model/CooldownModel.lua"
            }
        },
        {
            "name": "GetTimeRemaining",
            "desc": "Gets the time remaining",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 99,
                "path": "src/cooldown/src/Shared/Model/CooldownModel.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": 114,
                "path": "src/cooldown/src/Shared/Model/CooldownModel.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "CooldownModel",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/cooldown/src/Shared/Model/CooldownModel.lua"
    }
}