C# Класс SteamBot.BotManager

A class that manages SteamBot processes.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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