Class ComponentExtension
Represents an extension to an open.mp component which binds its lifetime to the lifetime of an Component.
[Extension(6040365798343740031)]
public sealed class ComponentExtension : Extension, IDisposable
- Inheritance
-
ComponentExtension
- Implements
- Inherited Members
Constructors
ComponentExtension(Component)
Represents an extension to an open.mp component which binds its lifetime to the lifetime of an Component.
public ComponentExtension(Component component)
Parameters
componentComponentThe component to which this extension is bound.
Properties
Component
Gets the component to which this extension is bound.
public Component Component { get; }
Property Value
IsOmpEntityDestroyed
Gets a value indicating whether the open.mp entity counterpart has been destroyed.
public bool IsOmpEntityDestroyed { get; }
Property Value
Methods
Cleanup()
This method is called when the extension is being cleaned up. The extension may be cleaned up because it is being removed from an extensible or because the extensible is being disposed.
protected override void Cleanup()