From c75625f1795e67cd66b2ac03d2adf8f2d0ae40fd Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Tue, 19 Mar 2019 11:35:35 +0000 Subject: [PATCH] Physics update adjustment Former-commit-id: 10a8828b1ac496c7419672b88049fbda848d9d9d --- common/src/comp/character.rs | 35 +++++++++++++++++++++++++++++++++++ common/src/comp/phys.rs | 1 + 2 files changed, 36 insertions(+) create mode 100644 common/src/comp/character.rs diff --git a/common/src/comp/character.rs b/common/src/comp/character.rs new file mode 100644 index 0000000000..090f0e047a --- /dev/null +++ b/common/src/comp/character.rs @@ -0,0 +1,35 @@ +// Library +use specs::{Component, VecStorage}; +use vek::*; + +#[derive(Copy, Clone, Debug, Serialize, Deserialize)] +enum Race { + Danari, + Dwarf, + Elf, + Human, + Orc, + Undead, +} + +#[derive(Copy, Clone, Debug, Serialize, Deserialize)] +pub struct Gender { + Female, + Male, + Unspecified, +} + +#[derive(Copy, Clone, Debug, Serialize, Deserialize)] +pub struct Character { + race: Race, + gender: Gender, + head: (), + chest: (), + belt: (), + arms: (), + feet: (), +} + +impl Component for Character { + type Storage = VecStorage; +} diff --git a/common/src/comp/phys.rs b/common/src/comp/phys.rs index 73b1000d8a..3db813276d 100644 --- a/common/src/comp/phys.rs +++ b/common/src/comp/phys.rs @@ -30,6 +30,7 @@ impl Component for Dir { } // UpdateKind + #[derive(Copy, Clone, Debug)] pub enum UpdateKind { Passive,