|
1 | 1 | //#define Maintenance
|
2 | 2 |
|
3 | 3 | #if Maintenance
|
| 4 | +using Celeste.Mod.TASHelper.Gameplay.AutoWatchEntity; |
4 | 5 | using Celeste.Mod.TASHelper.Utils;
|
5 | 6 | using Monocle;
|
6 | 7 |
|
7 | 8 | namespace Celeste.Mod.TASHelper.Maintenance;
|
8 |
| -internal static class MaintenaceRoutine { |
9 |
| - |
10 |
| - private static void CheckSpeedrunTool() { |
11 |
| - // Tiny SRT needs "sync fork" from SpeedrunTool |
12 |
| - // also, if a mod support SRT on its own, we need to create a corresponding support in TASHelper |
| 9 | +internal static class MaintenanceRoutine { |
| 10 | + |
| 11 | + [Initialize] |
| 12 | + |
| 13 | + private static void Initialize() { |
| 14 | + Logger.Log(LogLevel.Debug, "TAS Helper Maintenance", "This should be commented out when release!"); |
| 15 | + |
| 16 | + CheckTriggerInfoHelper(); |
13 | 17 | }
|
14 | 18 |
|
15 |
| - [Initialize] |
| 19 | + |
| 20 | + private static void CheckTriggerInfoHelper() { |
| 21 | + int count = 0; |
| 22 | + Logger.Log(LogLevel.Debug, $"TASHelper/{nameof(TriggerInfoHelper)}:NotImplementedTriggers", |
| 23 | + "As follows:\n" + string.Join("\n", Utils.ModUtils.GetTypes().Where(x => |
| 24 | + x.IsSubclassOf(typeof(Trigger)) |
| 25 | + && !TriggerInfoHelper.StaticInfoGetters.ContainsKey(x) |
| 26 | + && !TriggerInfoHelper.implementedMods.Contains(x.Assembly.GetName().Name) |
| 27 | + ).Select(x => { count++; return $"{count}). {x.Assembly.GetName().Name} @ {x.FullName}"; }))); |
| 28 | + } |
| 29 | + |
16 | 30 | private static void CheckSimplifiedTriggers() {
|
17 | 31 | // check if new triggers appear and need to be "simplified"
|
18 | 32 | List<Type> types = ModUtils.GetTypes().Where(x => x.IsSameOrSubclassOf(typeof(Trigger))).ToList();
|
19 | 33 | foreach (Type type in types) {
|
20 | 34 | Logger.Log("TAS Helper Maintenance", type.FullName);
|
21 | 35 | }
|
22 |
| - } |
| 36 | + } |
| 37 | + |
| 38 | + private static void CheckSpeedrunTool() { |
| 39 | + // Tiny SRT needs "sync fork" from SpeedrunTool |
| 40 | + // also, if a mod support SRT on its own, we need to create a corresponding support in TASHelper |
| 41 | + } |
23 | 42 |
|
24 | 43 | private static void CheckTasSync() {
|
25 | 44 | // run tases of the most popular maps
|
|
0 commit comments