Struct Timer
- Namespace
- SharpPluginLoader.Core
- Assembly
- SharpPluginLoader.Core.dll
Represents an instance of the cTimer class
public struct Timer
- Inherited Members
Fields
Active
public bool Active
Field Value
LockAtMax
public bool LockAtMax
Field Value
MaxTime
public float MaxTime
Field Value
Time
public float Time
Field Value
VTable
public nint VTable
Field Value
Methods
AddTime(float)
Adds time to the timer. If the timer reaches the maximum time, it will return true. Should be called every frame.
public bool AddTime(float t)
Parameters
t
floatThe time to add
Returns
- bool
True if the timer reached the maximum time, false otherwise
Ended()
Returns true if the timer has reached the maximum time.
public readonly bool Ended()
Returns
- bool
True if the timer has reached the maximum time, false otherwise
Reset()
Resets the timer to 0 and deactivates it.
public void Reset()
SetToEnd()
Sets the timer to the maximum time.
public void SetToEnd()