Skip to content

Commit

Permalink
Added support for ChatType parsing in conversation_line_template
Browse files Browse the repository at this point in the history
  • Loading branch information
mdX7 committed Jul 3, 2023
1 parent 367b325 commit 9b6d408
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions WowPacketParser/Store/Objects/ConversationLineTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public sealed record ConversationLineTemplate : IDataModel
[DBFieldName("Flags")]
public byte? Flags;

[DBFieldName("ChatType", TargetedDatabaseFlag.SinceShadowlands)]
public byte? ChatType;

[DBFieldName("VerifiedBuild")]
public int? VerifiedBuild = ClientVersion.BuildInt;
}
Expand Down
3 changes: 2 additions & 1 deletion WowPacketParser/Store/Objects/ConversationTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public override void LoadValuesFromUpdateFields()
StartTime = lines[i].StartTime,
UiCameraID = (uint)lines[i].UiCameraID,
ActorIdx = lines[i].ActorIndex,
Flags = lines[i].Flags
Flags = lines[i].Flags,
ChatType = lines[i].ChatType
};

if (i == 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ public interface IConversationLine
int UiCameraID { get; }
byte ActorIndex { get; }
byte Flags { get; }
byte ChatType { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public class Line : IConversationLine
public int UiCameraID { get; set; }
public byte ActorIndex { get; set; }
public byte Flags { get; set; }
public byte ChatType { get; set; }
}

public class Actor : IConversationActor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class ConversationLine : IConversationLine
public int UiCameraID { get; set; }
public byte ActorIndex { get; set; }
public byte Flags { get; set; }
public byte ChatType { get; set; }
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class ConversationLine : IConversationLine
public int UiCameraID { get; set; }
public byte ActorIndex { get; set; }
public byte Flags { get; set; }
public byte ChatType { get; set; }
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class ConversationLine : IConversationLine
public int UiCameraID { get; set; }
public byte ActorIndex { get; set; }
public byte Flags { get; set; }
public byte ChatType { get; set; }
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class ConversationLine : IConversationLine
public int UiCameraID { get; set; }
public byte ActorIndex { get; set; }
public byte Flags { get; set; }
public byte ChatType { get; set; }
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class ConversationLine : IConversationLine
public int UiCameraID { get; set; }
public byte ActorIndex { get; set; }
public byte Flags { get; set; }
public byte ChatType { get; set; }
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class ConversationLine : IConversationLine
public int UiCameraID { get; set; }
public byte ActorIndex { get; set; }
public byte Flags { get; set; }
public byte ChatType { get; set; }
}
}

0 comments on commit 9b6d408

Please sign in to comment.