forked from antonpup/Aurora
-
-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathPluginMain.cs
More file actions
42 lines (33 loc) · 1.29 KB
/
PluginMain.cs
File metadata and controls
42 lines (33 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using AuroraRgb.EffectsEngine;
using AuroraRgb.Profiles;
using AuroraRgb.Settings;
using MemoryAccessProfiles.Profiles.Borderlands2;
using MemoryAccessProfiles.Profiles.CloneHero;
using MemoryAccessProfiles.Profiles.Dishonored;
using MemoryAccessProfiles.Profiles.ResidentEvil2;
namespace MemoryAccessProfiles;
public class PluginMain : IPlugin
{
public string ID { get; private set; } = "MemoryAccessProfiles";
public string Title { get; private set; } = "Memory Access Profiles";
public string Author { get; private set; } = "Aurora-RGB";
public Version Version { get; private set; } = new Version(0, 1);
private IPluginHost pluginHost;
public IPluginHost PluginHost { get { return pluginHost; }
set {
pluginHost = value;
//Add stuff to the plugin manager
}
}
private List<Application> profiles = new List<Application>()
{
new Borderlands2(), new CloneHero(), new Dishonored(), new ResidentEvil2()
};
public void ProcessManager(object manager)
{
if (manager is not LightingStateManager lightingStateManager) return;
// Register all Application types in the assembly
foreach (var inst in profiles)
lightingStateManager.ApplicationManager.RegisterEvent(inst);
}
}