mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
18 lines
327 B
Rust
18 lines
327 B
Rust
use clap::arg_enum;
|
|
use specs::Component;
|
|
|
|
arg_enum! {
|
|
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
|
|
pub enum AdminRole {
|
|
Moderator = 0,
|
|
Admin = 1,
|
|
}
|
|
}
|
|
|
|
#[derive(Clone, Copy)]
|
|
pub struct Admin(pub AdminRole);
|
|
|
|
impl Component for Admin {
|
|
type Storage = specs::VecStorage<Self>;
|
|
}
|