2023-10-11 01:21:19 +00:00
|
|
|
|
using Dalamud.Memory;
|
|
|
|
|
using FFXIVClientStructs.FFXIV.Component.GUI;
|
|
|
|
|
|
|
|
|
|
namespace LLib.GameUI;
|
|
|
|
|
|
|
|
|
|
public static class LAtkValue
|
|
|
|
|
{
|
|
|
|
|
public static unsafe string? ReadAtkString(this AtkValue atkValue)
|
|
|
|
|
{
|
2024-07-14 21:23:30 +00:00
|
|
|
|
if (atkValue.Type == ValueType.Undefined)
|
|
|
|
|
return null;
|
2023-10-11 01:21:19 +00:00
|
|
|
|
if (atkValue.String != null)
|
|
|
|
|
return MemoryHelper.ReadSeStringNullTerminated(new nint(atkValue.String)).ToString();
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|