Comment on page
App.Server
Support us as a GitHub Sponsor and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude.
These articles are made possible by our GitHub Sponsors ... become a sponsor today!
Provides for initialization and registration of a Steam Game Server configuraiton.
Returns the ID issued to the Steam Game Server on initalization.
public static CSteamID ID => get;
Indicates rather or not the server is logged on
public static bool LoggedOn => get;
Defines the configuration of the server, this will be set by the Initialize method
public static SteamGameServerConfiguraiton Configuraiton => get;
This is a global field located on API.App.Initialized and indicates rather or not the system is initialized.
This is *Not* located in the API.App.Server class rather its in the parent API.App class so to access it
if(API.App.Initalized)
;//Yes it is initalized
else
;//No it is not
public static bool API.App.Initalized => get;
Initializes the Steam API for client processing. If your using SteamSettings or SteamworksBehaviour this is done for you. You should only call this if you are not using SteamSettings.Initialize or the SteamworksBehaviour.
If used you will need to provide a Steam Game Server Configuration, this can be write and read from a JSON formatted file or set up as a structure and passed in.
public static Initialize(AppData appId, SteamGameServerConfiguration config);
Logs the initialized server API on to the steam backend. If your Steam Game Server Settings is configured for auto logon this will be called for you once the API is initialized.
public static void LogOn()
Updates the server details based on the active configuration. This is called for you when the server first connects.
public static void SendUpdatedServerDetailsToSteam()
Last modified 4mo ago