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.
This commit is contained in:
Griffin Smith 2019-07-14 14:29:55 -04:00
parent 081146da30
commit e7ad87c730
9 changed files with 306 additions and 5 deletions

View file

@ -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 {