mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
22 lines
539 B
Rust
22 lines
539 B
Rust
|
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<Self, VecStorage<Self>>;
|
||
|
}
|
||
|
|
||
|
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||
|
pub enum Body {
|
||
|
Humanoid(humanoid::Body),
|
||
|
Quadruped(quadruped::Body),
|
||
|
QuadrupedMedium(quadruped_medium::Body),
|
||
|
}
|