Initial pieces of payload rework; everything is read-only at the moment, pending next stages. Lumina is now used for on-demand property resolution, properties are only exposed for user-facing values, and mostly expose the lumina object(s) where applicable

This commit is contained in:
meli 2020-04-21 16:41:03 -07:00
parent 22e9eb89b8
commit f2cee5f5bc
17 changed files with 355 additions and 253 deletions

View file

@ -0,0 +1,53 @@
using Lumina.Excel;
namespace Dalamud.Data.TransientSheet
{
[Sheet( "Completion", columnHash: 0x2e6c55a3 )]
public class Completion : IExcelRow
{
// column defs from Mon, 02 Mar 2020 11:00:20 GMT
// col: 03 offset: 0000
public string Text;
// col: 04 offset: 0004
public string GroupTitle;
// col: 02 offset: 0008
public string LookupTable;
// col: 00 offset: 000c
public ushort Group;
// col: 01 offset: 000e
public ushort Key;
public int RowId { get; set; }
public int SubRowId { get; set; }
public void PopulateData( RowParser parser, Lumina.Lumina lumina )
{
RowId = parser.Row;
SubRowId = parser.SubRow;
// col: 3 offset: 0000
Text = parser.ReadOffset< string >( 0x0 );
// col: 4 offset: 0004
GroupTitle = parser.ReadOffset< string >( 0x4 );
// col: 2 offset: 0008
LookupTable = parser.ReadOffset< string >( 0x8 );
// col: 0 offset: 000c
Group = parser.ReadOffset< ushort >( 0xc );
// col: 1 offset: 000e
Key = parser.ReadOffset< ushort >( 0xe );
}
}
}