Struct IPlayerFixesData
This type represents a pointer to an unmanaged open.mp IPlayerFixesData interface.
[OpenMpApi(new Type[] { typeof(IExtension) })]
public readonly struct IPlayerFixesData : IEquatable<IPlayerFixesData>, IPlayerFixesData.IManagedInterface, IExtension.IManagedInterface, IUnmanagedInterface
- Implements
- Inherited Members
Constructors
IPlayerFixesData(nint)
Initializes a new instance of the IPlayerFixesData struct.
public IPlayerFixesData(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
ApplyAnimation(IPlayer, IActor, AnimationData)
Applies an animation to the player or actor.
public void ApplyAnimation(IPlayer player, IActor actor, AnimationData animation)
Parameters
playerIPlayerThe player to apply the animation to.
actorIActorThe actor to apply the animation to.
animationAnimationDataThe animation data to apply.
Equals(IPlayerFixesData)
public bool Equals(IPlayerFixesData other)
Parameters
otherIPlayerFixesData
Returns
Equals(object?)
public override bool Equals(object? other)
Parameters
otherobject
Returns
GetGameText(int, out string?, out TimeSpan, out TimeSpan)
Gets information about the game text at the specified style/slot.
public bool GetGameText(int style, out string? message, out TimeSpan time, out TimeSpan remaining)
Parameters
styleintThe display style/slot to query.
messagestringWhen the method returns, contains the message text.
timeTimeSpanWhen the method returns, contains the total display time.
remainingTimeSpanWhen the method returns, contains the remaining display time.
Returns
- bool
trueif information was retrieved successfully; otherwise,false.
GetHashCode()
public override int GetHashCode()
Returns
HasGameText(int)
Checks if the player has active game text at the specified style/slot.
public bool HasGameText(int style)
Parameters
styleintThe display style/slot to check.
Returns
- bool
trueif there is active game text at that slot; otherwise,false.
HideGameText(int)
Hides game text for the player.
public bool HideGameText(int style)
Parameters
styleintThe display style/slot to hide.
Returns
- bool
trueif successful; otherwise,false.
SendGameText(string, TimeSpan, int)
Sends game text to the player.
public bool SendGameText(string message, TimeSpan time, int style)
Parameters
messagestringThe message to display.
timeTimeSpanHow long to display the message.
styleintThe display style/slot for the game text.
Returns
- bool
trueif successful; otherwise,false.
Operators
operator ==(IPlayerFixesData, object?)
Determines whether the specified values are equal.
public static bool operator ==(IPlayerFixesData lhs, object? rhs)
Parameters
lhsIPlayerFixesDataThe 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 IPlayerFixesData(IExtension)
Casts the IExtension to a IPlayerFixesData.
public static explicit operator IPlayerFixesData(IExtension value)
Parameters
valueIExtensionThe IExtension to cast.
Returns
- IPlayerFixesData
The converted IPlayerFixesData.
explicit operator IExtension(IPlayerFixesData)
Casts the IPlayerFixesData to a IExtension.
public static explicit operator IExtension(IPlayerFixesData value)
Parameters
valueIPlayerFixesDataThe IPlayerFixesData to cast.
Returns
- IExtension
The converted IExtension.
operator !=(IPlayerFixesData, object?)
Determines whether the specified values are not equal.
public static bool operator !=(IPlayerFixesData lhs, object? rhs)
Parameters
lhsIPlayerFixesDataThe 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; }