mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-08-06 04:30:13 +08:00
refactor(CheatEnabler): adopt ModFeatureRegistry from UXAssist
This commit is contained in:
@@ -55,8 +55,9 @@ public static class ModFeatureRegistry
|
||||
if (!_discoveredAssemblies.Add(assembly)) return;
|
||||
|
||||
var staticTypes = Util.GetTypesFiltered(assembly, t =>
|
||||
t.IsClass && t.IsAbstract && t.IsSealed &&
|
||||
Attribute.IsDefined(t, typeof(ModFeatureAttribute)));
|
||||
t.IsClass && !t.IsInterface &&
|
||||
Attribute.IsDefined(t, typeof(ModFeatureAttribute)) &&
|
||||
!typeof(IModFeature).IsAssignableFrom(t));
|
||||
|
||||
foreach (var type in staticTypes.OrderBy(GetOrder))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user