pub type AutoTerrainPatternMap<Ter, Pat> = HashMap<Ter, Vec<Pat>, BuildHasherDefault<FxHasher>>;Expand description
A hash map from terrain values to lists of patterns. Each pattern has a terrain, and this map is used to list all of the patterns for a given terrain id value in the order of priority. If multiple patterns in the list may be chosen for some cell, the pattern nearest the front of the list should be chosen.
- Ter: The type of the terrain ids that are to be associated with lists of patterns.
- Pat: The type of a pattern.
See AutoTileContext for a way to construct an AutoTerrainPatternMap.
Once an AutoTerrainPatternMap has been constructed, it may be
used as part of an AutoPatternConstraint.
Aliased Typeยง
pub struct AutoTerrainPatternMap<Ter, Pat> { /* private fields */ }