LLib/GameUI/LAtkValue.cs

15 lines
369 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.String != null)
return MemoryHelper.ReadSeStringNullTerminated(new nint(atkValue.String)).ToString();
return null;
}
}