pub struct ReplayClip {
pub clip_version: u32,
pub net_version: Option<i32>,
pub major_version: i32,
pub minor_version: i32,
pub game_type: String,
pub objects: Vec<String>,
pub names: Vec<String>,
pub frames: Vec<Frame>,
pub provenance: ClipProvenance,
}Expand description
A self-contained, serializable slice of a replay that can be processed by the full subtr-actor pipeline.
Reconstruct a boxcars::Replay with ReplayClip::to_replay, then feed it
to ReplayProcessor like any other
replay.
Fields§
§clip_version: u32Schema version; see CLIP_VERSION.
net_version: Option<i32>net_version from the source replay (drives rigid-body normalization).
major_version: i32§minor_version: i32§game_type: Stringgame_type string from the source replay (metadata only).
objects: Vec<String>Object name table; an index into this is a boxcars::ObjectId.
names: Vec<String>Name table, referenced by name_id on actors.
frames: Vec<Frame>The synthetic keyframe (if any) followed by the real source frames.
provenance: ClipProvenanceProvenance / index mapping back to the source replay.
Implementations§
Source§impl ReplayClip
impl ReplayClip
Sourcepub fn to_replay(&self) -> Replay
pub fn to_replay(&self) -> Replay
Reconstruct a boxcars::Replay suitable for
ReplayProcessor. Header properties,
keyframes, net-cache and other bitstream-only tables are intentionally
left empty: the processor does not need them to walk decoded frames.
Trait Implementations§
Source§impl Clone for ReplayClip
impl Clone for ReplayClip
Source§fn clone(&self) -> ReplayClip
fn clone(&self) -> ReplayClip
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReplayClip
impl Debug for ReplayClip
Source§impl<'de> Deserialize<'de> for ReplayClip
impl<'de> Deserialize<'de> for ReplayClip
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ReplayClip
impl PartialEq for ReplayClip
Source§fn eq(&self, other: &ReplayClip) -> bool
fn eq(&self, other: &ReplayClip) -> bool
self and other values to be equal, and is used by ==.