mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-19 03:41:05 +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
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
use std::net::{IpAddr, SocketAddr};
|
||||
|
||||
#[cfg(all(feature = "services", feature = "tls", feature = "serde"))]
|
||||
use crate::games::minetest;
|
||||
use crate::games::types::Game;
|
||||
use crate::games::{eco, ffow, jc2m, mindustry, minecraft, savage2, theship};
|
||||
use crate::protocols;
|
||||
|
|
@ -125,6 +127,10 @@ pub fn query_with_timeout_and_extra_settings(
|
|||
)
|
||||
.map(Box::new)?
|
||||
}
|
||||
#[cfg(all(feature = "services", feature = "tls", feature = "serde"))]
|
||||
ProprietaryProtocol::Minetest => {
|
||||
minetest::query_with_timeout(address, port, &timeout_settings).map(Box::new)?
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue