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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.