mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Physics update adjustment
Former-commit-id: 10a8828b1ac496c7419672b88049fbda848d9d9d
This commit is contained in:
parent
e2f75c118e
commit
c75625f179
35
common/src/comp/character.rs
Normal file
35
common/src/comp/character.rs
Normal file
@ -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<Self>;
|
||||
}
|
@ -30,6 +30,7 @@ impl Component for Dir {
|
||||
}
|
||||
|
||||
// UpdateKind
|
||||
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
pub enum UpdateKind {
|
||||
Passive,
|
||||
|
Loading…
Reference in New Issue
Block a user