mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
signonstate enum
This commit is contained in:
parent
099c2d33b9
commit
d538d79368
1 changed files with 15 additions and 1 deletions
|
|
@ -25,10 +25,24 @@ pub struct StringCmdMessage {
|
||||||
pub command: String,
|
pub command: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
||||||
|
#[derive(BitRead, BitWrite, Debug, PartialEq, Serialize, Deserialize, Clone)]
|
||||||
|
#[discriminant_bits = 8]
|
||||||
|
pub enum SignOnState {
|
||||||
|
None = 0,
|
||||||
|
Challenge,
|
||||||
|
Connected,
|
||||||
|
New,
|
||||||
|
PreSpawn,
|
||||||
|
Spawn,
|
||||||
|
Full,
|
||||||
|
ChangeLevel,
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
||||||
#[derive(BitRead, BitWrite, Debug, PartialEq, Serialize, Deserialize, Clone)]
|
#[derive(BitRead, BitWrite, Debug, PartialEq, Serialize, Deserialize, Clone)]
|
||||||
pub struct SignOnStateMessage {
|
pub struct SignOnStateMessage {
|
||||||
pub state: u8,
|
pub state: SignOnState,
|
||||||
pub count: u32,
|
pub count: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue