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

@ -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)?
}
}
}
})