-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModule.cs
43 lines (35 loc) · 957 Bytes
/
Module.cs
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
using System.Collections.Generic;
namespace oftc_ircd_cs
{
public class Module
{
private static readonly List<Module> Modules = new List<Module>();
public Module(string name, string filename)
{
Name = name;
Filename = filename;
}
public string Name { get; private set; }
public string Filename { get; private set; }
public static ModuleSection Conf { get; set; }
public void Load()
{
}
public static void Init()
{
Conf = new ModuleSection();
Config.AddSection("module", Conf);
}
public static void Create(string name, string filename)
{
Modules.Add(new Module(name, filename));
}
public static void LoadAll()
{
foreach (Module module in Modules)
{
module.Load();
}
}
}
}