namespace IdleSpectator; /// /// Shared catalog row for discrete / library-backed spectator events. /// Lives in Events/ with - catalogs own dials; director only ranks. /// public sealed class DiscreteEventEntry { public string Id = ""; public float EventStrength = 50f; public string Category = "Event"; public bool CreatesInterest = true; public string LabelTemplate = "{a}"; public bool IsFallback; public string MakeLabel(Actor a, Actor b = null) { return EventReason.Apply(LabelTemplate, a, b, Id); } public string MakeLabel(string a, string b) { string template = string.IsNullOrEmpty(LabelTemplate) ? "{id}" : LabelTemplate; return template .Replace("{id}", Id ?? "") .Replace("{a}", a ?? "") .Replace("{b}", b ?? ""); } }