Esempio n. 1
0
 public GlowFlooder(Map map)
 {
     this.map      = map;
     this.mapSizeX = map.Size.x;
     this.mapSizeZ = map.Size.z;
     this.calcGrid = new GlowFlooder.GlowFloodCell[this.mapSizeX * this.mapSizeZ];
     this.openSet  = new FastPriorityQueue <int>(new GlowFlooder.CompareGlowFlooderLightSquares(this.calcGrid));
 }
Esempio n. 2
0
 public GlowFlooder(Map map)
 {
     this.map = map;
     mapSizeX = map.Size.x;
     mapSizeZ = map.Size.z;
     calcGrid = new GlowFloodCell[mapSizeX * mapSizeZ];
     openSet  = new FastPriorityQueue <int>(new CompareGlowFlooderLightSquares(calcGrid));
 }
Esempio n. 3
0
        public GlowFlooder(Map map)
        {
            this.map = map;
            IntVec3 size = map.Size;

            this.mapSizeX = size.x;
            IntVec3 size2 = map.Size;

            this.mapSizeZ = size2.z;
            this.calcGrid = new GlowFloodCell[this.mapSizeX * this.mapSizeZ];
            this.openSet  = new FastPriorityQueue <int>(new CompareGlowFlooderLightSquares(this.calcGrid));
        }