pub struct GameEvent {
pub tick: i32,
pub name: String,
pub msg_type: u32,
pub keys: Vec<(String, String)>,
pub payload: Vec<u8>,
}Expand description
A game event extracted from the demo.
Fields§
§tick: i32Game tick at which this event occurred.
name: StringHuman-readable event name (e.g. "player_death", "k_ECitadelUserMsg_Damage").
msg_type: u32Numeric message type from the packet stream.
keys: Vec<(String, String)>Key-value pairs for Source 1 legacy game events; empty for user messages.
payload: Vec<u8>Raw protobuf bytes of the event. Use crate::decode_event_payload to decode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GameEvent
impl RefUnwindSafe for GameEvent
impl Send for GameEvent
impl Sync for GameEvent
impl Unpin for GameEvent
impl UnsafeUnpin for GameEvent
impl UnwindSafe for GameEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more