Table of Contents

Class Coroutine

Namespace
AO
Assembly
CoreAssembly.dll

Coroutines are a way to run code in a way that mimics parallelism. Coroutines run on the main thread and are ticked every frame.

public class Coroutine
Inheritance
Coroutine
Inherited Members
Extension Methods

Methods

InterpTimer(ref float, float)

public static bool InterpTimer(ref float timer, float seconds)

Parameters

timer float
seconds float

Returns

bool

Start(Entity, IEnumerator)

Start a coroutine.

public static Coroutine Start(Entity owner, IEnumerator enumerator)

Parameters

owner Entity

The entity that owns the coroutine.

enumerator IEnumerator

The enumerator to run.

Returns

Coroutine

Stop()

public void Stop()

Timer(ref float, float)

public static bool Timer(ref float timer, float seconds)

Parameters

timer float
seconds float

Returns

bool