C# 클래스 Sharpcraft.Steam.SteamManager

Static class managing all other Steam components.
파일 보기 프로젝트 열기: SijmenSchoon/Sharpcraft

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