payload constructors for user-created payloads

This commit is contained in:
meli 2020-04-22 08:51:24 -07:00
parent 5416c4bc7e
commit 2d5fdd3c4c
10 changed files with 119 additions and 26 deletions

View file

@ -27,6 +27,16 @@ namespace Dalamud.Game.Chat.SeStringHandling.Payloads
private uint group;
private uint key;
internal AutoTranslatePayload() { }
public AutoTranslatePayload(uint group, uint key)
{
this.group = group;
this.key = key;
}
// TODO: friendlier ctor? not sure how to handle that given how weird the tables are
public override string ToString()
{
return $"{Type} - Group: {group}, Key: {key}";