Example #1
0
 public void ReadFrom( BinaryReader reader )
 {
     for ( int y=0; y<grid.GetLength(1); y++ ) {
         for ( int x=0; x<grid.GetLength(0); x++ ) {
             grid[x,y] = new IncognitaGridItem( reader );
         }
     }
 }
Example #2
0
        public IncognitaGrid()
        {
            grid = new IncognitaGridItem[Lightmap.BaseWidth >> Lightmap.BlockFactor,(Lightmap.BaseHeight >> Lightmap.BlockFactor)+1];

            for ( int y=0; y<grid.GetLength(1); y++ ) {
                for ( int x=0; x<grid.GetLength(0); x++ ) {
                    grid[x,y] = new IncognitaGridItem( true );
                }
            }
        }