Skip to content

Scheduler

Inherits object

Public Member Functions

bool

IsRunning(string id)

Checks if a timed effect of the specified type is currently running. True if a timed effect of the specified type is running, false otherwise.

void

ProcessRequest(EffectRequest? request)

Processes and starts an effect request.

void

Enqueue(EffectRequest request, IEffect effect)

Enqueues a request and effect pair without performing lookup.

bool

PauseAll()

Pauses all running timed effects.

bool

ResumeAll()

Resumes all paused timed effects.

bool

StopAll()

Stops all running timed effects.

void

Tick(SITimeSpan deltaTime)

Advances queued and running effects given an elapsed time step.

Private Functions

void

ConsumeEnumerators(SITimeSpan deltaTime)

Consumes and advances all running enumerators, removing any that have completed.

Private Attributes

CrowdControl

m_crowdControl

ClientSocket

m_clientSocket

ConcurrentQueue

m_requestQueue

ConcurrentDictionary

m_runningEffects