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:
Zoey 2024-04-22 18:51:11 -07:00
parent c1eb4e1a8b
commit 990777e5b4
No known key found for this signature in database
GPG key ID: 8611B896D1AAFAF2
3 changed files with 15 additions and 4 deletions

View file

@ -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