mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:27:21 +01:00
configuration rework
This commit is contained in:
parent
f389bed4e1
commit
7c97d1994c
50 changed files with 722 additions and 275 deletions
19
MareSynchronos/Mediator/WindowMediatorSubscriberBase.cs
Normal file
19
MareSynchronos/Mediator/WindowMediatorSubscriberBase.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using Dalamud.Interface.Windowing;
|
||||
using MareSynchronos.Utils;
|
||||
|
||||
namespace MareSynchronos.Mediator;
|
||||
|
||||
public abstract class WindowMediatorSubscriberBase : Window, IMediatorSubscriber
|
||||
{
|
||||
public MareMediator Mediator { get; }
|
||||
protected WindowMediatorSubscriberBase(MareMediator mediator, string name) : base(name)
|
||||
{
|
||||
Mediator = mediator;
|
||||
}
|
||||
|
||||
public virtual void Dispose()
|
||||
{
|
||||
Logger.Verbose($"Disposing {GetType()}");
|
||||
Mediator.UnsubscribeAll(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue