Table of Contents

Struct IPlayerRecordingData

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

This type represents a pointer to an unmanaged open.mp IPlayerRecordingData interface.

[OpenMpApi(new Type[] { typeof(IExtension) })]
public readonly struct IPlayerRecordingData : IEquatable<IPlayerRecordingData>, IPlayerRecordingData.IManagedInterface, IExtension.IManagedInterface, IUnmanagedInterface
Implements
Inherited Members

Constructors

IPlayerRecordingData(nint)

Initializes a new instance of the IPlayerRecordingData struct.

public IPlayerRecordingData(nint handle)

Parameters

handle nint

A pointer to the unmanaged interface.

Properties

Handle

Gets the handle to the unmanaged interface instance.

public nint Handle { get; }

Property Value

nint

HasValue

Gets a value indicating whether the pointer has a value.

public bool HasValue { get; }

Property Value

bool

Methods

Equals(IPlayerRecordingData)

public bool Equals(IPlayerRecordingData other)

Parameters

other IPlayerRecordingData

Returns

bool

Equals(object?)

public override bool Equals(object? other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Start(PlayerRecordingType, string)

Starts recording the player's movements and actions.

public void Start(PlayerRecordingType type, string file)

Parameters

type PlayerRecordingType

The type of recording to start (e.g., driver, on foot).

file string

The file path where the recording will be saved.

Stop()

Stops the current player recording.

public void Stop()

Operators

operator ==(IPlayerRecordingData, object?)

Determines whether the specified values are equal.

public static bool operator ==(IPlayerRecordingData lhs, object? rhs)

Parameters

lhs IPlayerRecordingData

The value on the left side of the operator.

rhs object

The value on the right side of the operator.

Returns

bool

true if the values are equal; otherwise, false.

explicit operator IPlayerRecordingData(IExtension)

public static explicit operator IPlayerRecordingData(IExtension value)

Parameters

value IExtension

The IExtension to cast.

Returns

IPlayerRecordingData

The converted IPlayerRecordingData.

explicit operator IExtension(IPlayerRecordingData)

public static explicit operator IExtension(IPlayerRecordingData value)

Parameters

value IPlayerRecordingData

The IPlayerRecordingData to cast.

Returns

IExtension

The converted IExtension.

operator !=(IPlayerRecordingData, object?)

Determines whether the specified values are not equal.

public static bool operator !=(IPlayerRecordingData lhs, object? rhs)

Parameters

lhs IPlayerRecordingData

The value on the left side of the operator.

rhs object

The value on the right side of the operator.

Returns

bool

true if the values are not equal; otherwise, false.

Explicit Interface Implementations

ExtensionId

Gets the identifier of the extension type. IPool<T>

static UID ExtensionId { get; }

Returns

UID