public static void RegisterValue( ref StatsSources stats, IProtoEntity source, StatName statName, double value) { stats = stats.AddOrUpdate(source, statName, value, percent: 0); }
public static void RegisterPercent( ref StatsSources stats, IProtoEntity source, StatName statName, double percent) { stats = stats.AddOrUpdate(source, statName, value: 0, percent: percent); }