public DefaultGameObjectEntityActorFactory([NotNull] IGameObjectDataService gameObjectDataContainer, [NotNull] IReadonlyEntityGuidMappable <IEntityDataFieldContainer> entityDataMappable, [NotNull] IReadonlyEntityGuidMappable <InterestCollection> interestMappable) { GameObjectDataContainer = gameObjectDataContainer ?? throw new ArgumentNullException(nameof(gameObjectDataContainer)); EntityDataMappable = entityDataMappable ?? throw new ArgumentNullException(nameof(entityDataMappable)); InterestMappable = interestMappable ?? throw new ArgumentNullException(nameof(interestMappable)); }
public RequestStaticGameObjectSpawnsEventListener(IServerStartingEventSubscribable subscriptionService, [NotNull] IEventPublisher <IEntityCreationRequestedEventSubscribable, EntityCreationRequestedEventArgs> entityCreationRequester, [NotNull] IFactoryCreatable <NetworkEntityGuid, GameObjectInstanceModel> gameObjectGuidFactory, [NotNull] IGameObjectDataService gameObjectDataService, [NotNull] ILog logger) : base(subscriptionService) { EntityCreationRequester = entityCreationRequester ?? throw new ArgumentNullException(nameof(entityCreationRequester)); GameObjectGuidFactory = gameObjectGuidFactory ?? throw new ArgumentNullException(nameof(gameObjectGuidFactory)); GameObjectDataService = gameObjectDataService ?? throw new ArgumentNullException(nameof(gameObjectDataService)); Logger = logger ?? throw new ArgumentNullException(nameof(logger)); }