mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
feat: add savage 2 support (#169)
* feat: savage 2 support * fix: add savage 2 to definitions * chore: run rustfmt * fix: config serde use * fix: remove needless borrow * docs: add savage 2 to protocols.md
This commit is contained in:
parent
dd037daa04
commit
af8e1e9b1a
10 changed files with 148 additions and 57 deletions
|
|
@ -18,6 +18,7 @@ pub enum ProprietaryProtocol {
|
|||
Minecraft(Option<minecraft::types::Server>),
|
||||
FFOW,
|
||||
JC2M,
|
||||
Savage2,
|
||||
}
|
||||
|
||||
/// Enumeration of all valid protocol types
|
||||
|
|
@ -48,6 +49,8 @@ pub enum GenericResponse<'a> {
|
|||
FFOW(&'a crate::games::ffow::Response),
|
||||
#[cfg(feature = "games")]
|
||||
JC2M(&'a crate::games::jc2m::Response),
|
||||
#[cfg(feature = "games")]
|
||||
Savage2(&'a crate::games::savage2::Response),
|
||||
}
|
||||
|
||||
/// All player types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue