veloren/common/src/comp/admin.rs

19 lines
348 B
Rust
Raw Normal View History

use clap::arg_enum;
use specs::Component;
use specs_idvs::IdvStorage;
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 = IdvStorage<Self>;
}