add function to determine whether entry is relevant
This commit is contained in:
parent
32e5898b02
commit
027f8a892d
@ -747,6 +747,17 @@ public class TransactionParser {
|
||||
{ Events.SupercruiseEntry, new SupercruiseEntryParser() },
|
||||
};
|
||||
|
||||
public bool IsRelevant(string entry) {
|
||||
return ParserParts.ContainsKey(entry);
|
||||
}
|
||||
|
||||
public bool IsRelevant(Entry e) {
|
||||
if (e.Event == null) {
|
||||
return false;
|
||||
}
|
||||
return IsRelevant(e.Event);
|
||||
}
|
||||
|
||||
public List<Transaction>? Parse(IEnumerable<Entry> entries) {
|
||||
TransactionList transactions = new();
|
||||
TransactionParserContext context = new();
|
||||
|
Loading…
Reference in New Issue
Block a user