pub mod humanoid; pub mod quadruped; pub mod quadruped_medium; use specs::{Component, FlaggedStorage, VecStorage}; #[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] pub enum Actor { Character { name: String, body: Body }, } impl Component for Actor { type Storage = FlaggedStorage>; } #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] pub enum Body { Humanoid(humanoid::Body), Quadruped(quadruped::Body), QuadrupedMedium(quadruped_medium::Body), }