Table of Contents

Interface IPickupsComponent.IManagedInterface

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents the managed interface implemented by its unmanaged counterpart.

public interface IPickupsComponent.IManagedInterface : IUnmanagedInterface
Inherited Members

Methods

Create(int, byte, Vector3, uint, bool)

Creates a new pickup.

IPickup Create(int modelId, byte type, Vector3 pos, uint virtualWorld, bool isStatic)

Parameters

modelId int

The model ID of the pickup.

type byte

The type of the pickup.

pos Vector3

The position where the pickup will be created.

virtualWorld uint

The virtual world ID for the pickup.

isStatic bool

Whether the pickup is static and cannot be moved.

Returns

IPickup

The created pickup, or null if creation failed.

FromLegacyID(int)

Converts a legacy pickup ID to its real ID equivalent.

int FromLegacyID(int legacy)

Parameters

legacy int

The legacy pickup ID.

Returns

int

The real pickup ID.

GetEventDispatcher()

Gets the event dispatcher for pickup events.

IEventDispatcher<IPickupEventHandler> GetEventDispatcher()

Returns

IEventDispatcher<IPickupEventHandler>

An event dispatcher for IPickupEventHandler events.

ReleaseLegacyID(int)

Releases a legacy pickup ID that was previously reserved.

void ReleaseLegacyID(int legacy)

Parameters

legacy int

The legacy pickup ID to release.

ReserveLegacyID()

Reserves an unused legacy pickup ID.

int ReserveLegacyID()

Returns

int

A reserved legacy pickup ID.

SetLegacyID(int, int)

Assigns a real pickup ID to a previously reserved legacy ID.

void SetLegacyID(int legacy, int real)

Parameters

legacy int

The legacy pickup ID.

real int

The real pickup ID to assign.

ToLegacyID(int)

Converts a real pickup ID to its legacy ID equivalent.

int ToLegacyID(int real)

Parameters

real int

The real pickup ID.

Returns

int

The legacy pickup ID.