mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/data/entity_mapping.rs')
-rw-r--r--src/data/entity_mapping.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/data/entity_mapping.rs b/src/data/entity_mapping.rs
index eda8479..beed2b4 100644
--- a/src/data/entity_mapping.rs
+++ b/src/data/entity_mapping.rs
@@ -1,15 +1,18 @@
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum UnitClass {
Block,
+ // same read impl as block
Legs,
Elevated,
Crawl,
+ Boat,
+ Tank,
+ Air,
+ // different read impl from block
Mech,
Tethered,
Payload,
Bomb,
- Boat,
- Tank,
}
pub static ID: [Option<UnitClass>; 47] = amap::amap! {
@@ -17,10 +20,12 @@ pub static ID: [Option<UnitClass>; 47] = amap::amap! {
24 => UnitClass::Legs,
45 => UnitClass::Elevated,
46 => UnitClass::Crawl,
- 4 => UnitClass::Mech,
36 => UnitClass::Tethered,
- 5 => UnitClass::Payload,
+ 5 | 23 | 26 => UnitClass::Payload,
39 => UnitClass::Bomb,
20 => UnitClass::Boat,
43 => UnitClass::Tank,
+ 4 | 17 | 19 | 32 => UnitClass::Mech,
+ 21 | 29 | 33 => UnitClass::Legs,
+ 3 | 16 | 18 | 0 | 30 | 31 => UnitClass::Air,
};