Ejemplo n.º 1
0
 public InitializeSpawnInformationEventListener(IServerStartingEventSubscribable subscriptionService,
                                                [NotNull] PlayerSpawnPointQueue spawnStrategyQueue,
                                                [NotNull] ILog logger,
                                                [NotNull] IPlayerSpawnPointDataServiceClient playerSpawnContentDataClient,
                                                [NotNull] WorldConfiguration worldConfiguration)
     : base(subscriptionService)
 {
     SpawnStrategyQueue           = spawnStrategyQueue ?? throw new ArgumentNullException(nameof(spawnStrategyQueue));
     Logger                       = logger ?? throw new ArgumentNullException(nameof(logger));
     PlayerSpawnContentDataClient = playerSpawnContentDataClient ?? throw new ArgumentNullException(nameof(playerSpawnContentDataClient));
     WorldConfiguration           = worldConfiguration ?? throw new ArgumentNullException(nameof(worldConfiguration));
 }
Ejemplo n.º 2
0
 public RegisterZoneServerOnlineEventListener(IServerStartedEventSubscribable subscriptionService,
                                              [NotNull] IZoneRegistryService zoneRegistryService,
                                              [NotNull] WorldConfiguration worldConfig,
                                              [NotNull] NetworkAddressInfo addressInfo,
                                              [NotNull] ILog logger,
                                              [NotNull] IZoneRegistryServiceQueueable zoneRegisterQueueable)
     : base(subscriptionService)
 {
     ZoneRegistryService = zoneRegistryService ?? throw new ArgumentNullException(nameof(zoneRegistryService));
     WorldConfig         = worldConfig ?? throw new ArgumentNullException(nameof(worldConfig));
     AddressInfo         = addressInfo ?? throw new ArgumentNullException(nameof(addressInfo));
     Logger = logger ?? throw new ArgumentNullException(nameof(logger));
     ZoneRegisterQueueable = zoneRegisterQueueable ?? throw new ArgumentNullException(nameof(zoneRegisterQueueable));
 }
Ejemplo n.º 3
0
 public RequestStaticCreatureSpawnsEventListener(IServerStartingEventSubscribable subscriptionService,
                                                 [NotNull] ICreatureDataServiceClient creatureContentDataClient,
                                                 [NotNull] IEventPublisher <IEntityCreationRequestedEventSubscribable, EntityCreationRequestedEventArgs> entityCreationRequester,
                                                 [NotNull] IFactoryCreatable <NetworkEntityGuid, CreatureInstanceModel> creatureGuidFactory,
                                                 [NotNull] ILog logger, [NotNull] IEntityGuidMappable <CreatureTemplateModel> creatureTemplateMappable,
                                                 [NotNull] IEntityGuidMappable <CreatureInstanceModel> creatureInstanceMappable, WorldConfiguration worldConfiguration)
     : base(subscriptionService)
 {
     CreatureContentDataClient = creatureContentDataClient ?? throw new ArgumentNullException(nameof(creatureContentDataClient));
     EntityCreationRequester   = entityCreationRequester ?? throw new ArgumentNullException(nameof(entityCreationRequester));
     CreatureGuidFactory       = creatureGuidFactory ?? throw new ArgumentNullException(nameof(creatureGuidFactory));
     Logger = logger ?? throw new ArgumentNullException(nameof(logger));
     CreatureTemplateMappable = creatureTemplateMappable ?? throw new ArgumentNullException(nameof(creatureTemplateMappable));
     CreatureInstanceMappable = creatureInstanceMappable ?? throw new ArgumentNullException(nameof(creatureInstanceMappable));
     WorldConfiguration       = worldConfiguration;
 }
Ejemplo n.º 4
0
        public RemoteGameObjectDataService(
            [NotNull] IEntityGuidMappable <GameObjectTemplateModel> gameObjectTemplateMappable,
            [NotNull] IEntityGuidMappable <GameObjectInstanceModel> gameObjectInstanceMappable,
            [NotNull] IGameObjectDataServiceClient dataServiceClient,
            [NotNull] WorldConfiguration worldConfiguration,
            [NotNull] ILog logger,
            [NotNull] IGameObjectBehaviourDataServiceClient <WorldTeleporterInstanceModel> teleporterDataServiceClient,
            [NotNull] IGameObjectBehaviourDataServiceClient <AvatarPedestalInstanceModel> avatarPedestalDataServiceClient)
        {
            _GameObjectTemplateMappable = gameObjectTemplateMappable ?? throw new ArgumentNullException(nameof(gameObjectTemplateMappable));
            _GameObjectInstanceMappable = gameObjectInstanceMappable ?? throw new ArgumentNullException(nameof(gameObjectInstanceMappable));

            DataServiceClient               = dataServiceClient ?? throw new ArgumentNullException(nameof(dataServiceClient));
            WorldConfiguration              = worldConfiguration ?? throw new ArgumentNullException(nameof(worldConfiguration));
            Logger                          = logger ?? throw new ArgumentNullException(nameof(logger));
            TeleporterDataServiceClient     = teleporterDataServiceClient ?? throw new ArgumentNullException(nameof(teleporterDataServiceClient));
            AvatarPedestalDataServiceClient = avatarPedestalDataServiceClient;

            BehaviourInstanceDataMappable = new Dictionary <Type, IEntityGuidMappable <object> >(5);
        }
Ejemplo n.º 5
0
 public ZoneServerRootConfiguration([NotNull] WorldConfiguration worldConfig, [NotNull] NetworkConfiguration networkConfig)
 {
     WorldConfig   = worldConfig ?? throw new ArgumentNullException(nameof(worldConfig));
     NetworkConfig = networkConfig ?? throw new ArgumentNullException(nameof(networkConfig));
 }