Table of Contents

Interface IPlayerObjectData.IManagedInterface

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

Represents the managed interface implemented by its unmanaged counterpart.

public interface IPlayerObjectData.IManagedInterface : IUnmanagedInterface
Inherited Members

Methods

AsPool()

Gets the pool interface for managing player objects.

IPool<IPlayerObject> AsPool()

Returns

IPool<IPlayerObject>

A pool interface for player objects.

BeginEditing(IObject)

Begins editing the specified object.

void BeginEditing(IObject objekt)

Parameters

objekt IObject

The object to edit.

BeginEditing(IPlayerObject)

Begins editing the specified player object.

void BeginEditing(IPlayerObject objekt)

Parameters

objekt IPlayerObject

The player object to edit.

BeginSelecting()

Begins the object selection process.

void BeginSelecting()

Create(int, Vector3, Vector3, float)

Creates a new player object with the specified model ID, position, and rotation.

IPlayerObject Create(int modelID, Vector3 position, Vector3 rotation, float drawDist = 0)

Parameters

modelID int

The model ID of the object.

position Vector3

The position of the object.

rotation Vector3

The rotation of the object.

drawDist float

The draw distance of the object. Defaults to 0.

Returns

IPlayerObject

A new instance of IPlayerObject.

EditAttachedObject(int)

Edits the attached object at the specified index.

void EditAttachedObject(int index)

Parameters

index int

The index of the attachment slot to edit.

EditingObject()

Checks if an object is currently being edited.

bool EditingObject()

Returns

bool

true if an object is being edited; otherwise, false.

EndEditing()

Ends the object editing process.

void EndEditing()

GetAttachedObject(int)

Gets the attached object data for the specified index.

ref ObjectAttachmentSlotData GetAttachedObject(int index)

Parameters

index int

The index of the attachment slot.

Returns

ObjectAttachmentSlotData

A reference to the ObjectAttachmentSlotData for the specified index.

HasAttachedObject(int)

Checks if an object is attached at the specified index.

bool HasAttachedObject(int index)

Parameters

index int

The index to check.

Returns

bool

true if an object is attached; otherwise, false.

RemoveAttachedObject(int)

Removes the attached object at the specified index.

void RemoveAttachedObject(int index)

Parameters

index int

The index of the attachment slot to remove.

SelectingObject()

Checks if an object is currently being selected.

bool SelectingObject()

Returns

bool

true if an object is being selected; otherwise, false.

SetAttachedObject(int, ref ObjectAttachmentSlotData)

Sets the attached object data for the specified index.

void SetAttachedObject(int index, ref ObjectAttachmentSlotData data)

Parameters

index int

The index of the attachment slot.

data ObjectAttachmentSlotData

The attachment data to set.