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:
parent
081146da30
commit
e7ad87c730
9 changed files with 306 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue