Struct IPlayerConsoleData
This type represents a pointer to an unmanaged open.mp IPlayerConsoleData interface.
[OpenMpApi(new Type[] { typeof(IExtension) })]
public readonly struct IPlayerConsoleData : IEquatable<IPlayerConsoleData>, IPlayerConsoleData.IManagedInterface, IExtension.IManagedInterface, IUnmanagedInterface
- Implements
- Inherited Members
Constructors
IPlayerConsoleData(nint)
Initializes a new instance of the IPlayerConsoleData struct.
public IPlayerConsoleData(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(IPlayerConsoleData)
public bool Equals(IPlayerConsoleData other)
Parameters
otherIPlayerConsoleData
Returns
Equals(object?)
public override bool Equals(object? other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
HasConsoleAccess()
Checks whether the player has console (RCON) access.
public bool HasConsoleAccess()
Returns
- bool
trueif the player has console access; otherwise,false.
SetConsoleAccessibility(bool)
Sets whether the player has console (RCON) access.
public void SetConsoleAccessibility(bool set)
Parameters
setbooltrueto grant console access;falseto revoke it.
Operators
operator ==(IPlayerConsoleData, object?)
Determines whether the specified values are equal.
public static bool operator ==(IPlayerConsoleData lhs, object? rhs)
Parameters
lhsIPlayerConsoleDataThe 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 IPlayerConsoleData(IExtension)
Casts the IExtension to a IPlayerConsoleData.
public static explicit operator IPlayerConsoleData(IExtension value)
Parameters
valueIExtensionThe IExtension to cast.
Returns
- IPlayerConsoleData
The converted IPlayerConsoleData.
explicit operator IExtension(IPlayerConsoleData)
Casts the IPlayerConsoleData to a IExtension.
public static explicit operator IExtension(IPlayerConsoleData value)
Parameters
valueIPlayerConsoleDataThe IPlayerConsoleData to cast.
Returns
- IExtension
The converted IExtension.
operator !=(IPlayerConsoleData, object?)
Determines whether the specified values are not equal.
public static bool operator !=(IPlayerConsoleData lhs, object? rhs)
Parameters
lhsIPlayerConsoleDataThe 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; }