public void Add(EffectIntents other) { foreach (Guid elementId in other.Keys) { _AddIntentsForElement(elementId, other[elementId]); } }
static public EffectIntents Restrict(EffectIntents effectIntents, TimeSpan startTime, TimeSpan endTime) { return(new EffectIntents(effectIntents.ToDictionary( x => x.Key, x => new IntentNodeCollection(x.Value.Where(y => !(y.StartTime >= endTime || y.EndTime < startTime)))))); }