/// <summary> /// Ruft die manuell gesetzen TaW ab /// </summary> /// <param name="talent"></param> /// <returns></returns> public int GetTAW(ITalent talent) { if (talent == null) { throw new ArgumentNullException(nameof(talent)); } TAWDictionary.TryGetValue(talent, out int innerTAW); return(innerTAW); }
public void SetTAW(ITalent talent, int taw) { if (talent == null) { throw new ArgumentNullException(nameof(talent)); } if (TAWDictionary.TryGetValue(talent, out int innerTAW)) { TAWDictionary.Remove(talent); } TAWDictionary.Add(talent, taw); if (innerTAW != taw) { TaWChanged?.Invoke(this, talent); } }