mirror of
https://github.com/zyllian/classics.git
synced 2025-05-11 14:36:39 -07:00
implement making players operators in config
This commit is contained in:
parent
c1eb4e1a8b
commit
990777e5b4
3 changed files with 15 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
use std::net::SocketAddr;
|
||||
|
||||
use half::f16;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::packet::server::ServerPacket;
|
||||
|
||||
|
@ -31,7 +32,7 @@ pub struct Player {
|
|||
}
|
||||
|
||||
/// enum describing types of players
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
|
||||
#[repr(u8)]
|
||||
pub enum PlayerType {
|
||||
/// a normal player
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue