pub struct Entity {
pub index: i32,
pub serial: u32,
pub class_id: i32,
pub class_name: String,
pub fields: FxHashMap<u64, FieldValue>,
}Expand description
A single entity with its class, fields, and current state.
Fields§
§index: i32Slot index in the entity array (0–16383).
serial: u32Serial number for this slot (increments on reuse).
class_id: i32Numeric class ID (indexes into ClassInfo).
class_name: StringNetwork class name (e.g. "CCitadelPlayerController").
fields: FxHashMap<u64, FieldValue>Current field values, keyed by packed field path keys.
Implementations§
Source§impl Entity
impl Entity
Sourcepub fn get_by_name(
&self,
path: &str,
serializer: &Serializer,
) -> Option<&FieldValue>
pub fn get_by_name( &self, path: &str, serializer: &Serializer, ) -> Option<&FieldValue>
Look up a field by its dotted name string using the serializer to resolve the key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
impl UnwindSafe for Entity
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