group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
AppContext Struct Reference

Non-owning view of App-owned services and configuration. More...

#include <AppContext.hpp>

Collaboration diagram for AppContext:
[legend]

Public Attributes

SDL_Window & window
 Main application window.
NewRendererrenderer
 Shared renderer owned by App.
Clientclient
 Shared network client owned by App.
SfxSystemsfxSystem
 Shared audio system owned by App.
HostedServerhostedServer
 Local hosted server process owned by App.
HostConfigStatehostConfigState
 Persistent draft settings for the host config screen.
NetworkConfignetworkConfig
 Runtime network/discovery config.
DeveloperConfigdeveloperConfig
 Developer workflow config.
UserSettingsuserSettings
 User-specific input and gameplay settings.
std::string_view userSettingsPath
 Save path for user-specific settings.
std::string_view currentServerName
 Display name for the connected server, if known.
std::string_view currentServerIp
 Address used for the current server connection, if known.
uint16_t currentServerPort = 0
 Port used for the current server connection, if known.

Detailed Description

Non-owning view of App-owned services and configuration.

Member Data Documentation

◆ client

Client& AppContext::client

Shared network client owned by App.

◆ currentServerIp

std::string_view AppContext::currentServerIp

Address used for the current server connection, if known.

◆ currentServerName

std::string_view AppContext::currentServerName

Display name for the connected server, if known.

◆ currentServerPort

uint16_t AppContext::currentServerPort = 0

Port used for the current server connection, if known.

◆ developerConfig

DeveloperConfig& AppContext::developerConfig

Developer workflow config.

◆ hostConfigState

HostConfigState& AppContext::hostConfigState

Persistent draft settings for the host config screen.

◆ hostedServer

HostedServer& AppContext::hostedServer

Local hosted server process owned by App.

◆ networkConfig

NetworkConfig& AppContext::networkConfig

Runtime network/discovery config.

◆ renderer

NewRenderer& AppContext::renderer

Shared renderer owned by App.

◆ sfxSystem

SfxSystem& AppContext::sfxSystem

Shared audio system owned by App.

◆ userSettings

UserSettings& AppContext::userSettings

User-specific input and gameplay settings.

◆ userSettingsPath

std::string_view AppContext::userSettingsPath

Save path for user-specific settings.

◆ window

SDL_Window& AppContext::window

Main application window.


The documentation for this struct was generated from the following file: