mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/modifier.rs')
| -rw-r--r-- | src/modifier.rs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/modifier.rs b/src/modifier.rs new file mode 100644 index 0000000..bf1d867 --- /dev/null +++ b/src/modifier.rs @@ -0,0 +1,30 @@ +//! modifiers units can be afflicted with +//! +//! [source](https://github.com/Anuken/Mindustry/blob/master/core/src/mindustry/content/SectorPresets.java) +use crate::content::content_enum; + +content_enum! { + pub enum Type / Modifier for u16 | TryFromU16Error { + "none", + "burning", + "freezing", + "unmoving", + "slow", + "wet", + "muddy", + "melting", + "sapped", + "electrified", + "spore-slowed", + "tarred", + "overdrive", + "overclock", + "shielded", + "boss", + "shocked", + "blasted", + "corroded", + "disarmed", + "invincible", + } +} |