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 ); } } }
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 ); } } }