Track and display last known player names automatically
This commit is contained in:
		| @@ -1,4 +1,5 @@ | ||||
| using MareSynchronos.PlayerData.Pairs; | ||||
| using MareSynchronos.MareConfiguration; | ||||
| using MareSynchronos.PlayerData.Pairs; | ||||
| using MareSynchronos.Services.Mediator; | ||||
| using MareSynchronos.Services.ServerConfiguration; | ||||
| using Microsoft.Extensions.Logging; | ||||
| @@ -10,19 +11,21 @@ public class PairFactory | ||||
|     private readonly PairHandlerFactory _cachedPlayerFactory; | ||||
|     private readonly ILoggerFactory _loggerFactory; | ||||
|     private readonly MareMediator _mareMediator; | ||||
|     private readonly MareConfigService _mareConfig; | ||||
|     private readonly ServerConfigurationManager _serverConfigurationManager; | ||||
|  | ||||
|     public PairFactory(ILoggerFactory loggerFactory, PairHandlerFactory cachedPlayerFactory, | ||||
|         MareMediator mareMediator, ServerConfigurationManager serverConfigurationManager) | ||||
|         MareMediator mareMediator, MareConfigService mareConfig, ServerConfigurationManager serverConfigurationManager) | ||||
|     { | ||||
|         _loggerFactory = loggerFactory; | ||||
|         _cachedPlayerFactory = cachedPlayerFactory; | ||||
|         _mareMediator = mareMediator; | ||||
|         _mareConfig = mareConfig; | ||||
|         _serverConfigurationManager = serverConfigurationManager; | ||||
|     } | ||||
|  | ||||
|     public Pair Create() | ||||
|     { | ||||
|         return new Pair(_loggerFactory.CreateLogger<Pair>(), _cachedPlayerFactory, _mareMediator, _serverConfigurationManager); | ||||
|         return new Pair(_loggerFactory.CreateLogger<Pair>(), _cachedPlayerFactory, _mareMediator, _mareConfig, _serverConfigurationManager); | ||||
|     } | ||||
| } | ||||
| @@ -5,6 +5,7 @@ using MareSynchronos.PlayerData.Handlers; | ||||
| using MareSynchronos.PlayerData.Pairs; | ||||
| using MareSynchronos.Services; | ||||
| using MareSynchronos.Services.Mediator; | ||||
| using MareSynchronos.Services.ServerConfiguration; | ||||
| using Microsoft.Extensions.Logging; | ||||
|  | ||||
| namespace MareSynchronos.PlayerData.Factories; | ||||
| @@ -20,11 +21,12 @@ public class PairHandlerFactory | ||||
|     private readonly ILoggerFactory _loggerFactory; | ||||
|     private readonly MareMediator _mareMediator; | ||||
|     private readonly PluginWarningNotificationService _pluginWarningNotificationManager; | ||||
|     private readonly ServerConfigurationManager _serverConfigurationManager; | ||||
|  | ||||
|     public PairHandlerFactory(ILoggerFactory loggerFactory, GameObjectHandlerFactory gameObjectHandlerFactory, IpcManager ipcManager, | ||||
|         FileDownloadManagerFactory fileDownloadManagerFactory, DalamudUtilService dalamudUtilService, | ||||
|         PluginWarningNotificationService pluginWarningNotificationManager, CancellationToken dalamudLifetime, | ||||
|         FileCacheManager fileCacheManager, MareMediator mareMediator) | ||||
|         PluginWarningNotificationService pluginWarningNotificationManager, ServerConfigurationManager serverConfigurationManager, | ||||
|         CancellationToken dalamudLifetime, FileCacheManager fileCacheManager, MareMediator mareMediator) | ||||
|     { | ||||
|         _loggerFactory = loggerFactory; | ||||
|         _gameObjectHandlerFactory = gameObjectHandlerFactory; | ||||
| @@ -32,6 +34,7 @@ public class PairHandlerFactory | ||||
|         _fileDownloadManagerFactory = fileDownloadManagerFactory; | ||||
|         _dalamudUtilService = dalamudUtilService; | ||||
|         _pluginWarningNotificationManager = pluginWarningNotificationManager; | ||||
|         _serverConfigurationManager = serverConfigurationManager; | ||||
|         _dalamudLifetimeToken = dalamudLifetime; | ||||
|         _fileCacheManager = fileCacheManager; | ||||
|         _mareMediator = mareMediator; | ||||
| @@ -40,7 +43,7 @@ public class PairHandlerFactory | ||||
|     public PairHandler Create(OnlineUserIdentDto onlineUserIdentDto) | ||||
|     { | ||||
|         return new PairHandler(_loggerFactory.CreateLogger<PairHandler>(), onlineUserIdentDto, _gameObjectHandlerFactory, | ||||
|             _ipcManager, _fileDownloadManagerFactory.Create(), _pluginWarningNotificationManager, _dalamudUtilService, _dalamudLifetimeToken, | ||||
|             _fileCacheManager, _mareMediator); | ||||
|             _ipcManager, _fileDownloadManagerFactory.Create(), _pluginWarningNotificationManager, _serverConfigurationManager, _dalamudUtilService, | ||||
|             _dalamudLifetimeToken, _fileCacheManager, _mareMediator); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Loporrit
					Loporrit