PlatformAPI reference
Interface IEngineEventSink
Namespace: MicroEngine.Platform
Assembly: MicroEngine.Platform.dll
Guide: The platform host
Where a host delivers what happens to the game from outside its simulation (PumpEvents). The engine’s loop implements it and raises the matching IEngineLifecycle events.
public interface IEngineEventSinkMethods
FocusChanged(bool)
The game’s window gained (true) or lost (false) the input focus.
void FocusChanged(bool focused)Parameters
focused bool
QuitRequested()
Something outside the game asked it to quit (the window’s close button, the system).
void QuitRequested()Resized(SurfaceResized)
The main surface changed its size in pixels.
void Resized(SurfaceResized size)Parameters
size SurfaceResized
Resumed()
A suspended game came back.
void Resumed()Suspending()
The system is taking the game away (a phone app sent to the background, a hidden page).
void Suspending()