Skip to content

Commit 87be7cd

Browse files
authored
Merge branch 'dev' into BindingParser
2 parents 875648f + e9a0f4d commit 87be7cd

265 files changed

Lines changed: 9725 additions & 981 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Console/Program.cs

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
using EliteApi;
2-
using EliteAPI.Journals;
3-
using EliteAPI.Json;
4-
using EliteAPI.Bindings;
5-
using System.Xml.Linq;
1+
using EliteAPI;
62

7-
// var json = await File.ReadAllTextAsync("./EliteAPI.Tests/TestFiles/Status/StatusCombat.json");
8-
// var paths = JournalUtils.ToPaths(json);
3+
var api = new EliteDangerousApi();
94

10-
// foreach (var path in paths)
11-
// {
12-
// Console.WriteLine($"{path.Path}: {path.Value} ({path.Type})");
13-
// }
5+
api.OnAll(e =>
6+
{
7+
Console.WriteLine($"Event: {e.Event}");
8+
});
149

10+
api.OnJournalChanged(e =>
11+
{
12+
Console.WriteLine($"New journal file being watched: {e.FullName}");
13+
});
1514

15+
api.Start();
1616

17+
// api.OnAllJson(e =>
18+
// {
19+
// Console.WriteLine($"JSON Event: {e.eventName}");
20+
// });
1721

18-
BindingParser.Parse(@"C:\Users\thevi\Documents\WORK_SPACE\EliteAPI\EliteAPI.Tests\Custom.4.2.binds");
22+
await Task.Delay(-1);

EliteAPI.Tests/EventTriggeringTests.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
using EliteAPI.Journals;
2-
using EliteAPI.Json;
3-
using FluentAssertions;
4-
51
namespace EliteAPI.Tests;
62

73
public class EventTriggeringTests

0 commit comments

Comments
 (0)