Skip to content

KernelAPI reference

Class QuitRequest

Namespace: MicroEngine.Kernel
Assembly: MicroEngine.Kernel.dll
Guide: Modules and the frame schedule

A request to quit that came from outside the game (the window’s close button, the system), passed to QuitRequested. A handler that must keep the game running (unsaved work, a confirmation dialog) calls Veto; the game can quit later on its own.

C#
public sealed class QuitRequest

Inheritance

object ← QuitRequest

Constructors

QuitRequest()

C#
public QuitRequest()

Properties

Vetoed

Whether a handler vetoed the request.

C#
public bool Vetoed { get; }

Property Value

bool

Methods

Veto()

Keeps the game running.

C#
public void Veto()