Compare commits
2 Commits
6101686a33
...
4495177f02
| Author | SHA1 | Date | |
|---|---|---|---|
| 4495177f02 | |||
| 14bb5c14f7 |
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>UmbraSync</AssemblyName>
|
<AssemblyName>UmbraSync</AssemblyName>
|
||||||
<RootNamespace>UmbraSync</RootNamespace>
|
<RootNamespace>UmbraSync</RootNamespace>
|
||||||
<Version>0.0.3</Version>
|
<Version>0.0.6</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,60 +1,33 @@
|
|||||||
using MareSynchronos.FileCache;
|
using MareSynchronos.API.Data;
|
||||||
using MareSynchronos.Interop.Ipc;
|
using MareSynchronos.API.Dto.Group;
|
||||||
using MareSynchronos.MareConfiguration;
|
using MareSynchronos.MareConfiguration;
|
||||||
using MareSynchronos.PlayerData.Handlers;
|
|
||||||
using MareSynchronos.PlayerData.Pairs;
|
using MareSynchronos.PlayerData.Pairs;
|
||||||
using MareSynchronos.Services;
|
|
||||||
using MareSynchronos.Services.Mediator;
|
using MareSynchronos.Services.Mediator;
|
||||||
using MareSynchronos.Services.ServerConfiguration;
|
using MareSynchronos.Services.ServerConfiguration;
|
||||||
using Microsoft.Extensions.Hosting;
|
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace MareSynchronos.PlayerData.Factories;
|
namespace MareSynchronos.PlayerData.Factories;
|
||||||
|
|
||||||
public class PairHandlerFactory
|
public class PairFactory
|
||||||
{
|
{
|
||||||
private readonly MareConfigService _configService;
|
private readonly PairHandlerFactory _cachedPlayerFactory;
|
||||||
private readonly DalamudUtilService _dalamudUtilService;
|
|
||||||
private readonly FileCacheManager _fileCacheManager;
|
|
||||||
private readonly FileDownloadManagerFactory _fileDownloadManagerFactory;
|
|
||||||
private readonly GameObjectHandlerFactory _gameObjectHandlerFactory;
|
|
||||||
private readonly IHostApplicationLifetime _hostApplicationLifetime;
|
|
||||||
private readonly IpcManager _ipcManager;
|
|
||||||
private readonly ILoggerFactory _loggerFactory;
|
private readonly ILoggerFactory _loggerFactory;
|
||||||
private readonly MareMediator _mareMediator;
|
private readonly MareMediator _mareMediator;
|
||||||
private readonly PlayerPerformanceService _playerPerformanceService;
|
private readonly MareConfigService _mareConfig;
|
||||||
private readonly ServerConfigurationManager _serverConfigManager;
|
private readonly ServerConfigurationManager _serverConfigurationManager;
|
||||||
private readonly PluginWarningNotificationService _pluginWarningNotificationManager;
|
|
||||||
private readonly PairAnalyzerFactory _pairAnalyzerFactory;
|
|
||||||
private readonly VisibilityService _visibilityService;
|
|
||||||
|
|
||||||
public PairHandlerFactory(ILoggerFactory loggerFactory, GameObjectHandlerFactory gameObjectHandlerFactory, IpcManager ipcManager,
|
public PairFactory(ILoggerFactory loggerFactory, PairHandlerFactory cachedPlayerFactory,
|
||||||
FileDownloadManagerFactory fileDownloadManagerFactory, DalamudUtilService dalamudUtilService,
|
MareMediator mareMediator, MareConfigService mareConfig, ServerConfigurationManager serverConfigurationManager)
|
||||||
PluginWarningNotificationService pluginWarningNotificationManager, IHostApplicationLifetime hostApplicationLifetime,
|
|
||||||
FileCacheManager fileCacheManager, MareMediator mareMediator, PlayerPerformanceService playerPerformanceService,
|
|
||||||
ServerConfigurationManager serverConfigManager, PairAnalyzerFactory pairAnalyzerFactory,
|
|
||||||
MareConfigService configService, VisibilityService visibilityService)
|
|
||||||
{
|
{
|
||||||
_loggerFactory = loggerFactory;
|
_loggerFactory = loggerFactory;
|
||||||
_gameObjectHandlerFactory = gameObjectHandlerFactory;
|
_cachedPlayerFactory = cachedPlayerFactory;
|
||||||
_ipcManager = ipcManager;
|
|
||||||
_fileDownloadManagerFactory = fileDownloadManagerFactory;
|
|
||||||
_dalamudUtilService = dalamudUtilService;
|
|
||||||
_pluginWarningNotificationManager = pluginWarningNotificationManager;
|
|
||||||
_hostApplicationLifetime = hostApplicationLifetime;
|
|
||||||
_fileCacheManager = fileCacheManager;
|
|
||||||
_mareMediator = mareMediator;
|
_mareMediator = mareMediator;
|
||||||
_playerPerformanceService = playerPerformanceService;
|
_mareConfig = mareConfig;
|
||||||
_serverConfigManager = serverConfigManager;
|
_serverConfigurationManager = serverConfigurationManager;
|
||||||
_pairAnalyzerFactory = pairAnalyzerFactory;
|
|
||||||
_configService = configService;
|
|
||||||
_visibilityService = visibilityService;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public PairHandler Create(Pair pair)
|
public Pair Create(UserData userData)
|
||||||
{
|
{
|
||||||
return new PairHandler(_loggerFactory.CreateLogger<PairHandler>(), pair, _pairAnalyzerFactory.Create(pair), _gameObjectHandlerFactory,
|
return new Pair(_loggerFactory.CreateLogger<Pair>(), userData, _cachedPlayerFactory, _mareMediator, _mareConfig, _serverConfigurationManager);
|
||||||
_ipcManager, _fileDownloadManagerFactory.Create(), _pluginWarningNotificationManager, _dalamudUtilService, _hostApplicationLifetime,
|
|
||||||
_fileCacheManager, _mareMediator, _playerPerformanceService, _serverConfigManager, _configService, _visibilityService);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -29,7 +29,7 @@ using MareSynchronos.Services.CharaData;
|
|||||||
|
|
||||||
using MareSynchronos;
|
using MareSynchronos;
|
||||||
|
|
||||||
namespace Umbra;
|
namespace Snowcloak;
|
||||||
|
|
||||||
public sealed class Plugin : IDalamudPlugin
|
public sealed class Plugin : IDalamudPlugin
|
||||||
{
|
{
|
||||||
@@ -40,7 +40,7 @@ public sealed class Plugin : IDalamudPlugin
|
|||||||
#pragma warning restore CA2211, CS8618, MA0069, S1104, S2223
|
#pragma warning restore CA2211, CS8618, MA0069, S1104, S2223
|
||||||
public Action<IFramework>? RealOnFrameworkUpdate { get; set; }
|
public Action<IFramework>? RealOnFrameworkUpdate { get; set; }
|
||||||
|
|
||||||
// Proxy function in the UmbraSync namespace to avoid confusion in /xlstats
|
// Proxy function in the SnowcloakSync namespace to avoid confusion in /xlstats
|
||||||
public void OnFrameworkUpdate(IFramework framework)
|
public void OnFrameworkUpdate(IFramework framework)
|
||||||
{
|
{
|
||||||
RealOnFrameworkUpdate?.Invoke(framework);
|
RealOnFrameworkUpdate?.Invoke(framework);
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"Tags": [
|
"Tags": [
|
||||||
"customization"
|
"customization"
|
||||||
],
|
],
|
||||||
"IconUrl": "",
|
"IconUrl": "https://repo.umbra-sync.net/logo.png",
|
||||||
"RepoUrl": "",
|
"RepoUrl": "https://repo.umbra-sync.net/plugin.json",
|
||||||
"CanUnloadAsync": true
|
"CanUnloadAsync": true
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
MareSynchronos/images/logo.png
Normal file
BIN
MareSynchronos/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 928 KiB |
Reference in New Issue
Block a user