2019-08-07 22:25:33 +02:00
|
|
|
using Coroutine;
|
|
|
|
|
|
|
|
namespace MLEM.Startup {
|
2020-05-22 20:32:38 +02:00
|
|
|
/// <summary>
|
|
|
|
/// This class contains a set of events for the coroutine system that are automatically fired in <see cref="MlemGame"/>.
|
|
|
|
/// </summary>
|
2019-08-07 22:25:33 +02:00
|
|
|
public static class CoroutineEvents {
|
|
|
|
|
2020-05-22 20:32:38 +02:00
|
|
|
/// <summary>
|
2021-12-13 00:39:36 +01:00
|
|
|
/// This event is fired in <see cref="MlemGame.Draw"/>, before <see cref="MlemGame.DoDraw"/> is called.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Event PreUpdate = new Event();
|
|
|
|
/// <summary>
|
|
|
|
/// This event is fired in <see cref="MlemGame.Update"/>, after <see cref="MlemGame.DoUpdate"/> is called.
|
2020-05-22 20:32:38 +02:00
|
|
|
/// </summary>
|
2019-08-07 22:25:33 +02:00
|
|
|
public static readonly Event Update = new Event();
|
2020-05-22 20:32:38 +02:00
|
|
|
/// <summary>
|
2021-12-13 00:39:36 +01:00
|
|
|
/// This event is fired in <see cref="MlemGame.Draw"/>, before <see cref="MlemGame.DoDraw"/> is called.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Event PreDraw = new Event();
|
|
|
|
/// <summary>
|
|
|
|
/// This event is fired in <see cref="MlemGame.Draw"/>, after <see cref="MlemGame.DoDraw"/> is called.
|
2020-05-22 20:32:38 +02:00
|
|
|
/// </summary>
|
2019-08-07 22:25:33 +02:00
|
|
|
public static readonly Event Draw = new Event();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|