67 lines
1.2 KiB
Lua
67 lines
1.2 KiB
Lua
local LuaDurationManualClockAPI =
|
|
{
|
|
Name = "LuaDurationManualClockAPI",
|
|
Type = "ScriptObject",
|
|
ObjectType = "Userdata",
|
|
Environment = "All",
|
|
|
|
Functions =
|
|
{
|
|
{
|
|
Name = "AdvanceTime",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
Documentation = { "Advances the clock by a specified number of seconds." },
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "delta", Type = "Seconds", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "ResetTime",
|
|
Type = "Function",
|
|
Documentation = { "Resets the clock to a zero time value." },
|
|
|
|
Arguments =
|
|
{
|
|
},
|
|
},
|
|
{
|
|
Name = "RewindTime",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
Documentation = { "Rewinds the clock by a specified number of seconds." },
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "delta", Type = "Seconds", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "SetTime",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
Documentation = { "Sets the current clock timestamp to a given value." },
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "time", Type = "FrameTime", Nilable = false },
|
|
},
|
|
},
|
|
},
|
|
|
|
Events =
|
|
{
|
|
},
|
|
|
|
Tables =
|
|
{
|
|
},
|
|
|
|
Predicates =
|
|
{
|
|
},
|
|
};
|
|
|
|
APIDocumentation:AddDocumentationTable(LuaDurationManualClockAPI); |