C# 클래스 SteamBot.BotManager

A class that manages SteamBot processes.
파일 보기 프로젝트 열기: natoshi/steamdogebot 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
mainLog Log

공개 메소드들

메소드 설명
AuthBot ( int index, string AuthCode ) : void

Sets the SteamGuard auth code on the given bot

BotManager ( ) : System
LoadConfiguration ( string configFile ) : bool

Loads a configuration file to use when creating bots.

SendCommand ( int index, string command ) : void

Sends the BotManager command to the target Bot

StartBot ( int index ) : void

Starts a bot in a new process given that bot's index in the configuration.

StartBot ( string botUserName ) : void

Starts a bot given that bots configured username.

StartBots ( ) : bool

Starts the bots that have been configured.

StopBot ( int index ) : void

Kills a single bot process given that bots index in the configuration.

StopBot ( string botUserName ) : void

Stops a bot given that bots configured username.

StopBots ( ) : void

Kills all running bot processes.

UserHandlerCreator ( Bot bot, SteamID sid ) : UserHandler

A method to return an instance of the bot.BotControlClass.

메소드 상세

AuthBot() 공개 메소드

Sets the SteamGuard auth code on the given bot
public AuthBot ( int index, string AuthCode ) : void
index int The bot's index
AuthCode string The auth code
리턴 void

BotManager() 공개 메소드

public BotManager ( ) : System
리턴 System

LoadConfiguration() 공개 메소드

Loads a configuration file to use when creating bots.
public LoadConfiguration ( string configFile ) : bool
configFile string false if there was problems loading the config file.
리턴 bool

SendCommand() 공개 메소드

Sends the BotManager command to the target Bot
public SendCommand ( int index, string command ) : void
index int The target bot's index
command string The command to be executed
리턴 void

StartBot() 공개 메소드

Starts a bot in a new process given that bot's index in the configuration.
public StartBot ( int index ) : void
index int A zero-based index.
리턴 void

StartBot() 공개 메소드

Starts a bot given that bots configured username.
public StartBot ( string botUserName ) : void
botUserName string The bot's username.
리턴 void

StartBots() 공개 메소드

Starts the bots that have been configured.
public StartBots ( ) : bool
리턴 bool

StopBot() 공개 메소드

Kills a single bot process given that bots index in the configuration.
public StopBot ( int index ) : void
index int A zero-based index.
리턴 void

StopBot() 공개 메소드

Stops a bot given that bots configured username.
public StopBot ( string botUserName ) : void
botUserName string The bot's username.
리턴 void

StopBots() 공개 메소드

Kills all running bot processes.
public StopBots ( ) : void
리턴 void

UserHandlerCreator() 공개 정적인 메소드

A method to return an instance of the bot.BotControlClass.
Thrown if the control class type does not exist.
public static UserHandlerCreator ( Bot bot, SteamID sid ) : UserHandler
bot Bot The bot.
sid SteamKit2.SteamID The steamId.
리턴 UserHandler

프로퍼티 상세

mainLog 공개적으로 정적으로 프로퍼티

public static Log mainLog
리턴 Log