forked from sailro/EscapeFromTarkov-Trainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Context.cs
15 lines (12 loc) · 614 Bytes
/
Context.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.IO;
using System.Linq;
using EFT.Trainer.Features;
namespace EFT.Trainer;
internal static class Context
{
public static string UserPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Escape from Tarkov");
public static string ConfigFile => Path.Combine(UserPath, "trainer.ini");
public static Lazy<Feature[]> Features => new(() => [.. FeatureFactory.GetAllFeatures().OrderBy(f => f.Name)]);
public static Lazy<ToggleFeature[]> ToggleableFeatures => new(() => [.. FeatureFactory.GetAllToggleableFeatures().OrderByDescending(f => f.Name)]);
}