diff --git a/SMSModLogOutputAnalyzer/CommandModule.FoundLine.cs b/SMSModLogOutputAnalyzer/CommandModule.FoundLine.cs new file mode 100644 index 0000000..31f1b49 --- /dev/null +++ b/SMSModLogOutputAnalyzer/CommandModule.FoundLine.cs @@ -0,0 +1,16 @@ +namespace SMSModLogOutputAnalyzer +{ + public partial class CommandModule + { + public struct FoundLine + { + public string Line; + public int LineNumber; + public FoundLine(string line, int lineNumber) + { + Line = line; + LineNumber = lineNumber; + } + } + } +} \ No newline at end of file diff --git a/SMSModLogOutputAnalyzer/CommandModule.cs b/SMSModLogOutputAnalyzer/CommandModule.cs index fb3dd20..01b68d4 100644 --- a/SMSModLogOutputAnalyzer/CommandModule.cs +++ b/SMSModLogOutputAnalyzer/CommandModule.cs @@ -4,7 +4,7 @@ using System.Text.RegularExpressions; namespace SMSModLogOutputAnalyzer { - public class CommandModule : InteractionModuleBase + public partial class CommandModule : InteractionModuleBase { public static List KnownMelonLoaderMods = new List { @@ -188,16 +188,6 @@ namespace SMSModLogOutputAnalyzer Log(e.StackTrace); } } - public struct FoundLine - { - public string Line; - public int LineNumber; - public FoundLine(string line, int lineNumber) - { - Line = line; - LineNumber = lineNumber; - } - } public static Dictionary> FindLines(string[] file, params string[] lines) { Dictionary> results = new(); diff --git a/SMSModLogOutputAnalyzer/Flowchart.FlowchartConnection.cs b/SMSModLogOutputAnalyzer/Flowchart.FlowchartConnection.cs new file mode 100644 index 0000000..895abec --- /dev/null +++ b/SMSModLogOutputAnalyzer/Flowchart.FlowchartConnection.cs @@ -0,0 +1,12 @@ +namespace SMSModLogOutputAnalyzer +{ + internal partial class Flowchart + { + public class FlowchartConnection + { + public string FromName { get; set; } + public string ToName { get; set; } + public string Text { get; set; } + } + } +} \ No newline at end of file diff --git a/SMSModLogOutputAnalyzer/Flowchart.FlowchartNode.cs b/SMSModLogOutputAnalyzer/Flowchart.FlowchartNode.cs new file mode 100644 index 0000000..c8d9fa5 --- /dev/null +++ b/SMSModLogOutputAnalyzer/Flowchart.FlowchartNode.cs @@ -0,0 +1,12 @@ +namespace SMSModLogOutputAnalyzer +{ + internal partial class Flowchart + { + public class FlowchartNode + { + public string Name { get; set; } + public string Text { get; set; } + public string Description { get; set; } + } + } +} \ No newline at end of file diff --git a/SMSModLogOutputAnalyzer/Flowchart.cs b/SMSModLogOutputAnalyzer/Flowchart.cs index 11456b2..1a449c2 100644 --- a/SMSModLogOutputAnalyzer/Flowchart.cs +++ b/SMSModLogOutputAnalyzer/Flowchart.cs @@ -1,6 +1,6 @@ namespace SMSModLogOutputAnalyzer { - internal class Flowchart + internal partial class Flowchart { public static Flowchart Parse(string file) => Parse(file.Split('\n')); public static Flowchart Parse(string[] lines) @@ -35,18 +35,6 @@ return flowchart; } - public class FlowchartNode - { - public string Name { get; set; } - public string Text { get; set; } - public string Description { get; set; } - } - public class FlowchartConnection - { - public string FromName { get; set; } - public string ToName { get; set; } - public string Text { get; set; } - } public List Nodes { get; set; } = new(); public List Connections { get; set; } = new(); }