CoroutineService
Namespace: MonineEngine.Core.Coroutines
Service to handle coroutines.
public class CoroutineService : MonineEngine.Core.ICoroutineService, MonineEngine.Core.IService, System.IDisposable
Inheritance Object → CoroutineService
Implements ICoroutineService, IService, IDisposable
Constructors
CoroutineService()
public CoroutineService()
Methods
StartCoroutine(IEnumerator, Entity)
public Coroutine StartCoroutine(IEnumerator routine, Entity owner)
Parameters
routine IEnumerator
owner Entity
Returns
StopCoroutine(Coroutine)
public void StopCoroutine(Coroutine handle)
Parameters
handle Coroutine
Update(GameTime)
Updates all current coroutines.
public void Update(GameTime gameTime)
Parameters
gameTime GameTime
A snapshot of the current time of the game in this update cycle.
Dispose()
public void Dispose()