mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-05 01:24:53 +01:00
resource: add BlockTypeMap type for convenience
This commit is contained in:
parent
db289bc077
commit
2a941e5283
1 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,9 @@ pub struct BlockType {
|
|||
pub color: BlockColor,
|
||||
}
|
||||
|
||||
pub fn block_types() -> HashMap<String, BlockType> {
|
||||
pub type BlockTypeMap = HashMap<String, BlockType>;
|
||||
|
||||
pub fn block_types() -> BlockTypeMap {
|
||||
block_types::BLOCK_TYPES
|
||||
.iter()
|
||||
.map(|(k, v)| (String::from(*k), *v))
|
||||
|
|
Loading…
Add table
Reference in a new issue