2023-12-08 15:20:12 -06:00

19 lines
590 B
C#

using System.Collections.Generic;
using MRBot.Extensions;
namespace MRBot.Bot.AbilityExporter
{
internal class AbilityList : Dictionary<string, List<ExportableAbility>>
{
public void AddAbility(ExportableAbility exportableAbility)
{
var abilityLineName = exportableAbility.Name.RemoveRomanNumeralsFromEnd();
if (!this.ContainsKey(abilityLineName))
{
this.Add(abilityLineName, new List<ExportableAbility>());
}
this[abilityLineName].Add(exportableAbility);
}
}
}