BotGenerator/Generator/BotChancesGenerator.cs
DrakiaXYZ 9ddbc91977 Drastically reduce memory footprint at the cost of removing threading
- Drastically improve performance, where non-threaded perf is now better than previous threaded perf
- Process all data in-line, as opposed to building huge lists of bot data that is then processed in groups later
- Memory footprint should now be relatively static no matter the amount of dumps
2024-11-03 23:29:50 -08:00

23 lines
730 B
C#

using Generator.Helpers.Gear;
using Common.Models.Input;
using Common.Models.Output;
using System.Diagnostics;
using Generator.Weighting;
namespace Generator
{
public static class BotChancesGenerator
{
public static void AddChances(Bot botToUpdate, Datum rawBot)
{
var weightHelper = new WeightingService();
// TODO: Add check to make sure incoming bot list has gear
GearChanceHelpers.AddEquipmentChances(botToUpdate, rawBot);
GearChanceHelpers.AddGenerationChances(botToUpdate, weightHelper);
GearChanceHelpers.AddModChances(botToUpdate, rawBot);
GearChanceHelpers.AddEquipmentModChances(botToUpdate, rawBot);
}
}
}