C# 클래스 EzSteam.SteamBot

파일 보기 프로젝트 열기: Rohansi/EzSteam 1 사용 예제들

공개 메소드들

메소드 설명
AddFriend ( SteamID id ) : void

Adds somebody to the bot's friend list.

Connect ( ) : void

Connect and login to Steam.

Disconnect ( SteamBotDisconnectReason reason = SteamBotDisconnectReason.Disconnected ) : void

Disconnect from Steam. Will call OnDisconnected.

GetPersona ( SteamID id ) : SteamPersona

Gets the persona from a Steam ID. Will return null if the given ID is not valid. Information may not be instantly available if the persona was not "seen" before.

Join ( SteamID chatId ) : SteamChat

Attempt to join a chat. Will call OnLeave if the chat could not be joined.

RemoveFriend ( SteamID id ) : void

Removes somebody from the bot's friend list.

SteamBot ( string username, string password, string authCode = null ) : System

Create a new SteamBot. Username and password must be for the Steam account you want it to use. A Steam Guard authorization code may need to be provided for login to work.

비공개 메소드들

메소드 설명
GetSentryFileName ( ) : string
InitializeCallbacks ( ) : void
Run ( ) : void

메소드 상세

AddFriend() 공개 메소드

Adds somebody to the bot's friend list.
public AddFriend ( SteamID id ) : void
id SteamKit2.SteamID
리턴 void

Connect() 공개 메소드

Connect and login to Steam.
public Connect ( ) : void
리턴 void

Disconnect() 공개 메소드

Disconnect from Steam. Will call OnDisconnected.
public Disconnect ( SteamBotDisconnectReason reason = SteamBotDisconnectReason.Disconnected ) : void
reason SteamBotDisconnectReason
리턴 void

GetPersona() 공개 메소드

Gets the persona from a Steam ID. Will return null if the given ID is not valid. Information may not be instantly available if the persona was not "seen" before.
public GetPersona ( SteamID id ) : SteamPersona
id SteamKit2.SteamID
리턴 SteamPersona

Join() 공개 메소드

Attempt to join a chat. Will call OnLeave if the chat could not be joined.
public Join ( SteamID chatId ) : SteamChat
chatId SteamKit2.SteamID
리턴 SteamChat

RemoveFriend() 공개 메소드

Removes somebody from the bot's friend list.
public RemoveFriend ( SteamID id ) : void
id SteamKit2.SteamID
리턴 void

SteamBot() 공개 메소드

Create a new SteamBot. Username and password must be for the Steam account you want it to use. A Steam Guard authorization code may need to be provided for login to work.
public SteamBot ( string username, string password, string authCode = null ) : System
username string
password string
authCode string
리턴 System