Skip to content

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.

C#
public interface IEngineEventSink

Methods

FocusChanged(bool)

The game’s window gained (true) or lost (false) the input focus.

C#
void FocusChanged(bool focused)

Parameters

focused bool

QuitRequested()

Something outside the game asked it to quit (the window’s close button, the system).

C#
void QuitRequested()

Resized(SurfaceResized)

The main surface changed its size in pixels.

C#
void Resized(SurfaceResized size)

Parameters

size SurfaceResized

Resumed()

A suspended game came back.

C#
void Resumed()

Suspending()

The system is taking the game away (a phone app sent to the background, a hidden page).

C#
void Suspending()