mindustry logic execution, map- and schematic- parsing and rendering
Add a fluid content representation
| -rw-r--r-- | src/fluid/mod.rs | 19 | ||||
| -rw-r--r-- | src/main.rs | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/fluid/mod.rs b/src/fluid/mod.rs new file mode 100644 index 0000000..f0c643e --- /dev/null +++ b/src/fluid/mod.rs @@ -0,0 +1,19 @@ +use crate::content::content_enum; + +content_enum! +{ + pub enum Type / Fluid for u16 | TryFromU16Error + { + Water => "water", + Slag => "slag", + Oil => "oil", + Cryofluid => "cryofluid", + Neoplasm => "neoplasm", + Arkycite => "arkycite", + Gallium => "gallium", + Ozone => "ozone", + Hydrogen => "hydrogen", + Nitrogen => "nitrogen", + Cyanogen => "cyanogen", + } +} diff --git a/src/main.rs b/src/main.rs index 513cb3b..fc2fcc5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ pub mod block; pub mod content; pub mod data; pub mod exe; +pub mod fluid; pub mod item; pub mod logic; |