21 lines
760 B
C#
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);
|
|
}
|
|
}
|