Remove unused index parameter from BotManager.startupBot(). Rename startupBot() => StartBot()
parent
ce4560bf8f
commit
f31a58bd99
|
@ -136,7 +136,7 @@ namespace pCampBot
|
|||
if (behaviourSwitches.Contains("g"))
|
||||
behaviours.Add(new GrabbingBehaviour());
|
||||
|
||||
startupBot(i, this, behaviours, firstName, lastName, password, loginUri);
|
||||
StartBot(this, behaviours, firstName, lastName, password, loginUri);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -156,22 +156,21 @@ namespace pCampBot
|
|||
// int newlen = len + botcount;
|
||||
// for (int i = len; i < newlen; i++)
|
||||
// {
|
||||
// startupBot(i, Config);
|
||||
// startupBot(Config);
|
||||
// }
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// This starts up the bot and stores the thread for the bot in the thread array
|
||||
/// </summary>
|
||||
/// <param name="pos">The position in the thread array to stick the bot's thread</param>
|
||||
/// <param name="bm"></param>
|
||||
/// <param name="behaviours">Behaviours for this bot to perform.</param>
|
||||
/// <param name="firstName">First name</param>
|
||||
/// <param name="lastName">Last name</param>
|
||||
/// <param name="password">Password</param>
|
||||
/// <param name="loginUri">Login URI</param>
|
||||
public void startupBot(
|
||||
int pos, BotManager bm, List<IBehaviour> behaviours,
|
||||
public void StartBot(
|
||||
BotManager bm, List<IBehaviour> behaviours,
|
||||
string firstName, string lastName, string password, string loginUri)
|
||||
{
|
||||
Bot pb = new Bot(bm, behaviours, firstName, lastName, password, loginUri);
|
||||
|
|
Loading…
Reference in New Issue