mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:07:22 +01:00
add events
This commit is contained in:
parent
532d88ed4c
commit
01ac0e476b
12 changed files with 448 additions and 3 deletions
|
|
@ -89,6 +89,8 @@ public class MarePlugin : MediatorSubscriberBase, IHostedService
|
|||
{
|
||||
var version = Assembly.GetExecutingAssembly().GetName().Version!;
|
||||
Logger.LogInformation("Launching {name} {major}.{minor}.{build}", "Mare Synchronos", version.Major, version.Minor, version.Build);
|
||||
Mediator.Publish(new EventMessage(new Services.Events.Event(nameof(MarePlugin), Services.Events.EventSeverity.Informational,
|
||||
$"Starting Mare Synchronos {version.Major}.{version.Minor}.{version.Build}")));
|
||||
|
||||
Mediator.Subscribe<SwitchToMainUiMessage>(this, (msg) => _ = Task.Run(WaitForPlayerAndLaunchCharacterManager));
|
||||
Mediator.Subscribe<DalamudLoginMessage>(this, (_) => DalamudUtilOnLogIn());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue