mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
19 lines
343 B
Rust
19 lines
343 B
Rust
|
use specs::{Component, VecStorage, FlaggedStorage};
|
||
|
|
||
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||
|
pub struct Player {
|
||
|
pub alias: String,
|
||
|
}
|
||
|
|
||
|
impl Player {
|
||
|
pub fn new(alias: String) -> Self {
|
||
|
Self {
|
||
|
alias,
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
impl Component for Player {
|
||
|
type Storage = FlaggedStorage<Self, VecStorage<Self>>;
|
||
|
}
|