C# Class Sharpcraft.Steam.SteamManager

Static class managing all other Steam components.
Mostra file Open project: SijmenSchoon/Sharpcraft

Private Properties

Property Type Description
SteamCheck void
SteamClose void

Public Methods

Method 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

Method 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 method

Unload all Steam components and handlers.
public static Close ( ) : void
return void

GetName() public static method

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

GetState() public static method

Get the EPersonaState of the currently logged in user.
public static GetState ( ) : EPersonaState
return EPersonaState

GetStatus() public static method

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.
return string

Init() public static method

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

UpdateMinecraftData() public static method

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.
return void