Struct ICheckpointDataBase
This type represents a pointer to an unmanaged open.mp ICheckpointDataBase interface.
[OpenMpApi(new Type[] { })]
public readonly struct ICheckpointDataBase : IEquatable<ICheckpointDataBase>, ICheckpointDataBase.IManagedInterface, IUnmanagedInterface
- Implements
- Inherited Members
Constructors
ICheckpointDataBase(nint)
Initializes a new instance of the ICheckpointDataBase struct.
public ICheckpointDataBase(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
Disable()
Disables this checkpoint.
public void Disable()
Enable()
Enables this checkpoint.
public void Enable()
Equals(ICheckpointDataBase)
public bool Equals(ICheckpointDataBase other)
Parameters
otherICheckpointDataBase
Returns
Equals(object?)
public override bool Equals(object? other)
Parameters
otherobject
Returns
EtRadius()
Gets the radius of this checkpoint.
public float EtRadius()
Returns
- float
The checkpoint radius.
GetHashCode()
public override int GetHashCode()
Returns
GetPosition()
Gets the position of this checkpoint.
public Vector3 GetPosition()
Returns
- Vector3
The checkpoint position.
IsEnabled()
Checks whether this checkpoint is enabled.
public bool IsEnabled()
Returns
- bool
trueif the checkpoint is enabled; otherwise,false.
IsPlayerInside()
Checks whether the player is inside this checkpoint.
public bool IsPlayerInside()
Returns
- bool
trueif the player is inside the checkpoint; otherwise,false.
SetPlayerInside(bool)
Sets whether the player is inside this checkpoint.
public void SetPlayerInside(bool inside)
Parameters
insidebooltrueto set the player as inside;falseto set them as outside.
SetPosition(ref Vector3)
Sets the position of this checkpoint.
public void SetPosition(ref Vector3 position)
Parameters
positionVector3The checkpoint position to set.
SetRadius(float)
Sets the radius of this checkpoint.
public void SetRadius(float radius)
Parameters
radiusfloatThe checkpoint radius to set.
Operators
operator ==(ICheckpointDataBase, object?)
Determines whether the specified values are equal.
public static bool operator ==(ICheckpointDataBase lhs, object? rhs)
Parameters
lhsICheckpointDataBaseThe 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.
operator !=(ICheckpointDataBase, object?)
Determines whether the specified values are not equal.
public static bool operator !=(ICheckpointDataBase lhs, object? rhs)
Parameters
lhsICheckpointDataBaseThe 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.