Struct boxcars::Frame [−][src]
pub struct Frame { pub time: f32, pub delta: f32, pub new_actors: Vec<NewActor>, pub deleted_actors: Vec<ActorId>, pub updated_actors: Vec<UpdatedAttribute>, }
Contains the time and any new information that occurred during a frame
Fields
time: f32
The time in seconds that the frame is recorded at
delta: f32
Time difference between previous frame
new_actors: Vec<NewActor>
List of new actors seen during the frame
deleted_actors: Vec<ActorId>
List of actor id's that are deleted / destroyed
updated_actors: Vec<UpdatedAttribute>
List of properties updated on the actors
Trait Implementations
impl Debug for Frame
[src]
impl Debug for Frame
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Frame
[src]
impl Clone for Frame
fn clone(&self) -> Frame
[src]
fn clone(&self) -> Frame
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Frame
[src]
impl PartialEq for Frame