matcat 0.1.0

Material Categories & Variants — human-friendly layer on top of utomid chemistry.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::collections::HashMap;
use once_cell::sync::Lazy;

/// High-level categories (u8)
pub static CATEGORY_MAP: Lazy<HashMap<u8, &'static str>> = Lazy::new(|| {
    let mut m = HashMap::new();
    m.insert(1, "Metal");
    m.insert(2, "Plastic");
    m.insert(3, "Wood");
    m.insert(4, "Composite");
    m
});