pub struct EntityTable { /* private fields */ }Expand description
Indirection table mapping EntityId to metadata about stored data.
Implementations§
Source§impl EntityTable
impl EntityTable
Sourcepub fn allocate(
&mut self,
offset: u32,
len: u32,
save_level: u16,
global: bool,
created_after_save: u32,
) -> EntityId
pub fn allocate( &mut self, offset: u32, len: u32, save_level: u16, global: bool, created_after_save: u32, ) -> EntityId
Allocate a new entity, returning its EntityId.
The returned EntityId is tagged with the global bit based on the global param.
Sourcepub fn get(&self, id: EntityId) -> &EntityMeta
pub fn get(&self, id: EntityId) -> &EntityMeta
Get metadata for an entity (read-only).
Sourcepub fn get_mut(&mut self, id: EntityId) -> &mut EntityMeta
pub fn get_mut(&mut self, id: EntityId) -> &mut EntityMeta
Get mutable metadata for an entity.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntityTable
impl RefUnwindSafe for EntityTable
impl Send for EntityTable
impl Sync for EntityTable
impl Unpin for EntityTable
impl UnsafeUnpin for EntityTable
impl UnwindSafe for EntityTable
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