示例#1
0
 public PlayerInventory(GameDataService gameDataService, IdGeneratorService idGeneratorService)
 {
     _gameDataService    = gameDataService;
     _idGeneratorService = idGeneratorService;
     _items         = new ConcurrentDictionary <ulong, PlayerItem>();
     _itemsToRemove = new ConcurrentStack <PlayerItem>();
 }
示例#2
0
 public DenyManager(IdGeneratorService idGeneratorService, DatabaseService databaseService)
 {
     _idGeneratorService = idGeneratorService;
     _databaseService    = databaseService;
     _deniesToRemove     = new ConcurrentStack <Deny>();
     _denies             = new ConcurrentDictionary <ulong, Deny>();
 }
 public LicenseManager(ILogger <LicenseManager> logger, IdGeneratorService idGeneratorService,
                       GameDataService gameDataService)
 {
     _logger             = logger;
     _idGeneratorService = idGeneratorService;
     _gameDataService    = gameDataService;
     _licenses           = new ConcurrentDictionary <ItemLicense, License>();
     _licensesToRemove   = new ConcurrentStack <License>();
 }
示例#4
0
 public Mailbox(ILogger <Mailbox> logger, DatabaseService databaseService, IdGeneratorService idGeneratorService,
                PlayerManager playerManager)
 {
     _logger             = logger;
     _databaseService    = databaseService;
     _idGeneratorService = idGeneratorService;
     _playerManager      = playerManager;
     _mails         = new ConcurrentDictionary <long, Mail>();
     _mailsToDelete = new ConcurrentStack <Mail>();
 }
示例#5
0
 public CharacterManager(ILogger <CharacterManager> logger, IdGeneratorService idGeneratorService,
                         GameDataService gameDataService, ILoggerFactory loggerFactory)
 {
     _logger             = logger;
     _idGeneratorService = idGeneratorService;
     _gameDataService    = gameDataService;
     _loggerFactory      = loggerFactory;
     _characters         = new Dictionary <byte, Character>();
     _charactersToRemove = new ConcurrentStack <Character>();
 }
示例#6
0
 public PlayerSettingManager(IdGeneratorService idGeneratorService)
 {
     _idGeneratorService = idGeneratorService;
     _settings           = new ConcurrentDictionary <string, Setting>();
 }