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