Struct IPlayerRecordingData
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
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(IPlayerRecordingData)
public bool Equals(IPlayerRecordingData other)
Parameters
otherIPlayerRecordingData
Returns
Equals(object?)
public override bool Equals(object? other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
Start(PlayerRecordingType, string)
Starts recording the player's movements and actions.
public void Start(PlayerRecordingType type, string file)
Parameters
typePlayerRecordingTypeThe type of recording to start (e.g., driver, on foot).
filestringThe 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
lhsIPlayerRecordingDataThe 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 IPlayerRecordingData(IExtension)
Casts the IExtension to a IPlayerRecordingData.
public static explicit operator IPlayerRecordingData(IExtension value)
Parameters
valueIExtensionThe IExtension to cast.
Returns
- IPlayerRecordingData
The converted IPlayerRecordingData.
explicit operator IExtension(IPlayerRecordingData)
Casts the IPlayerRecordingData to a IExtension.
public static explicit operator IExtension(IPlayerRecordingData value)
Parameters
valueIPlayerRecordingDataThe 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
lhsIPlayerRecordingDataThe 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; }