pub struct Context {
pub serializers: SerializerContainer,
pub class_info: ClassInfo,
pub string_tables: StringTableContainer,
pub entities: EntityContainer,
pub tick_interval: f32,
pub full_packet_interval: i32,
pub tick: i32,
}Expand description
Full parser context after initialization.
Holds all decoded game state: serializers, class definitions, string
tables, and live entities. Returned by Parser::parse_init,
Parser::parse_to_tick, and updated incrementally during
Parser::run_to_end.
Fields§
§serializers: SerializerContainerField definitions for every entity class.
class_info: ClassInfoMaps numeric class IDs to network names.
string_tables: StringTableContainerKey-value tables (models, sounds, instance baselines, etc.).
entities: EntityContainerCurrently active entities keyed by entity index.
tick_interval: f32Seconds per tick (from CSVCMsg_ServerInfo).
full_packet_interval: i32Ticks between full-packet snapshots (derived from tick_interval).
tick: i32Most recent tick processed.
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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