-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathModule.cs
More file actions
58 lines (39 loc) · 1.66 KB
/
Module.cs
File metadata and controls
58 lines (39 loc) · 1.66 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using System;
using System.ComponentModel.Composition;
using System.Threading.Tasks;
using Blish_HUD;
using Blish_HUD.Modules;
using Blish_HUD.Modules.Managers;
using Blish_HUD.Settings;
using Microsoft.Xna.Framework;
namespace $safeprojectname$ {
[Export(typeof(Blish_HUD.Modules.Module))]
public class Module : Blish_HUD.Modules.Module {
private static readonly Logger Logger = Logger.GetLogger<Module>();
#region Service Managers
internal SettingsManager SettingsManager => this.ModuleParameters.SettingsManager;
internal ContentsManager ContentsManager => this.ModuleParameters.ContentsManager;
internal DirectoriesManager DirectoriesManager => this.ModuleParameters.DirectoriesManager;
internal Gw2ApiManager Gw2ApiManager => this.ModuleParameters.Gw2ApiManager;
#endregion
[ImportingConstructor]
public Module([Import("ModuleParameters")] ModuleParameters moduleParameters) : base(moduleParameters) { }
protected override void DefineSettings(SettingCollection settings) {
}
protected override void Initialize() {
}
protected override async Task LoadAsync() {
}
protected override void OnModuleLoaded(EventArgs e) {
// Base handler must be called
base.OnModuleLoaded(e);
}
protected override void Update(GameTime gameTime) {
}
/// <inheritdoc />
protected override void Unload() {
// Unload here
// All static members must be manually unset
}
}
}