Skip to main content

as_classes_component

Function as_classes_component 

Source
pub unsafe fn as_classes_component(
    component: *mut ServerComponent,
) -> *mut IClassesComponent
๐Ÿ‘ŽDeprecated since 3.6.0:

the UID and the cast can disagree; use omp_query::<Component<IClassesComponent>>() and Component::as_ptr

Expand description

Casts a component handle obtained by UID into the classes component.

ยงSafety

component must be what queryComponent(CLASSES_COMPONENT_UID) returned.