diff options
author | Griffin Smith <root@gws.fyi> | 2019-07-14T18·29-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-07-14T18·29-0400 |
commit | e7ad87c7301f266dece36e7558c0f212e370aac6 (patch) | |
tree | 7da150d5648cc0b17d973bf4a30673f36b20be82 /src/types/mod.rs | |
parent | 081146da30bcf1a17d9533c3dc9c735a3a558165 (diff) |
Add (statically-included) entity raws
Add a system for statically-included entity raws (which necessitated making a deserializable existential Color struct) and test it out by initializing the game (for now) with a single on-screen gormlak.
Diffstat (limited to 'src/types/mod.rs')
-rw-r--r-- | src/types/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/types/mod.rs b/src/types/mod.rs index ac44bcc9c89e..1e86fb369e86 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -348,7 +348,8 @@ pub struct Ticks(pub u16); pub struct Tiles(pub f32); /// The speed of an entity, expressed in ticks per tile -#[derive(Clone, Copy, Debug, PartialEq, Eq, Arbitrary)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Arbitrary, Deserialize)] +#[serde(transparent)] pub struct Speed(pub u32); impl Speed { |