public DeepResourceGrid(Map map)
 {
     this.map       = map;
     this.defGrid   = new ushort[map.cellIndices.NumGridCells];
     this.countGrid = new ushort[map.cellIndices.NumGridCells];
     this.drawer    = new CellBoolDrawer(this, map.Size.x, map.Size.z, 1f);
 }
        public DeepResourceGrid(Map map)
        {
            this.map       = map;
            this.defGrid   = new ushort[map.cellIndices.NumGridCells];
            this.countGrid = new ushort[map.cellIndices.NumGridCells];
            IntVec3 size  = map.Size;
            int     x     = size.x;
            IntVec3 size2 = map.Size;

            this.drawer = new CellBoolDrawer(this, x, size2.z, 1f);
        }