Skip to content

Core Systems

shmellyorc edited this page Sep 23, 2026 · 5 revisions

Core Systems

VOID is split into focused systems that can be used together without requiring an editor-driven workflow.

This page is a map of the main systems rather than a second API reference.

Game and Timing

The Game class owns the main loop, window, frame timing, lifecycle, coroutine updates, and presentation.

var settings = GameSettings.Instance
    .SetAppCompany("MyStudio")
    .SetAppName("MyGame")
    .Build();

using var game = new MyGame(settings);
game.Run();

Lifecycle hooks:

  • OnEnter()
  • OnUpdate(FrameTime)
  • OnDraw(FrameTime)
  • OnExit()

See Game Class.

GameSettings

Startup behavior is configured through GameSettings.

Some commonly used settings:

var settings = GameSettings.Instance
    .SetAppCompany("MyStudio")
    .SetAppName("MyGame")
    .SetAppTitle("My Game")
    .SetWindow(1280, 720)
    .SetViewport(320, 180)
    .SetVsync(true)
    .SetClearColor("#20232a")
    .SetTargetFPS(60)
    .Build();

Window/display options now also include:

.SetDisplay(0)
.SetDesktopFullscreen()
.SetFullscreenMode(1920, 1080, 144f)
.SetLinuxWindowBackend(LinuxWindowBackend.X11ThenWayland)

Renderer options include:

.SetOpenGLVersion(3, 3)
.SetRenderer(() => new MyRenderer())

See Window & Displays and Custom Renderers.

Rendering

VOID provides:

  • SpriteBatcher
  • PrimitiveBatcher
  • renderer-neutral scissor clipping
  • texture atlasing
  • render targets
  • custom shaders
  • post-processing
  • cameras
  • renderer-neutral GPU contracts

The built-in backend uses Silk.NET.OpenGL.

See Rendering, Camera, and Matrix.

Assets

AssetManager provides:

  • typed asset loading
  • caching
  • automatic reloading after eviction
  • mount priority
  • custom asset types
  • loose-file mounts
  • encrypted/compressed pack mounts

See Asset Management.

Input

VOID exposes renderer/platform-neutral keyboard, mouse, gamepad, and action APIs. SDL3 is used internally.

See Input.

Audio

VOID uses OpenAL internally while game code works with Sound, SoundInstance, and SoundHelper.

See Audio.

Coroutines

Use coroutines for waits, sequencing, conditions, and tweens without turning every timed behavior into a state machine.

See Coroutines.

State Machine

StateMachine provides coroutine-backed finite state machines for gameplay modes, AI, menus, interactions, and other logic that is easier to express as named states.

It supports:

  • fluent state registration
  • transitions by yielding another state name
  • direct child IEnumerator routines
  • current and previous state tracking
  • state history and GoBack()
  • restart and forced re-entry
  • pause/resume
  • enter, exit, and changed callbacks
  • access to the latest FrameTime

Only the active state is advanced. Inactive states are not polled or updated.

See State Machine. For general waits, sequencing, tweens, and reusable routines, see Coroutines.

Saving

VOID provides typed save/load helpers with encryption and manifest verification.

See Save System.

Pathfinding

Built-in pathfinding includes:

  • A*
  • Dijkstra
  • BFS
  • flow fields

See Pathfinding.

Logging

Logging is asynchronous and supports multiple sinks.

See Logging.

Discovery and Dynamic Construction

DiscoverableHelper finds opted-in types from loaded assemblies.

InstanceHelper creates compatible types dynamically by name or Type.

These are building blocks for registries, gameplay modules, factories, tools, and custom plugin systems.

See Discoverable System and Instance Helper.


Upgrading an older project? See Migrating to 2.0.

Back to Home

Clone this wiki locally