Esempio n. 1
0
 public void Add(EffectIntents other)
 {
     foreach (Guid elementId in other.Keys)
     {
         _AddIntentsForElement(elementId, other[elementId]);
     }
 }
Esempio n. 2
0
 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))))));
 }