Table of Contents

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

bool

LockAtMax

public bool LockAtMax

Field Value

bool

MaxTime

public float MaxTime

Field Value

float

Time

public float Time

Field Value

float

VTable

public nint VTable

Field Value

nint

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 float

The 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()