1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

add page list to manager so we can inject pages into the layout view

This commit is contained in:
RaidMax
2018-08-03 17:10:20 -05:00
parent c44ff8e46a
commit 7956a8cfba
9 changed files with 80 additions and 5 deletions

View File

@ -46,6 +46,7 @@ namespace IW4MAdmin.Application
EventApi Api;
GameEventHandler Handler;
ManualResetEventSlim OnEvent;
readonly IPageList PageList;
private ApplicationManager()
{
@ -63,6 +64,7 @@ namespace IW4MAdmin.Application
ConfigHandler = new BaseConfigurationHandler<ApplicationConfiguration>("IW4MAdminSettings");
StartTime = DateTime.UtcNow;
OnEvent = new ManualResetEventSlim();
PageList = new PageList();
}
public IList<Server> GetServers()
@ -519,5 +521,7 @@ namespace IW4MAdmin.Application
}
public IList<Assembly> GetPluginAssemblies() => SharedLibraryCore.Plugins.PluginImporter.PluginAssemblies;
public IPageList GetPageList() => PageList;
}
}