public void SetGrids(LevelGrid lg)
{
grid.InfoFile = lg.InfoFile;
//grid.L0 = lg.L0;
grid.L1 = lg.L1;
grid.L2 = lg.L2;
}
private static void BuildMap(GameState state, FileInfo infoFile) { // Parse Map Data var lg = MapParser.ParseData(infoFile, state.Regions); if(lg == null) throw new ArgumentNullException("Could Not Load Heightmap"); state.SetGrids(lg.LGrid); // Set Voxel Data MapParser.ParseVoxels(state.VoxState.World, Path.Combine(infoFile.Directory.FullName, lg.VoxWorldFile)); }