1
0
annas-questmap/QuestMap/QuestData.cs
2024-11-25 19:53:44 +01:00

21 lines
760 B
C#

using System.Diagnostics.CodeAnalysis;
using Lumina.Excel;
using Lumina.Text.ReadOnly;
namespace QuestMap {
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
[Sheet("")]
public readonly struct QuestData(ExcelPage page, uint offset, uint row) : IExcelRow<QuestData>
{
public uint RowId => row;
public ReadOnlySeString Id => page.ReadString(offset, offset);
public ReadOnlySeString Text => page.ReadString(offset + 4, offset);
static QuestData IExcelRow<QuestData>.Create(ExcelPage page, uint offset, uint row) =>
new(page, offset, row);
}
}