/// <summary> /// Constructs stats using default values. /// </summary> public StatsComponent() { this._stats = new Dictionary <StatID, float>(); this._bonus = new Dictionary <StatID, float>(); foreach (StatID statID in Enum.GetValues(typeof(StatID))) { DefaultStat stat = StatsPreloader.GetStatByID((int)statID); this._stats.Add(statID, stat.defaultVal); this._bonus.Add(statID, 0); } GD.PrintS(Enum.GetNames(typeof(StatID)).Length); }
public static void Preload() { StatsPreloader.Preload(StatsPath); }