Table of Contents

Struct IPlayerConsoleData

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

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

handle nint

A pointer to the unmanaged interface.

Properties

Handle

Gets the handle to the unmanaged interface instance.

public nint Handle { get; }

Property Value

nint

HasValue

Gets a value indicating whether the pointer has a value.

public bool HasValue { get; }

Property Value

bool

Methods

Equals(IPlayerConsoleData)

public bool Equals(IPlayerConsoleData other)

Parameters

other IPlayerConsoleData

Returns

bool

Equals(object?)

public override bool Equals(object? other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

HasConsoleAccess()

Checks whether the player has console (RCON) access.

public bool HasConsoleAccess()

Returns

bool

true if the player has console access; otherwise, false.

SetConsoleAccessibility(bool)

Sets whether the player has console (RCON) access.

public void SetConsoleAccessibility(bool set)

Parameters

set bool

true to grant console access; false to revoke it.

Operators

operator ==(IPlayerConsoleData, object?)

Determines whether the specified values are equal.

public static bool operator ==(IPlayerConsoleData lhs, object? rhs)

Parameters

lhs IPlayerConsoleData

The value on the left side of the operator.

rhs object

The value on the right side of the operator.

Returns

bool

true if the values are equal; otherwise, false.

explicit operator IPlayerConsoleData(IExtension)

public static explicit operator IPlayerConsoleData(IExtension value)

Parameters

value IExtension

The IExtension to cast.

Returns

IPlayerConsoleData

The converted IPlayerConsoleData.

explicit operator IExtension(IPlayerConsoleData)

public static explicit operator IExtension(IPlayerConsoleData value)

Parameters

value IPlayerConsoleData

The 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

lhs IPlayerConsoleData

The value on the left side of the operator.

rhs object

The value on the right side of the operator.

Returns

bool

true if the values are not equal; otherwise, false.

Explicit Interface Implementations

ExtensionId

Gets the identifier of the extension type. IPool<T>

static UID ExtensionId { get; }

Returns

UID