Now that's a collection manager.

This commit is contained in:
Ottermandias 2023-04-06 15:47:33 +02:00
parent 5a817db069
commit f85fc46fb7
55 changed files with 2433 additions and 2317 deletions

View file

@ -5,7 +5,8 @@ using Penumbra.Mods;
using System.Collections.Generic;
using Penumbra.Services;
using Penumbra.String.Classes;
using Penumbra.Collections.Manager;
namespace Penumbra.Api;
public enum RedirectResult
@ -26,12 +27,12 @@ public class TempModManager : IDisposable
public TempModManager(CommunicatorService communicator)
{
_communicator = communicator;
_communicator.CollectionChange.Event += OnCollectionChange;
_communicator.CollectionChange.Subscribe(OnCollectionChange);
}
public void Dispose()
{
_communicator.CollectionChange.Event -= OnCollectionChange;
_communicator.CollectionChange.Unsubscribe(OnCollectionChange);
}
public IReadOnlyDictionary<ModCollection, List<TemporaryMod>> Mods