Пример #1
0
 public CharacterCreationMessageHandler(CharacterService characterService, AuthenticationService authenticationService, ILoggerFactory loggerFactory, IPacketWriterPool packetWriterPool, RpConfig rpConfig)
 {
     _CharacterService      = characterService ?? throw new ArgumentNullException(nameof(characterService));
     _AuthenticationService = authenticationService ?? throw new ArgumentNullException(nameof(authenticationService));
     _PacketWriterPool      = packetWriterPool ?? throw new ArgumentNullException(nameof(packetWriterPool));
     _RpConfig = rpConfig ?? throw new ArgumentNullException(nameof(rpConfig));
     _Log      = loggerFactory?.GetLogger(GetType()) ?? throw new ArgumentNullException(nameof(loggerFactory));
 }
Пример #2
0
 public DefaultSpawnPointProvider(WorldList worldList, RpConfig config)
 {
     _WorldList = worldList ?? throw new ArgumentNullException(nameof(worldList));
     _Config    = config ?? throw new ArgumentNullException(nameof(config));
 }
Пример #3
0
 public AddCharacterOwnerShipTransaction(ICharacterManagementContextFactory contextFactory, ILoggerFactory loggerFactory, RpConfig rpConfig)
 {
     _ContextFactory = contextFactory ?? throw new ArgumentNullException(nameof(contextFactory));
     _RpConfig       = rpConfig ?? throw new ArgumentNullException(nameof(rpConfig));
     _Log            = loggerFactory?.GetLogger(GetType()) ?? throw new ArgumentNullException(nameof(loggerFactory));
 }