LLib/GameUI/LAtkValue.cs

17 lines
444 B
C#
Raw Normal View History

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)
{
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;
}
}