KernelAPI reference
Class EngineLifecycle
Namespace: MicroEngine.Kernel
Assembly: MicroEngine.Kernel.dll
Guide: Modules and the frame schedule
The engine’s IEngineLifecycle: subscribers read it through the interface; the loop and hosts raise
the events through the Raise methods.
public sealed class EngineLifecycle : IEngineLifecycleInheritance
Implements
Constructors
EngineLifecycle()
public EngineLifecycle()Methods
RaiseFocusChanged(bool)
Raises FocusChanged.
public void RaiseFocusChanged(bool focused)Parameters
focused bool
RaiseQuitRequested()
Raises QuitRequested; every handler runs even after a veto.
public bool RaiseQuitRequested()Returns
True when the game should quit (no handler vetoed).
RaiseResized(SurfaceResized)
Raises Resized.
public void RaiseResized(SurfaceResized size)Parameters
size SurfaceResized
RaiseResumed()
Raises Resumed.
public void RaiseResumed()RaiseSuspending()
Raises Suspending.
public void RaiseSuspending()FocusChanged
The game’s window gained (true) or lost (false) the input focus. Raised by hosts that report it.
public event Action<bool>? FocusChangedEvent Type
QuitRequested
Something outside the game asked it to quit; a handler may Veto it.
public event Action<QuitRequest>? QuitRequestedEvent Type
Resized
The drawing surface changed size. Raised by hosts that report it.
public event Action<SurfaceResized>? ResizedEvent Type
Resumed
A suspended game came back; raised before its next frame.
public event Action? ResumedEvent Type
Suspending
The system is taking the game away (a phone app sent to the background); nothing runs until Resumed.
public event Action? Suspending