Skip to main content

Struct AtkValuePtr

A readonly wrapper for AtkValue.

Assembly: Dalamud.dll
Declaration
public readonly struct AtkValuePtr : IEquatable<AtkValuePtr>

Implements:
System.IEquatable<Dalamud.Game.NativeWrapper.AtkValuePtr>

Properties

IsNull

Gets a value indicating whether the underlying pointer is a nullptr.

Declaration
public bool IsNull { get; }

ValueType

Gets the value type.

Declaration
public AtkValueType ValueType { get; }

Fields

Address

The address to the AtkValue.

Declaration
public readonly nint Address

Methods

GetValue()

Gets the value of the underlying FFXIVClientStructs.FFXIV.Component.GUI.AtkValue as a boxed object, based on its Dalamud.Game.NativeWrapper.AtkValueType.

Declaration
public object? GetValue()
Returns

System.Object: The boxed value represented by this Dalamud.Game.NativeWrapper.AtkValuePtr, or null if the value is null or undefined.

Exceptions

System.NotImplementedException
Thrown if the value type is not currently handled by this implementation.

TryGet<T>(out T?)

Attempts to retrieve the value as a strongly-typed object if the underlying type matches.

Declaration
public bool TryGet<T>(out T? result) where T : struct
Returns

System.Boolean: true if the value was successfully extracted and matched <code class="typeparamref">T</code>; otherwise, false.

Parameters
TypeNameDescription
System.Nullable<<T>>resultWhen this method returns true, contains the extracted value of type <code class="typeparamref">T</code>.
Otherwise, contains the default value of type <code class="typeparamref">T</code>.
Type Parameters
NameDescription
TThe expected value type to extract.

Equals(AtkValuePtr)

Determines whether the specified AtkValuePtr is equal to the current AtkValuePtr.

Declaration
public bool Equals(AtkValuePtr other)
Returns

System.Boolean: true if the specified AtkValuePtr is equal to the current AtkValuePtr; otherwise, false.

Parameters
TypeNameDescription
Dalamud.Game.NativeWrapper.AtkValuePtrotherThe AtkValuePtr to compare with the current AtkValuePtr.

Equals(object)

Declaration
public override bool Equals(object obj)
Returns

System.Boolean

Parameters
TypeName
System.Objectobj

GetHashCode()

Declaration
public override int GetHashCode()
Returns

System.Int32

Implements

  • System.IEquatable<Dalamud.Game.NativeWrapper.AtkValuePtr>