Ejemplo n.º 1
0
 public CompositePerlinLayer(IPerlinLayer layer1, IPerlinLayer layer2, PerlinOperation operation)
 {
     this.layer1    = layer1;
     this.layer2    = layer2;
     this.operation = operation;
     if (PerlinOperation.Negation.Equals(operation) && layer2 != null)
     {
         Debug.LogWarning("Creating PerlinLayer with PerlinOperation.Negation but a second layer was provided. It will be ignored.");
     }
 }
Ejemplo n.º 2
0
 public PerlinLayerBundle(U value, IPerlinLayer layer)
 {
     this.value = value;
     this.layer = layer;
 }
Ejemplo n.º 3
0
 public void AddLayer(IPerlinLayer layer, T layerValue)
 {
     layers.Add(new PerlinLayerBundle <T>(layerValue, layer));
 }
Ejemplo n.º 4
0
 public PerlinMap(T defaultValue, IPerlinLayer layer, T layerValue)
 {
     this.defaultValue = defaultValue;
     layers            = new List <PerlinLayerBundle <T> >();
     layers.Add(new PerlinLayerBundle <T>(layerValue, layer));
 }