pub struct SimData {
pub tick: u32,
pub command_source: u8,
pub players_last_tick: HashMap<u8, u32>,
pub checksum: [u8; 16],
pub checksum_tick: Option<u32>,
pub desync_tick: Option<u32>,
pub desync_ticks: Option<Vec<u32>>,
}Expand description
Basic simulation data that is updated as the command stream is parsed.
Fields§
§tick: u32The current tick
command_source: u8The player id of the current command sender. Only valid if tick > 0
players_last_tick: HashMap<u8, u32>A map of player id’s to the tick on which their last command was received
checksum: [u8; 16]The current checksum value. Only valid if checksum_tick != None
checksum_tick: Option<u32>The current tick which the checksum is verifying
desync_tick: Option<u32>The first tick that was desynced
desync_ticks: Option<Vec<u32>>A list of all ticks that were desynced
Implementations§
Trait Implementations§
impl StructuralPartialEq for SimData
Auto Trait Implementations§
impl Freeze for SimData
impl RefUnwindSafe for SimData
impl Send for SimData
impl Sync for SimData
impl Unpin for SimData
impl UnwindSafe for SimData
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