fn load_maps(mut serializer: TilemapSerializer) {
	let path = FileAssetIo::get_root_path().join("assets/map.json");
	let data = fs::read_to_string(path).unwrap();
	let maps = serde_json::from_str::<SerializableTilemap>(&data).unwrap();

	serializer.load_maps(&maps);
}
/// A system used to load the saved tilemaps from disk
///
/// The `TilemapSerializer` is a special system param that allows for entire tilemaps to be saved and loaded. Here,
/// we are using it to load a JSON file containing our already saved data.
A system used to load the saved tilemaps from disk
The `TilemapSerializer` is a special system param that allows for entire tilemaps to be saved and loaded. Here,
we are using it to load a JSON file containing our already saved data.
A system used to load the saved tilemaps from disk The ` TilemapSerializer ` is a special system param that allows for entire tilemaps to be saved and loaded . Here we are using it to load a JSON file containing our already saved data .
fn load_maps(mut serializer: TilemapSerializer) {
	let path = FileAssetIo::get_root_path().join("assets/map.json");
	let data = fs::read_to_string(path).unwrap();
	let maps = serde_json::from_str::<SerializableTilemap>(&data).unwrap();
	serializer.load_maps(&maps);
}
fn load_maps ( mut serializer : TilemapSerializer ) { let path = FileAssetIo :: get_root_path ( ) . join ( " " ) ; let data = fs :: read_to_string ( path ) . unwrap ( ) ; let maps = serde_json :: from_str :: < SerializableTilemap > ( & data ) . unwrap ( ) ; serializer . load_maps ( & maps ) ; }
A system used to load the saved tilemaps from disk
The `TilemapSerializer` is a special system param that allows for entire tilemaps to be saved and loaded.
A system used to load the saved tilemaps from disk The ` TilemapSerializer ` is a special system param that allows for entire tilemaps to be saved and loaded .
serializer
TilemapSerializer
serializer
TilemapSerializer