Table of Contents

Struct IPlayerCheckpointData

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

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

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

Constructors

IPlayerCheckpointData(nint)

Initializes a new instance of the IPlayerCheckpointData struct.

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

public bool Equals(IPlayerCheckpointData other)

Parameters

other IPlayerCheckpointData

Returns

bool

Equals(object?)

public override bool Equals(object? other)

Parameters

other object

Returns

bool

GetCheckpoint()

Gets the player's current checkpoint data.

public ICheckpointData GetCheckpoint()

Returns

ICheckpointData

A reference to the checkpoint data.

GetHashCode()

public override int GetHashCode()

Returns

int

GetRaceCheckpoint()

Gets the player's current race checkpoint data.

public IRaceCheckpointData GetRaceCheckpoint()

Returns

IRaceCheckpointData

A reference to the race checkpoint data.

Operators

operator ==(IPlayerCheckpointData, object?)

Determines whether the specified values are equal.

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

Parameters

lhs IPlayerCheckpointData

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

public static explicit operator IPlayerCheckpointData(IExtension value)

Parameters

value IExtension

The IExtension to cast.

Returns

IPlayerCheckpointData

The converted IPlayerCheckpointData.

explicit operator IExtension(IPlayerCheckpointData)

public static explicit operator IExtension(IPlayerCheckpointData value)

Parameters

value IPlayerCheckpointData

The IPlayerCheckpointData to cast.

Returns

IExtension

The converted IExtension.

operator !=(IPlayerCheckpointData, object?)

Determines whether the specified values are not equal.

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

Parameters

lhs IPlayerCheckpointData

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