Skip to main content

ICoroutineService

Namespace: MonineEngine.Core

The interface for the CoroutineService.

public interface ICoroutineService : IService, System.IDisposable

Implements IService, IDisposable
Attributes NullableContextAttribute

Methods

StartCoroutine(IEnumerator, Entity)

Starts a coroutine based on the given IEnumerator.

Coroutine StartCoroutine(IEnumerator routine, Entity owner)

Parameters

routine IEnumerator
The routine to start.

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

Returns

Coroutine
A Coroutine with data on the coroutine.

StopCoroutine(Coroutine)

Stops a coroutine based on the given Coroutine.

void StopCoroutine(Coroutine handle)

Parameters

handle Coroutine
The handle of the coroutine to stop.

Update(GameTime)

Updates all current coroutines.

void Update(GameTime gameTime)

Parameters

gameTime GameTime
A snapshot of the current time of the game in this update cycle.