pub struct RecReader<'a> {
pub data: &'a [u8],
pub size: i32,
pub cursor: i32,
pub ok: bool,
pub diverged: bool,
pub world: *mut World,
pub owner: Option<*mut RecPlayer>,
pub slots: Vec<RegistrySlot>,
pub tags: Vec<RecTag>,
pub pending_query_key: u64,
pub pending_body_create: Option<BodyId>,
pub pending_body_destroy: Option<BodyId>,
}Expand description
Reader state threaded through the replay loop. (b3RecReader)
Fields§
§data: &'a [u8]§size: i32§cursor: i32§ok: bool§diverged: bool§world: *mut World§owner: Option<*mut RecPlayer>§slots: Vec<RegistrySlot>§pending_query_key: u64§pending_body_create: Option<BodyId>§pending_body_destroy: Option<BodyId>Implementations§
Source§impl<'a> RecReader<'a>
impl<'a> RecReader<'a>
pub fn new(data: &'a [u8]) -> Self
pub fn snap(&mut self) -> SnapReader<'a>
pub fn sync_from(&mut self, r: &SnapReader<'_>)
pub fn make_body_id(&self, recorded: BodyId) -> BodyId
pub fn make_shape_id(&self, recorded: ShapeId) -> ShapeId
pub fn make_joint_id(&self, recorded: JointId) -> JointId
pub fn check_id( ok: &mut bool, kind: &str, got_index: i32, got_gen: u16, rec_index: i32, rec_gen: u16, )
Auto Trait Implementations§
impl<'a> !Send for RecReader<'a>
impl<'a> !Sync for RecReader<'a>
impl<'a> Freeze for RecReader<'a>
impl<'a> RefUnwindSafe for RecReader<'a>
impl<'a> Unpin for RecReader<'a>
impl<'a> UnsafeUnpin for RecReader<'a>
impl<'a> UnwindSafe for RecReader<'a>
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