mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-15 05:04:15 +01:00
Rename ServiceManagerA.
This commit is contained in:
parent
02f2bf1bc1
commit
a6e08a1865
2 changed files with 4 additions and 6 deletions
|
|
@ -51,7 +51,7 @@ public class Penumbra : IDalamudPlugin
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_services = ServiceManagerA.CreateProvider(this, pluginInterface, Log);
|
_services = StaticServiceManager.CreateProvider(this, pluginInterface, Log);
|
||||||
Messager = _services.GetService<MessageService>();
|
Messager = _services.GetService<MessageService>();
|
||||||
_validityChecker = _services.GetService<ValidityChecker>();
|
_validityChecker = _services.GetService<ValidityChecker>();
|
||||||
_services.EnsureRequiredServices();
|
_services.EnsureRequiredServices();
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ using Dalamud.Plugin.Services;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using OtterGui;
|
using OtterGui;
|
||||||
using OtterGui.Classes;
|
using OtterGui.Classes;
|
||||||
using OtterGui.Compression;
|
|
||||||
using OtterGui.Log;
|
using OtterGui.Log;
|
||||||
using OtterGui.Services;
|
using OtterGui.Services;
|
||||||
using Penumbra.Api;
|
using Penumbra.Api;
|
||||||
|
|
@ -14,14 +13,12 @@ using Penumbra.Collections.Cache;
|
||||||
using Penumbra.Collections.Manager;
|
using Penumbra.Collections.Manager;
|
||||||
using Penumbra.GameData.Actors;
|
using Penumbra.GameData.Actors;
|
||||||
using Penumbra.Import.Models;
|
using Penumbra.Import.Models;
|
||||||
using Penumbra.GameData.DataContainers;
|
|
||||||
using Penumbra.GameData.Structs;
|
using Penumbra.GameData.Structs;
|
||||||
using Penumbra.Import.Textures;
|
using Penumbra.Import.Textures;
|
||||||
using Penumbra.Interop.PathResolving;
|
using Penumbra.Interop.PathResolving;
|
||||||
using Penumbra.Interop.ResourceLoading;
|
using Penumbra.Interop.ResourceLoading;
|
||||||
using Penumbra.Interop.ResourceTree;
|
using Penumbra.Interop.ResourceTree;
|
||||||
using Penumbra.Interop.Services;
|
using Penumbra.Interop.Services;
|
||||||
using Penumbra.Interop.Structs;
|
|
||||||
using Penumbra.Meta;
|
using Penumbra.Meta;
|
||||||
using Penumbra.Mods;
|
using Penumbra.Mods;
|
||||||
using Penumbra.Mods.Editor;
|
using Penumbra.Mods.Editor;
|
||||||
|
|
@ -38,7 +35,7 @@ using ResidentResourceManager = Penumbra.Interop.Services.ResidentResourceManage
|
||||||
|
|
||||||
namespace Penumbra.Services;
|
namespace Penumbra.Services;
|
||||||
|
|
||||||
public static class ServiceManagerA
|
public static class StaticServiceManager
|
||||||
{
|
{
|
||||||
public static ServiceManager CreateProvider(Penumbra penumbra, DalamudPluginInterface pi, Logger log)
|
public static ServiceManager CreateProvider(Penumbra penumbra, DalamudPluginInterface pi, Logger log)
|
||||||
{
|
{
|
||||||
|
|
@ -105,7 +102,8 @@ public static class ServiceManagerA
|
||||||
|
|
||||||
private static ServiceManager AddConfiguration(this ServiceManager services)
|
private static ServiceManager AddConfiguration(this ServiceManager services)
|
||||||
=> services.AddSingleton<Configuration>()
|
=> services.AddSingleton<Configuration>()
|
||||||
.AddSingleton<EphemeralConfig>();
|
.AddSingleton<EphemeralConfig>()
|
||||||
|
.AddSingleton<PredefinedTagManager>();
|
||||||
|
|
||||||
private static ServiceManager AddCollections(this ServiceManager services)
|
private static ServiceManager AddCollections(this ServiceManager services)
|
||||||
=> services.AddSingleton<CollectionStorage>()
|
=> services.AddSingleton<CollectionStorage>()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue