new files
This commit is contained in:
parent
4510c05819
commit
707a9fa5d8
5 changed files with 42 additions and 24 deletions
16
SMSModLogOutputAnalyzer/CommandModule.FoundLine.cs
Normal file
16
SMSModLogOutputAnalyzer/CommandModule.FoundLine.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -4,7 +4,7 @@ using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace SMSModLogOutputAnalyzer
|
namespace SMSModLogOutputAnalyzer
|
||||||
{
|
{
|
||||||
public class CommandModule : InteractionModuleBase
|
public partial class CommandModule : InteractionModuleBase
|
||||||
{
|
{
|
||||||
public static List<string> KnownMelonLoaderMods = new List<string>
|
public static List<string> KnownMelonLoaderMods = new List<string>
|
||||||
{
|
{
|
||||||
|
|
@ -188,16 +188,6 @@ namespace SMSModLogOutputAnalyzer
|
||||||
Log(e.StackTrace);
|
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)
|
public static Dictionary<string, List<FoundLine>> FindLines(string[] file, params string[] lines)
|
||||||
{
|
{
|
||||||
Dictionary<string, List<FoundLine>> results = new();
|
Dictionary<string, List<FoundLine>> results = new();
|
||||||
|
|
|
||||||
12
SMSModLogOutputAnalyzer/Flowchart.FlowchartConnection.cs
Normal file
12
SMSModLogOutputAnalyzer/Flowchart.FlowchartConnection.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
12
SMSModLogOutputAnalyzer/Flowchart.FlowchartNode.cs
Normal file
12
SMSModLogOutputAnalyzer/Flowchart.FlowchartNode.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
namespace SMSModLogOutputAnalyzer
|
namespace SMSModLogOutputAnalyzer
|
||||||
{
|
{
|
||||||
internal class Flowchart
|
internal partial class Flowchart
|
||||||
{
|
{
|
||||||
public static Flowchart Parse(string file) => Parse(file.Split('\n'));
|
public static Flowchart Parse(string file) => Parse(file.Split('\n'));
|
||||||
public static Flowchart Parse(string[] lines)
|
public static Flowchart Parse(string[] lines)
|
||||||
|
|
@ -35,18 +35,6 @@
|
||||||
|
|
||||||
return flowchart;
|
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<FlowchartNode> Nodes { get; set; } = new();
|
||||||
public List<FlowchartConnection> Connections { get; set; } = new();
|
public List<FlowchartConnection> Connections { get; set; } = new();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue