#[repr(C)]pub struct SimulationEntryI {
pub id: StrhashT,
pub display_name: *const c_char,
pub settings_type_hash: StrhashT,
pub start: Option<unsafe extern "C" fn(args: *mut SimulationStartArgsT) -> *mut SimulationStateO>,
pub stop: Option<unsafe extern "C" fn(state: *mut SimulationStateO, commands: *mut EntityCommandsO)>,
pub tick: Option<unsafe extern "C" fn(state: *mut SimulationStateO, args: *mut SimulationFrameArgsT)>,
pub hot_reload: Option<unsafe extern "C" fn(state: *mut SimulationStateO, commands: *mut EntityCommandsO)>,
pub before_me: [StrhashT; 16],
pub after_me: [StrhashT; 16],
pub phase: StrhashT,
}
Fields§
§id: StrhashT
§display_name: *const c_char
§settings_type_hash: StrhashT
§start: Option<unsafe extern "C" fn(args: *mut SimulationStartArgsT) -> *mut SimulationStateO>
§stop: Option<unsafe extern "C" fn(state: *mut SimulationStateO, commands: *mut EntityCommandsO)>
§tick: Option<unsafe extern "C" fn(state: *mut SimulationStateO, args: *mut SimulationFrameArgsT)>
§hot_reload: Option<unsafe extern "C" fn(state: *mut SimulationStateO, commands: *mut EntityCommandsO)>
§before_me: [StrhashT; 16]
§after_me: [StrhashT; 16]
§phase: StrhashT
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimulationEntryI
impl RefUnwindSafe for SimulationEntryI
impl !Send for SimulationEntryI
impl !Sync for SimulationEntryI
impl Unpin for SimulationEntryI
impl UnwindSafe for SimulationEntryI
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