Expand description
High-level API for Open Multiplayer server components.
The raw pointer returned by server::query_component is opaque — it only
lets you check presence, with no way to interact with the component’s
vtable. This module defines the OmpComponentHandle trait that specific
types (PawnComponent, TimersComponent, etc.) implement to provide:
- The component’s known
UID(associated constant) - Safe construction from the raw pointer
- Access to shared methods (
componentName,componentVersion) via the generic utility functions in this module
Plugins implementing their own external component declare the trait with the UID generated by the SDK.
Structs§
- Component
- A server component, typed by the interface it implements.
Traits§
- Component
Interface - A server interface reachable as a component, and the UID that finds it.
- OmpComponent
Handle - Trait implemented by typed wrappers for Open Multiplayer components.
Functions§
- component_
name - Reads the component name by calling
componentName()([SLOT_COMPONENT_NAME] of theIComponentvtable). - component_
version - Reads the component version by calling
componentVersion()([SLOT_COMPONENT_VERSION] of theIComponentvtable).