Table of Contents

Struct IPlayerGangZoneData

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

This type represents a pointer to an unmanaged open.mp IPlayerGangZoneData interface.

[OpenMpApi(new Type[] { typeof(IExtension) })]
public readonly struct IPlayerGangZoneData : IEquatable<IPlayerGangZoneData>, IPlayerGangZoneData.IManagedInterface, IExtension.IManagedInterface, IUnmanagedInterface
Implements
Inherited Members

Constructors

IPlayerGangZoneData(nint)

Initializes a new instance of the IPlayerGangZoneData struct.

public IPlayerGangZoneData(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(IPlayerGangZoneData)

public bool Equals(IPlayerGangZoneData other)

Parameters

other IPlayerGangZoneData

Returns

bool

Equals(object?)

public override bool Equals(object? other)

Parameters

other object

Returns

bool

FromClientID(int)

Converts a client gang zone ID to its real ID equivalent.

public int FromClientID(int legacy)

Parameters

legacy int

The client gang zone ID.

Returns

int

The real gang zone ID.

FromLegacyID(int)

Converts a legacy gang zone ID to its real ID equivalent.

public int FromLegacyID(int legacy)

Parameters

legacy int

The legacy gang zone ID.

Returns

int

The real gang zone ID.

GetHashCode()

public override int GetHashCode()

Returns

int

ReleaseClientID(int)

Releases a client gang zone ID that was previously reserved.

public void ReleaseClientID(int legacy)

Parameters

legacy int

The client gang zone ID to release.

ReleaseLegacyID(int)

Releases a legacy gang zone ID that was previously reserved.

public void ReleaseLegacyID(int legacy)

Parameters

legacy int

The legacy gang zone ID to release.

ReserveClientID()

Reserves an unused client gang zone ID.

public int ReserveClientID()

Returns

int

A reserved client gang zone ID.

ReserveLegacyID()

Reserves an unused legacy gang zone ID.

public int ReserveLegacyID()

Returns

int

A reserved legacy gang zone ID.

SetClientID(int, int)

Assigns a real gang zone ID to a previously reserved client ID.

public void SetClientID(int legacy, int real)

Parameters

legacy int

The client gang zone ID.

real int

The real gang zone ID to assign.

SetLegacyID(int, int)

Assigns a real gang zone ID to a previously reserved legacy ID.

public void SetLegacyID(int legacy, int real)

Parameters

legacy int

The legacy gang zone ID.

real int

The real gang zone ID to assign.

ToClientID(int)

Converts a real gang zone ID to its client ID equivalent.

public int ToClientID(int real)

Parameters

real int

The real gang zone ID.

Returns

int

The client gang zone ID.

ToLegacyID(int)

Converts a real gang zone ID to its legacy ID equivalent.

public int ToLegacyID(int real)

Parameters

real int

The real gang zone ID.

Returns

int

The legacy gang zone ID.

Operators

operator ==(IPlayerGangZoneData, object?)

Determines whether the specified values are equal.

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

Parameters

lhs IPlayerGangZoneData

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 IPlayerGangZoneData(IExtension)

public static explicit operator IPlayerGangZoneData(IExtension value)

Parameters

value IExtension

The IExtension to cast.

Returns

IPlayerGangZoneData

The converted IPlayerGangZoneData.

explicit operator IExtension(IPlayerGangZoneData)

public static explicit operator IExtension(IPlayerGangZoneData value)

Parameters

value IPlayerGangZoneData

The IPlayerGangZoneData to cast.

Returns

IExtension

The converted IExtension.

operator !=(IPlayerGangZoneData, object?)

Determines whether the specified values are not equal.

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

Parameters

lhs IPlayerGangZoneData

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