Exemple #1
0
 public WorldState Apply(WorldState initialState)
 {
     return(Effects.Aggregate(initialState, (soFar, effect) => effect.ApplyTo(soFar)));
 }
Exemple #2
0
 public bool IsAvailableIn(WorldState worldState)
 {
     return(Preconditions.Aggregate(true,
                                    (soFar, precondition) => soFar && precondition.IsSatisfiedBy(worldState)));
 }