mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-09 07:01:06 +00:00
26 lines
612 B
Rust
26 lines
612 B
Rust
#[cfg(feature = "serde")]
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
mod common;
|
|
/// The implementations.
|
|
pub mod protocols;
|
|
|
|
pub use protocols::*;
|
|
|
|
/// Versions of the gamespy protocol
|
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
pub enum GameSpyVersion {
|
|
One,
|
|
Two,
|
|
Three,
|
|
}
|
|
|
|
/// Enum of versions and their ExtraResponse data
|
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
pub enum VersionedExtraResponse {
|
|
One(one::ExtraResponse),
|
|
Two(two::ExtraResponse),
|
|
Three(three::ExtraResponse),
|
|
}
|