~starkingdoms/starkingdoms

ref: 1aa4b3b1144024bc1d831e9f69f7aba1b61a6a0b starkingdoms/server/src/crafting/components.rs -rw-r--r-- 466 bytes
1aa4b3b1 — core ui experiments & the matrix math is wrong 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use std::collections::HashMap;

use bevy::prelude::Component;

#[derive(Debug, Clone, Copy, PartialEq)]
pub enum MaterialType {
    Silicon,   // Mercury
    Sulfur,    // Venus
    Iron,      // Mars
    Hydrogen,  // Jupiter
    Helium,    // Saturn
    Rubber,    // Uranus
    Composite, // Neptune
    Ice,       // Pluto
}

#[derive(Component, Debug, Clone)]
pub struct MaterialStorage {
    pub materials: HashMap<MaterialType, u32>,
    pub capacity: u32,
}