From 9e84e468442f4522cd173b0f8b261384fb37a442 Mon Sep 17 00:00:00 2001 From: Slendy Date: Sat, 11 May 2024 17:58:48 -0500 Subject: [PATCH] Add custom ToString method for NPTicket section header --- ProjectLighthouse/Tickets/TicketReader.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ProjectLighthouse/Tickets/TicketReader.cs b/ProjectLighthouse/Tickets/TicketReader.cs index ee6b1a70..697a72a1 100644 --- a/ProjectLighthouse/Tickets/TicketReader.cs +++ b/ProjectLighthouse/Tickets/TicketReader.cs @@ -33,6 +33,9 @@ public struct SectionHeader public SectionType Type; public ushort Length; public int Position; + + public override string ToString() => + $"SectionHeader(Type='{this.Type}', Length='{this.Length}', Position='{this.Position}')"; } public class TicketReader : BinaryReader