Struct IPlayerGangZoneData
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
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(IPlayerGangZoneData)
public bool Equals(IPlayerGangZoneData other)
Parameters
otherIPlayerGangZoneData
Returns
Equals(object?)
public override bool Equals(object? other)
Parameters
otherobject
Returns
FromClientID(int)
Converts a client gang zone ID to its real ID equivalent.
public int FromClientID(int legacy)
Parameters
legacyintThe 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
legacyintThe legacy gang zone ID.
Returns
- int
The real gang zone ID.
GetHashCode()
public override int GetHashCode()
Returns
ReleaseClientID(int)
Releases a client gang zone ID that was previously reserved.
public void ReleaseClientID(int legacy)
Parameters
legacyintThe client gang zone ID to release.
ReleaseLegacyID(int)
Releases a legacy gang zone ID that was previously reserved.
public void ReleaseLegacyID(int legacy)
Parameters
legacyintThe 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
SetLegacyID(int, int)
Assigns a real gang zone ID to a previously reserved legacy ID.
public void SetLegacyID(int legacy, int real)
Parameters
ToClientID(int)
Converts a real gang zone ID to its client ID equivalent.
public int ToClientID(int real)
Parameters
realintThe 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
realintThe 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
lhsIPlayerGangZoneDataThe 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 IPlayerGangZoneData(IExtension)
Casts the IExtension to a IPlayerGangZoneData.
public static explicit operator IPlayerGangZoneData(IExtension value)
Parameters
valueIExtensionThe IExtension to cast.
Returns
- IPlayerGangZoneData
The converted IPlayerGangZoneData.
explicit operator IExtension(IPlayerGangZoneData)
Casts the IPlayerGangZoneData to a IExtension.
public static explicit operator IExtension(IPlayerGangZoneData value)
Parameters
valueIPlayerGangZoneDataThe 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
lhsIPlayerGangZoneDataThe 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; }