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,