1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-11-30 10:40:50 +01:00

fix SignOnStateMessage::count type

This commit is contained in:
Robin Appelman 2026-11-07 16:54:25 +01:00
commit 3cc6951766
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE
2 changed files with 3 additions and 2 deletions

View file

@ -5,6 +5,7 @@
in demos, but are used in the network protocol. in demos, but are used in the network protocol.
- `Message::encode` now write the message type by itself, instead of requiring - `Message::encode` now write the message type by itself, instead of requiring
the caller to do so beforehand. the caller to do so beforehand.
- `SignOnStateMessage::count` has been changed from an `u32` to an `i32`.
## 0.7.2 ## 0.7.2

View file

@ -1,6 +1,6 @@
use crate::Stream;
/// Messages that consists only of primitives and string and can be derived /// Messages that consists only of primitives and string and can be derived
use crate::demo::data::{MaybeUtf8String, ServerTick}; use crate::demo::data::{MaybeUtf8String, ServerTick};
use crate::Stream;
#[cfg(feature = "write")] #[cfg(feature = "write")]
use bitbuffer::BitWrite; use bitbuffer::BitWrite;
use bitbuffer::{BitRead, LittleEndian}; use bitbuffer::{BitRead, LittleEndian};
@ -51,7 +51,7 @@ pub enum SignOnState {
#[cfg_attr(feature = "write", derive(BitWrite))] #[cfg_attr(feature = "write", derive(BitWrite))]
pub struct SignOnStateMessage { pub struct SignOnStateMessage {
pub state: SignOnState, pub state: SignOnState,
pub count: u32, pub count: i32,
} }
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]