Skip to content

KernelAPI reference

Class GameRunner

Namespace: MicroEngine.Core
Assembly: MicroEngine.dll
Guide: Game lifecycle and time

Runs a game to completion on platforms that own their thread (desktop, headless): GameLoop ticked in a blocking loop.

C#
public static class GameRunner

Inheritance

object ← GameRunner

Methods

Run(Game, IPlatform, RunOptions?)

Starts game on platform, runs frames until it stops, then shuts it down. Never throws for errors raised by the game: they are in Error.

C#
public static RunResult Run(Game game, IPlatform platform, RunOptions? options = null)

Parameters

game Game

platform IPlatform

options RunOptions?

Returns

RunResult

Remarks

The platform is not disposed; its owner does that.