fix: DI in payloads

This commit is contained in:
goat 2020-07-25 21:21:51 +02:00
parent 26631682cd
commit 1fffc18da9
9 changed files with 45 additions and 27 deletions

View file

@ -4,6 +4,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Dalamud.Data;
using Dalamud.Data.TransientSheet;
namespace Dalamud.Game.Chat.SeStringHandling.Payloads
@ -41,14 +42,15 @@ namespace Dalamud.Game.Chat.SeStringHandling.Payloads
/// <summary>
/// Creates a new auto-translate payload.
/// </summary>
/// <param name="data">DataManager instance needed to resolve game data.</param>
/// <param name="group">The group id for this message.</param>
/// <param name="key">The key/row id for this message. Which table this is in depends on the group id and details the Completion table.</param>
/// <remarks>
/// This table is somewhat complicated in structure, and so using this constructor may not be very nice.
/// There is probably little use to create one of these, however.
/// </remarks>
public AutoTranslatePayload(uint group, uint key)
{
public AutoTranslatePayload(DataManager data, uint group, uint key) {
this.DataResolver = data;
this.group = group;
this.key = key;
}