fix: lumina 2.1.1 incompatibilities

This commit is contained in:
goat 2020-07-10 22:33:07 +02:00
parent 611679d38a
commit e271f76b69
3 changed files with 6 additions and 4 deletions

View file

@ -124,7 +124,7 @@ namespace Dalamud.Data
/// </summary>
/// <typeparam name="T">The excel sheet type to get.</typeparam>
/// <returns>The <see cref="ExcelSheet{T}"/>, giving access to game rows.</returns>
public ExcelSheet<T> GetExcelSheet<T>() where T : IExcelRow
public ExcelSheet<T> GetExcelSheet<T>() where T : class, IExcelRow
{
return this.Excel.GetSheet<T>();
}
@ -135,7 +135,7 @@ namespace Dalamud.Data
/// <param name="language">Language of the sheet to get.</param>
/// <typeparam name="T">The excel sheet type to get.</typeparam>
/// <returns>The <see cref="ExcelSheet{T}"/>, giving access to game rows.</returns>
public ExcelSheet<T> GetExcelSheet<T>(ClientLanguage language) where T : IExcelRow {
public ExcelSheet<T> GetExcelSheet<T>(ClientLanguage language) where T : class, IExcelRow {
var lang = language switch {
ClientLanguage.Japanese => Language.Japanese,
ClientLanguage.English => Language.English,

View file

@ -1,3 +1,4 @@
using Lumina.Data;
using Lumina.Excel;
namespace Dalamud.Data.TransientSheet
@ -27,7 +28,7 @@ namespace Dalamud.Data.TransientSheet
public uint RowId { get; set; }
public uint SubRowId { get; set; }
public void PopulateData( RowParser parser, Lumina.Lumina lumina )
public void PopulateData( RowParser parser, Lumina.Lumina lumina, Language language )
{
RowId = parser.Row;
SubRowId = parser.SubRow;

View file

@ -1,4 +1,5 @@
using Lumina.Excel;
using Lumina.Data;
namespace Dalamud.Data.TransientSheet
{
@ -201,7 +202,7 @@ namespace Dalamud.Data.TransientSheet
public uint RowId { get; set; }
public uint SubRowId { get; set; }
public void PopulateData( RowParser parser, Lumina.Lumina lumina )
public void PopulateData( RowParser parser, Lumina.Lumina lumina, Language language )
{
RowId = parser.Row;
SubRowId = parser.SubRow;