pub struct EntityRecord {
pub id: EntityId,
pub handle: EntityHandle,
pub position: Position3,
pub bounds: Bounds,
pub policy_id: PolicyId,
pub tags: EntityTags,
pub role: EntityRole,
pub dirty: DirtyMask,
}Expand description
Station-local entity record.
Fields§
§id: EntityIdStable entity identifier.
handle: EntityHandleStation-local dense handle.
position: Position3Current position.
bounds: BoundsEntity bounds.
policy_id: PolicyIdCompiled sync policy id.
User-defined tags.
role: EntityRoleOwner or ghost role.
dirty: DirtyMaskDirty component mask.
Implementations§
Source§impl EntityRecord
impl EntityRecord
Sourcepub fn owned(
id: EntityId,
handle: EntityHandle,
position: Position3,
bounds: Bounds,
policy_id: PolicyId,
owner_epoch: OwnerEpoch,
) -> Self
pub fn owned( id: EntityId, handle: EntityHandle, position: Position3, bounds: Bounds, policy_id: PolicyId, owner_epoch: OwnerEpoch, ) -> Self
Creates an authoritative entity record.
Sourcepub fn ghost(
id: EntityId,
handle: EntityHandle,
position: Position3,
bounds: Bounds,
policy_id: PolicyId,
owner_station: StationId,
owner_epoch: OwnerEpoch,
expires_at: Tick,
) -> Self
pub fn ghost( id: EntityId, handle: EntityHandle, position: Position3, bounds: Bounds, policy_id: PolicyId, owner_station: StationId, owner_epoch: OwnerEpoch, expires_at: Tick, ) -> Self
Creates a read-only ghost entity record.
Trait Implementations§
Source§impl Clone for EntityRecord
impl Clone for EntityRecord
Source§fn clone(&self) -> EntityRecord
fn clone(&self) -> EntityRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntityRecord
impl Debug for EntityRecord
Source§impl PartialEq for EntityRecord
impl PartialEq for EntityRecord
impl StructuralPartialEq for EntityRecord
Auto Trait Implementations§
impl Freeze for EntityRecord
impl RefUnwindSafe for EntityRecord
impl Send for EntityRecord
impl Sync for EntityRecord
impl Unpin for EntityRecord
impl UnsafeUnpin for EntityRecord
impl UnwindSafe for EntityRecord
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