mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 22:37:43 +01:00
fix: DI in payloads
This commit is contained in:
parent
26631682cd
commit
1fffc18da9
9 changed files with 45 additions and 27 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue