Skip to content

ludus::runtime::game_host::HostConfig

Ludus Wiki · API overview · Browse API

Struct

Static configuration for one host run. argv/cwd compatibility with the v1 executable Run is preserved by the host executable's main (design 3).

Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h

#include <ludus/runtime/game_host/host.h>
struct ludus::runtime::game_host::HostConfig final

Fields

Source

GameplaySource ludus::runtime::game_host::HostConfig::Source = GameplaySource::DynamicModule

Related types: GameplaySource

Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h

Mode

Presentation ludus::runtime::game_host::HostConfig::Mode = Presentation::Windowed

Related types: Presentation

Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h

ModulePath

std::string_view ludus::runtime::game_host::HostConfig::ModulePath
Absolute canonical path inside a leased generation directory.
Used only for DynamicModule. Empty for Static.

Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h

ControlFd

int32 ludus::runtime::game_host::HostConfig::ControlFd = -1
Protocol socket file descriptor inherited from the supervisor, or -1 to run without a control channel (legacy Run / local smoke).

Related types: int32

Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h

ProjectId

uint64 ludus::runtime::game_host::HostConfig::ProjectId = 0
Project/game identity passed through to the module's Create.

Related types: uint64

Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h

GameId

uint64 ludus::runtime::game_host::HostConfig::GameId = 0

Related types: uint64

Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h

ProjectEpoch

uint64 ludus::runtime::game_host::HostConfig::ProjectEpoch = 1

Related types: uint64

Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h

InitialGeneration

uint64 ludus::runtime::game_host::HostConfig::InitialGeneration = 1

Related types: uint64

Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h

AuthoredDocument

game_api::ByteView ludus::runtime::game_host::HostConfig::AuthoredDocument

Related types: game_api::ByteView

Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h

AwaitLoad

bool ludus::runtime::game_host::HostConfig::AwaitLoad = false
Editor startup: Hello precedes any gameplay Create.

Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h

MaxFrames

uint64 ludus::runtime::game_host::HostConfig::MaxFrames = 0
Maximum frames to run before exiting (0 = run until Stop/no events).
A bounded run is used by headless acceptance so a CI run terminates.

Related types: uint64

Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h