Example #1
0
 public Lights(
     IDelay delayProvider,
     ILayerBuilder layerBuilder,
     ILightClient lightClient,
     TimeSpan?delay = null)
 {
     this.delayProvider = delayProvider;
     this.layerBuilder  = layerBuilder;
     this.lightClient   = lightClient;
     this.delay         = delay ?? TimeSpan.FromMilliseconds(50);
 }
Example #2
0
 public void Add(ILayerBuilder layerBuilder)
 {
     this.layerBuilders.Add(layerBuilder);
 }
Example #3
0
 public IGeneratorBuilder Layer(ILayerBuilder layerBuilding)
 {
     _layerBuilder = layerBuilding;
     return(this);
 }
Example #4
0
 public IGeneratorBuilder Layer(Action <ILayerBuilder> layerBuildingAction)
 {
     _layerBuilder = new LayerBuilder();
     layerBuildingAction(_layerBuilder);
     return(this);
 }