Beispiel #1
0
 public CellBoolDrawer(ICellBoolGiver giver, int mapSizeX, int mapSizeZ, float opacity = 0.33f)
 {
     this.giver    = giver;
     this.mapSizeX = mapSizeX;
     this.mapSizeZ = mapSizeZ;
     this.opacity  = opacity;
 }
 public CellBoolDrawer(ICellBoolGiver giver, int mapSizeX, int mapSizeZ, float opacity = 0.33f)
     : this(mapSizeX, mapSizeZ, opacity)
 {
     colorGetter      = () => giver.Color;
     extraColorGetter = giver.GetCellExtraColor;
     cellBoolGetter   = giver.GetCellBool;
 }
 public CellBoolDrawer(ICellBoolGiver giver, int mapSizeX, int mapSizeZ, int renderQueue, float opacity = 0.33f)
     : this(giver, mapSizeX, mapSizeZ, opacity)
 {
     this.renderQueue = renderQueue;
 }