Table of Contents

Class ComponentExtension

Namespace
SampSharp.Entities
Assembly
SampSharp.OpenMp.Entities.dll

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

component Component

The component to which this extension is bound.

Properties

Component

Gets the component to which this extension is bound.

public Component Component { get; }

Property Value

Component

IsOmpEntityDestroyed

Gets a value indicating whether the open.mp entity counterpart has been destroyed.

public bool IsOmpEntityDestroyed { get; }

Property Value

bool

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()