17 lines
444 B
C#
17 lines
444 B
C#
using Dalamud.Memory;
|
|
using FFXIVClientStructs.FFXIV.Component.GUI;
|
|
|
|
namespace LLib.GameUI;
|
|
|
|
public static class LAtkValue
|
|
{
|
|
public static unsafe string? ReadAtkString(this AtkValue atkValue)
|
|
{
|
|
if (atkValue.Type == ValueType.Undefined)
|
|
return null;
|
|
if (atkValue.String != null)
|
|
return MemoryHelper.ReadSeStringNullTerminated(new nint(atkValue.String)).ToString();
|
|
return null;
|
|
}
|
|
}
|