1 using System.Collections.Generic;
5 using Microsoft.Xna.Framework;
16 return Prefabs.OrderBy(p => (p.MinLevelDifficulty + p.MaxLevelDifficulty) * 0.5f)
17 .ThenBy(p => p.UintIdentifier);
24 return settings[Math.Clamp((
int)(settings.Length * p), 0, settings.Length - 1)];
readonly float EventThresholdIncrease
EventManagerSettings(XElement element, EventManagerSettingsFile file)
readonly float MinLevelDifficulty
readonly float EventCooldown
static EventManagerSettings GetByDifficultyPercentile(float p)
readonly LocalizedString Name
readonly float MaxLevelDifficulty
readonly float FreezeDurationWhenCrewAway
readonly float DefaultEventThreshold
static readonly PrefabCollection< EventManagerSettings > Prefabs
static IOrderedEnumerable< EventManagerSettings > OrderedByDifficulty
LocalizedString Fallback(LocalizedString fallback, bool useDefaultLanguageIfFound=true)
Use this text instead if the original text cannot be found.
readonly Identifier Identifier
Prefab that has a property serves as a deterministic hash of a prefab's identifier....