diff --git a/ParserCore/Monitors/PacketReader/PacketReader.cs b/ParserCore/Monitors/PacketReader/PacketReader.cs new file mode 100644 index 0000000..f269cda --- /dev/null +++ b/ParserCore/Monitors/PacketReader/PacketReader.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace WaywardGamers.KParser.Monitoring +{ + public class PacketReader : AbstractReader + { + #region Singleton Constructor + // Make the class a singleton + private static readonly PacketReader instance = new PacketReader(); + + /// + /// Gets the singleton instance of the LogParser class. + /// This is the only internal way to access the singleton. + /// + internal static PacketReader Instance { get { return instance; } } + + /// + /// Private constructor ensures singleton purity. + /// + private PacketReader() + { + // Layout of total structure: + // 50 offsets to new log records (short): 100 bytes + // 50 offsets to old log offsets (short): 100 bytes + // ChatLogInfoStruct block + //sizeOfChatLogInfoStruct = (uint)(Marshal.SizeOf(typeof(ChatLogInfoStruct))); + + //sizeOfChatLogControlStruct = (uint)(Marshal.SizeOf(typeof(ChatLogControlStruct))); + } + #endregion + + public override void Stop() + { + throw new NotImplementedException(); + } + + public override DataSource ParseModeType + { + get { throw new NotImplementedException(); } + } + } +} diff --git a/ParserCore/ParserCore.csproj b/ParserCore/ParserCore.csproj index 727b4cb..123e9f9 100644 --- a/ParserCore/ParserCore.csproj +++ b/ParserCore/ParserCore.csproj @@ -111,6 +111,7 @@ +