[Games] Generic query add support for GS2 protocol and Halo:CE game

This commit is contained in:
CosminPerRam 2023-06-13 22:09:51 +03:00
parent e44a680a59
commit a377b76a55
4 changed files with 41 additions and 2 deletions

View file

@ -11,12 +11,14 @@ pub use protocols::*;
#[derive(Debug, Clone, PartialEq)]
pub enum GameSpyVersion {
One,
Two,
Three,
}
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone, PartialEq)]
pub enum VersionedExtraResponse {
One(protocols::one::ExtraResponse),
Three(protocols::three::ExtraResponse),
One(one::ExtraResponse),
Two(two::ExtraResponse),
Three(three::ExtraResponse),
}