mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-14 15:14:15 +01:00
idk man
This commit is contained in:
parent
dc1e1c044a
commit
7495470dd5
14 changed files with 208 additions and 105 deletions
28
MareSynchronos/PlayerData/Factories/PairFactory.cs
Normal file
28
MareSynchronos/PlayerData/Factories/PairFactory.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
using MareSynchronos.PlayerData.Pairs;
|
||||
using MareSynchronos.Services.Mediator;
|
||||
using MareSynchronos.Services.ServerConfiguration;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace MareSynchronos.PlayerData.Factories;
|
||||
|
||||
public class PairFactory
|
||||
{
|
||||
private readonly CachedPlayerFactory _cachedPlayerFactory;
|
||||
private readonly ILoggerFactory _loggerFactory;
|
||||
private readonly MareMediator _mareMediator;
|
||||
private readonly ServerConfigurationManager _serverConfigurationManager;
|
||||
|
||||
public PairFactory(ILoggerFactory loggerFactory, CachedPlayerFactory cachedPlayerFactory,
|
||||
MareMediator mareMediator, ServerConfigurationManager serverConfigurationManager)
|
||||
{
|
||||
_loggerFactory = loggerFactory;
|
||||
_cachedPlayerFactory = cachedPlayerFactory;
|
||||
_mareMediator = mareMediator;
|
||||
_serverConfigurationManager = serverConfigurationManager;
|
||||
}
|
||||
|
||||
public Pair Create()
|
||||
{
|
||||
return new Pair(_loggerFactory.CreateLogger<Pair>(), _cachedPlayerFactory, _mareMediator, _serverConfigurationManager);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue