Struct IPlayerCheckpointData
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
handlenintA pointer to the unmanaged interface.
Properties
Handle
Gets the handle to the unmanaged interface instance.
public nint Handle { get; }
Property Value
HasValue
Gets a value indicating whether the pointer has a value.
public bool HasValue { get; }
Property Value
Methods
Equals(IPlayerCheckpointData)
public bool Equals(IPlayerCheckpointData other)
Parameters
otherIPlayerCheckpointData
Returns
Equals(object?)
public override bool Equals(object? other)
Parameters
otherobject
Returns
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
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
lhsIPlayerCheckpointDataThe value on the left side of the operator.
rhsobjectThe value on the right side of the operator.
Returns
- bool
trueif the values are equal; otherwise,false.
explicit operator IPlayerCheckpointData(IExtension)
Casts the IExtension to a IPlayerCheckpointData.
public static explicit operator IPlayerCheckpointData(IExtension value)
Parameters
valueIExtensionThe IExtension to cast.
Returns
- IPlayerCheckpointData
The converted IPlayerCheckpointData.
explicit operator IExtension(IPlayerCheckpointData)
Casts the IPlayerCheckpointData to a IExtension.
public static explicit operator IExtension(IPlayerCheckpointData value)
Parameters
valueIPlayerCheckpointDataThe 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
lhsIPlayerCheckpointDataThe value on the left side of the operator.
rhsobjectThe value on the right side of the operator.
Returns
- bool
trueif the values are not equal; otherwise,false.
Explicit Interface Implementations
ExtensionId
Gets the identifier of the extension type. IPool<T>
static UID ExtensionId { get; }