#[repr(C)]pub struct TagComponentApi {
pub tag_assets: Option<unsafe extern "C" fn(tt: *mut TheTruthO, ta: *mut TempAllocatorI) -> *mut TtIdT>,
pub add_tag: Option<unsafe extern "C" fn(tcm: *mut TagComponentManagerO, e: EntityT, tag: StrhashT)>,
pub add_tag_optional: Option<unsafe extern "C" fn(tcm: *mut TagComponentManagerO, e: EntityT, tag: StrhashT)>,
pub remove_tag: Option<unsafe extern "C" fn(tcm: *mut TagComponentManagerO, e: EntityT, tag: StrhashT)>,
pub has_tag: Option<unsafe extern "C" fn(tcm: *const TagComponentManagerO, e: EntityT, tag: StrhashT) -> bool>,
pub find_all: Option<unsafe extern "C" fn(tcm: *const TagComponentManagerO, tag: StrhashT, ta: *mut TempAllocatorI) -> *mut EntityT>,
pub find_first: Option<unsafe extern "C" fn(tcm: *const TagComponentManagerO, tag: StrhashT) -> EntityT>,
}
Fields§
§tag_assets: Option<unsafe extern "C" fn(tt: *mut TheTruthO, ta: *mut TempAllocatorI) -> *mut TtIdT>
§add_tag: Option<unsafe extern "C" fn(tcm: *mut TagComponentManagerO, e: EntityT, tag: StrhashT)>
§add_tag_optional: Option<unsafe extern "C" fn(tcm: *mut TagComponentManagerO, e: EntityT, tag: StrhashT)>
§remove_tag: Option<unsafe extern "C" fn(tcm: *mut TagComponentManagerO, e: EntityT, tag: StrhashT)>
§has_tag: Option<unsafe extern "C" fn(tcm: *const TagComponentManagerO, e: EntityT, tag: StrhashT) -> bool>
§find_all: Option<unsafe extern "C" fn(tcm: *const TagComponentManagerO, tag: StrhashT, ta: *mut TempAllocatorI) -> *mut EntityT>
§find_first: Option<unsafe extern "C" fn(tcm: *const TagComponentManagerO, tag: StrhashT) -> EntityT>
Implementations§
Source§impl TagComponentApi
impl TagComponentApi
pub unsafe fn tag_assets( &self, tt: *mut TheTruthO, ta: *mut TempAllocatorI, ) -> *mut TtIdT
pub unsafe fn add_tag( &self, tcm: *mut TagComponentManagerO, e: EntityT, tag: StrhashT, )
pub unsafe fn add_tag_optional( &self, tcm: *mut TagComponentManagerO, e: EntityT, tag: StrhashT, )
pub unsafe fn remove_tag( &self, tcm: *mut TagComponentManagerO, e: EntityT, tag: StrhashT, )
pub unsafe fn has_tag( &self, tcm: *const TagComponentManagerO, e: EntityT, tag: StrhashT, ) -> bool
pub unsafe fn find_all( &self, tcm: *const TagComponentManagerO, tag: StrhashT, ta: *mut TempAllocatorI, ) -> *mut EntityT
pub unsafe fn find_first( &self, tcm: *const TagComponentManagerO, tag: StrhashT, ) -> EntityT
Trait Implementations§
Source§impl Clone for TagComponentApi
impl Clone for TagComponentApi
Source§fn clone(&self) -> TagComponentApi
fn clone(&self) -> TagComponentApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for TagComponentApi
impl Default for TagComponentApi
Source§fn default() -> TagComponentApi
fn default() -> TagComponentApi
Returns the “default value” for a type. Read more
impl Copy for TagComponentApi
Auto Trait Implementations§
impl Freeze for TagComponentApi
impl RefUnwindSafe for TagComponentApi
impl Send for TagComponentApi
impl Sync for TagComponentApi
impl Unpin for TagComponentApi
impl UnwindSafe for TagComponentApi
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