feat: minetest support (#218)

* feat: initial minetest support

* move player to master, remove comments

* add markdown lines

* oops, change player namespace

* fix some edge cases

* add entry to responses, tweak field names
This commit is contained in:
CosminPerRam 2024-10-30 13:24:40 +02:00 committed by GitHub
parent 30ae60e4dc
commit bcc92d17df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 246 additions and 59 deletions

View file

@ -1,19 +1,19 @@
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
#[derive(Serialize, Deserialize, Debug, PartialEq)]
pub struct Server {
pub address: String,
pub clients: u32,
pub clients_list: Vec<String>,
pub clients_list: Option<Vec<String>>,
pub clients_max: u32,
pub creative: bool,
pub creative: Option<bool>,
pub damage: bool,
pub description: String,
pub game_time: u32,
pub gameid: String,
pub lag: Option<f32>,
pub name: String,
pub password: bool,
pub password: Option<bool>,
pub port: u16,
pub proto_max: u16,
pub proto_min: u16,