Struct machinery_api::plugins::entity::OwnerComponentApi [−][src]
#[repr(C)]pub struct OwnerComponentApi { pub children: Option<unsafe extern "C" fn(manager: *const OwnerComponentManagerO, c: *const OwnerComponentT, children: *mut EntityT)>, pub add_children: Option<unsafe extern "C" fn(manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT, e: *const EntityT, n: u32)>, pub remove_children: Option<unsafe extern "C" fn(manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT, e: *const EntityT, n: u32)>, pub remove_all_children: Option<unsafe extern "C" fn(manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT)>, pub descendants: Option<unsafe extern "C" fn(manager: *const OwnerComponentManagerO, c: *const OwnerComponentT, ta: *mut TempAllocatorI) -> *mut EntityT>, }
Fields
children: Option<unsafe extern "C" fn(manager: *const OwnerComponentManagerO, c: *const OwnerComponentT, children: *mut EntityT)>add_children: Option<unsafe extern "C" fn(manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT, e: *const EntityT, n: u32)>remove_children: Option<unsafe extern "C" fn(manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT, e: *const EntityT, n: u32)>remove_all_children: Option<unsafe extern "C" fn(manager: *mut OwnerComponentManagerO, c: *mut OwnerComponentT)>descendants: Option<unsafe extern "C" fn(manager: *const OwnerComponentManagerO, c: *const OwnerComponentT, ta: *mut TempAllocatorI) -> *mut EntityT>Implementations
pub unsafe fn children(
&self,
manager: *const OwnerComponentManagerO,
c: *const OwnerComponentT,
children: *mut EntityT
)
pub unsafe fn add_children(
&self,
manager: *mut OwnerComponentManagerO,
c: *mut OwnerComponentT,
e: *const EntityT,
n: u32
)
pub unsafe fn remove_children(
&self,
manager: *mut OwnerComponentManagerO,
c: *mut OwnerComponentT,
e: *const EntityT,
n: u32
)
pub unsafe fn remove_all_children(
&self,
manager: *mut OwnerComponentManagerO,
c: *mut OwnerComponentT
)
pub unsafe fn descendants(
&self,
manager: *const OwnerComponentManagerO,
c: *const OwnerComponentT,
ta: *mut TempAllocatorI
) -> *mut EntityT
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for OwnerComponentApi
impl Send for OwnerComponentApi
impl Sync for OwnerComponentApi
impl Unpin for OwnerComponentApi
impl UnwindSafe for OwnerComponentApi
Blanket Implementations
Mutably borrows from an owned value. Read more