Struct ark_api::world::WorldReflection
source · pub struct WorldReflection { /* private fields */ }Expand description
Helper struct to get reflection data from the host.
Implementations§
source§impl WorldReflection
impl WorldReflection
sourcepub fn get() -> &'static Self
pub fn get() -> &'static Self
Get the world reflection singleton
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