Struct machinery_api::plugins::entity::ComponentPersistenceI [−][src]
#[repr(C)]pub struct ComponentPersistenceI {}Show 16 fields
pub custom_persistent_state: bool, pub _padding_132: [c_char; 3], pub size: u32, pub num_members: u32, pub _padding_147: [c_char; 4], pub members: *mut GamestateMemberT, pub manual_tracking: bool, pub notify_reload_before_deserialization: bool, pub compute_initial_hash_immediately: bool, pub _padding_185: [c_char; 1], pub restore_sort_order: f32, pub user_data: *mut c_void, pub serialize: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT, buffer: *mut c_void, buffer_size: u32)>, pub deserialize: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT, buffer: *const c_void, buffer_size: u32)>, pub compute_hash: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT, data: *const c_void, size: u32) -> u64>, pub compute_asset_hash: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, tt: *mut TheTruthO, component: ComponentTypeT, asset: TtIdT) -> u64>,
Fields
custom_persistent_state: bool_padding_132: [c_char; 3]size: u32num_members: u32_padding_147: [c_char; 4]members: *mut GamestateMemberTmanual_tracking: boolnotify_reload_before_deserialization: boolcompute_initial_hash_immediately: bool_padding_185: [c_char; 1]restore_sort_order: f32user_data: *mut c_voidserialize: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT, buffer: *mut c_void, buffer_size: u32)>deserialize: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT, buffer: *const c_void, buffer_size: u32)>compute_hash: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT, data: *const c_void, size: u32) -> u64>compute_asset_hash: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, tt: *mut TheTruthO, component: ComponentTypeT, asset: TtIdT) -> u64>Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ComponentPersistenceI
impl !Send for ComponentPersistenceI
impl !Sync for ComponentPersistenceI
impl Unpin for ComponentPersistenceI
impl UnwindSafe for ComponentPersistenceI
Blanket Implementations
Mutably borrows from an owned value. Read more