mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/fluid/mod.rs')
-rw-r--r--src/fluid/mod.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/fluid/mod.rs b/src/fluid/mod.rs
new file mode 100644
index 0000000..7437744
--- /dev/null
+++ b/src/fluid/mod.rs
@@ -0,0 +1,21 @@
+//! fluids
+//!
+//! [source](https://github.com/Anuken/Mindustry/blob/master/core/src/mindustry/content/Liquids.java)
+use crate::content::color_content_enum;
+
+color_content_enum! {
+ pub enum Type / Fluid for u16 | TryFromU16Error
+ {
+ "water": "596ab8",
+ "slag": "ffa166",
+ "oil": "313131",
+ "cryofluid": "6ecdec",
+ "neoplasm": "c33e2b",
+ "arkycite": "84a94b",
+ "gallium": "9a9dbf",
+ "ozone": "fc81dd",
+ "hydrogen": "9eabf7",
+ "nitrogen": "efe3ff",
+ "cyanogen": "89e8b6",
+ }
+}