dynamically create list of bots to process based on passed in list of bottypes
This commit is contained in:
parent
6846d518c1
commit
0eb2031a88
@ -29,34 +29,15 @@ namespace Generator
|
|||||||
var stopwatch = Stopwatch.StartNew();
|
var stopwatch = Stopwatch.StartNew();
|
||||||
LoggingHelpers.LogToConsole("Started processing bot base");
|
LoggingHelpers.LogToConsole("Started processing bot base");
|
||||||
|
|
||||||
var rawBots = new List<Bot>
|
// Create a list of bot objects ready to be hydrated
|
||||||
|
var rawBots = new List<Bot>();
|
||||||
|
foreach (var botType in _botTypes)
|
||||||
{
|
{
|
||||||
new Bot(BotType.assault),
|
var typeToAdd = (BotType)Enum.Parse(typeof(BotType), botType);
|
||||||
new Bot(BotType.pmcBot),
|
rawBots.Add(new Bot(typeToAdd));
|
||||||
new Bot(BotType.marksman),
|
}
|
||||||
|
|
||||||
new Bot(BotType.bossbully),
|
|
||||||
new Bot(BotType.bossgluhar),
|
|
||||||
new Bot(BotType.bosskilla),
|
|
||||||
new Bot(BotType.bosskojaniy),
|
|
||||||
new Bot(BotType.bosssanitar),
|
|
||||||
|
|
||||||
new Bot(BotType.bossstormtrooper),
|
|
||||||
|
|
||||||
new Bot(BotType.followerbully),
|
|
||||||
new Bot(BotType.followergluharassault),
|
|
||||||
new Bot(BotType.followergluharscout),
|
|
||||||
new Bot(BotType.followergluharsecurity),
|
|
||||||
new Bot(BotType.followergluharsnipe),
|
|
||||||
new Bot(BotType.followerkojaniy),
|
|
||||||
new Bot(BotType.followersanitar),
|
|
||||||
new Bot(BotType.followerstormtrooper),
|
|
||||||
|
|
||||||
new Bot(BotType.cursedassault),
|
|
||||||
new Bot(BotType.sectantpriest),
|
|
||||||
new Bot(BotType.sectantwarrior),
|
|
||||||
};
|
|
||||||
|
|
||||||
|
// Iterate over each bot type wejust made and put some data into them
|
||||||
foreach (var botToUpdate in rawBots)
|
foreach (var botToUpdate in rawBots)
|
||||||
{
|
{
|
||||||
var rawBotsOfSameType = _rawParsedBots
|
var rawBotsOfSameType = _rawParsedBots
|
||||||
|
Loading…
x
Reference in New Issue
Block a user