mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
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:
parent
30ae60e4dc
commit
bcc92d17df
10 changed files with 246 additions and 59 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue