allow manual loading of JSON

This commit is contained in:
2022-01-23 15:52:19 +01:00
parent d19bef33d2
commit 0fdd51a3ec
6 changed files with 116 additions and 6 deletions

View File

@@ -50,13 +50,16 @@ namespace EliteBGS.BGS {
where file.NormalisedTimestamp >= start && file.NormalisedTimestamp <= end
select file.Entries
;
var relevant = from log in entries.SelectMany(array => array)
where IsRelevant(log)
select log
;
Scan(entries.SelectMany(x => x).ToList());
}
public void Scan(List<Entry> entries) {
if (entries.Count <= 0) {
return;
}
List<Entry> relevant = entries.Where(x => IsRelevant(x)).ToList();
Dictionary<int, MissionAcceptedEntry> acceptedMissions = new Dictionary<int, MissionAcceptedEntry>();
Dictionary<string, int> buyCost = new Dictionary<string, int>();
string current_system = null;