1
0
annas-questmap/QuestMap/QuestData.cs

21 lines
760 B
C#
Raw Normal View History

2021-07-21 06:11:01 +00:00
using System.Diagnostics.CodeAnalysis;
using Lumina.Excel;
2024-11-25 18:53:44 +00:00
using Lumina.Text.ReadOnly;
2021-07-21 06:11:01 +00:00
namespace QuestMap {
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
2024-11-25 18:53:44 +00:00
[Sheet("")]
public readonly struct QuestData(ExcelPage page, uint offset, uint row) : IExcelRow<QuestData>
{
public uint RowId => row;
2021-07-21 06:11:01 +00:00
2024-11-25 18:53:44 +00:00
public ReadOnlySeString Id => page.ReadString(offset, offset);
public ReadOnlySeString Text => page.ReadString(offset + 4, offset);
2021-07-21 06:11:01 +00:00
2024-11-25 18:53:44 +00:00
static QuestData IExcelRow<QuestData>.Create(ExcelPage page, uint offset, uint row) =>
new(page, offset, row);
2021-07-21 06:11:01 +00:00
}
}