Skip to main content

Coroutine

Namespace: MonineEngine.Core.Coroutines

Coroutine handle with data on a running coroutine.

public class Coroutine

Inheritance ObjectCoroutine
Attributes NullableContextAttribute, NullableAttribute

Fields

IsPaused

Gets or sets

public bool IsPaused;

Owner

public Entity Owner;

Properties

Enumerator

Gets the enumerator of the coroutine.

public IEnumerator Enumerator { get; }

Property Value

IEnumerator

Constructors

Coroutine(IEnumerator, Entity)

Constructs a new Coroutine

public Coroutine(IEnumerator routine, Entity owner)

Parameters

routine IEnumerator
The routine of the coroutine.

owner Entity
The Entity that owns/runs the given routine.