Struct ark_api::world::WorldReflection
source · [−]pub struct WorldReflection { /* private fields */ }
Expand description
Helper struct to get reflection data from the host.
Implementations
sourceimpl WorldReflection
impl WorldReflection
sourcepub fn components(&self) -> &[ComponentMetaDataEntry]
pub fn components(&self) -> &[ComponentMetaDataEntry]
Gets the reflected components
sourcepub fn components_for_entity(
&self,
entity: Entity
) -> Vec<ComponentMetaDataEntry>
pub fn components_for_entity(
&self,
entity: Entity
) -> Vec<ComponentMetaDataEntry>
Gets the reflected components for a specific entity
sourcepub fn parameters(&self, data: DataHandle) -> &[ParameterMetaDataEntry]
pub fn parameters(&self, data: DataHandle) -> &[ParameterMetaDataEntry]
Gets the reflected parameters
sourcepub fn string(&self, data: DataHandle) -> &str
pub fn string(&self, data: DataHandle) -> &str
Gets a string
sourcepub fn parameter(
&self,
component_type: ComponentType,
parameter_id: u32
) -> Option<&ParameterMetaDataEntry>
pub fn parameter(
&self,
component_type: ComponentType,
parameter_id: u32
) -> Option<&ParameterMetaDataEntry>
Gets information about a specific parameter
Auto Trait Implementations
impl RefUnwindSafe for WorldReflection
impl Send for WorldReflection
impl Sync for WorldReflection
impl Unpin for WorldReflection
impl UnwindSafe for WorldReflection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more