C# Class Sharpcraft.Steam.SteamManager

Static class managing all other Steam components.
Afficher le fichier Open project: SijmenSchoon/Sharpcraft

Private Properties

Свойство Type Description
SteamCheck void
SteamClose void

Méthodes publiques

Méthode Description
Close ( ) : void

Unload all Steam components and handlers.

GetName ( ) : string

Get the name of the currently logged in user.

GetState ( ) : EPersonaState

Get the EPersonaState of the currently logged in user.

GetStatus ( bool pretty = false ) : string

Get a string representation of the currently logged in user's EPersonaState.

Init ( ) : bool

Initializes the SteamManager. This MUST be called before other Steam operations are executed.

UpdateMinecraftData ( SteamMinecraftDataEventArgs e ) : void

Method called to update Minecraft data and broadcast it to any event listeners.

Private Methods

Méthode Description
SteamCheck ( object state ) : void

Check if the Steam client is running, shut down all Steam components if it's not.

SteamClose ( ) : void

Method called when the Steam client has closed, fires OnSteamClose to notify listeners.

Method Details

Close() public static méthode

Unload all Steam components and handlers.
public static Close ( ) : void
Résultat void

GetName() public static méthode

Get the name of the currently logged in user.
public static GetName ( ) : string
Résultat string

GetState() public static méthode

Get the EPersonaState of the currently logged in user.
public static GetState ( ) : EPersonaState
Résultat EPersonaState

GetStatus() public static méthode

Get a string representation of the currently logged in user's EPersonaState.
public static GetStatus ( bool pretty = false ) : string
pretty bool If true, capitalize the first letter of the return value.
Résultat string

Init() public static méthode

Initializes the SteamManager. This MUST be called before other Steam operations are executed.
public static Init ( ) : bool
Résultat bool

UpdateMinecraftData() public static méthode

Method called to update Minecraft data and broadcast it to any event listeners.
public static UpdateMinecraftData ( SteamMinecraftDataEventArgs e ) : void
e SteamMinecraftDataEventArgs The containing the data.
Résultat void