C# Класс Sharpcraft.Steam.SteamManager

Static class managing all other Steam components.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
SteamCheck void
SteamClose void

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Close() публичный статический Метод

Unload all Steam components and handlers.
public static Close ( ) : void
Результат void

GetName() публичный статический Метод

Get the name of the currently logged in user.
public static GetName ( ) : string
Результат string

GetState() публичный статический Метод

Get the EPersonaState of the currently logged in user.
public static GetState ( ) : EPersonaState
Результат EPersonaState

GetStatus() публичный статический Метод

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.
Результат string

Init() публичный статический Метод

Initializes the SteamManager. This MUST be called before other Steam operations are executed.
public static Init ( ) : bool
Результат bool

UpdateMinecraftData() публичный статический Метод

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.
Результат void