Skip to content

InstanceDTO

InstanceDTO describes a managed game instance for library and detail views.

Kind

struct

Fields

Go fieldJSON fieldGo typeTypeScript typeOptionalNullableDescription
IDidstringstringNoNo
NamenamestringstringNoNo
DescriptiondescriptionstringstringNoNoDescription is the user-visible instance description.
GameVersionIDgameVersionIdstringstringNoNoGameVersionID selects the installed game version used by the instance.
GameClientgameClientstringstringNoNoGameClient selects the runtime implementation: vanilla or optimum.
DefaultAccountIDdefaultAccountId*stringstring | nullYesYesDefaultAccountID is the account used when the instance launches without an explicit choice.
DirectorydirectorystringstringNoNoDirectory is the instance data directory relative to the launcher data root.
StatusstatusstringstringNoNoStatus is the current instance lifecycle state.
LaunchArgumentslaunchArguments[]stringstring[]NoNoLaunchArguments are extra command-line arguments appended at launch.
EnvironmentVariablesenvironmentVariablesmap[string]stringRecord<string, string>NoNoEnvironmentVariables are additional environment values applied at launch.
IsPinnedisPinnedboolbooleanNoNoIsPinned reports whether the instance is pinned in the library.
LastPlayedAtlastPlayedAt*stringstring | nullYesYesLastPlayedAt is the timestamp of the most recent launch, when known.
CreatedAtcreatedAtstringstringNoNo
EnabledModCountenabledModCountintnumberNoNoEnabledModCount and TotalModCount summarize the installed mods.
TotalModCounttotalModCountintnumberNoNo
PlaytimeSecondsplaytimeSecondsint64numberNoNoPlaytimeSeconds is the accumulated play time across sessions.
CoverURLcoverUrl*stringstring | nullYesYesCoverURL serves the instance cover image, when one is set.

Used by

Source

internal/transport/wails/dto.go:148