new files

This commit is contained in:
pan.codes 2024-04-03 22:14:16 +02:00
parent 4510c05819
commit 707a9fa5d8
5 changed files with 42 additions and 24 deletions

View file

@ -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;
}
}
}
}

View file

@ -4,7 +4,7 @@ using System.Text.RegularExpressions;
namespace SMSModLogOutputAnalyzer
{
public class CommandModule : InteractionModuleBase
public partial class CommandModule : InteractionModuleBase
{
public static List<string> KnownMelonLoaderMods = new List<string>
{
@ -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<string, List<FoundLine>> FindLines(string[] file, params string[] lines)
{
Dictionary<string, List<FoundLine>> results = new();

View file

@ -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; }
}
}
}

View file

@ -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; }
}
}
}

View file

@ -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<FlowchartNode> Nodes { get; set; } = new();
public List<FlowchartConnection> Connections { get; set; } = new();
}