public InMemoryGameStateDataLayer( IGenericTypeFactory <GameStateData> gameStateFactory, IGenericTypeFactory <PlayerSpaceship> playerSpaceshipFactory) { GameStateFactory = gameStateFactory ?? throw new ArgumentNullException(nameof(gameStateFactory)); PlayerSpaceshipFactory = playerSpaceshipFactory ?? throw new ArgumentNullException(nameof(playerSpaceshipFactory)); }
public RandomMiniCityFactory( IGenericTypeFactory <ImageData> streetCenterMaker, IGenericTypeFactory <ImageData> streetHorizontalMaker, IGenericTypeFactory <ImageData> streetVerticalMaker, IGenericTypeFactory <ImageData> buildingMaker, IGenericTypeFactory <ImageData> buildingTopMaker, int chancePercentageToRecall, int chanceOfHorizontalOrVertical, int chancePercentageOfLeftRight, int chancePercentageOfUpDown) { this.StreetCenterMaker = streetCenterMaker; this.StreetHorizontalMaker = streetHorizontalMaker; this.StreetVerticalMaker = streetVerticalMaker; this.BuildingMaker = buildingMaker; this.BuildingTopMaker = buildingTopMaker; this.ChancePercentageToRecall = chancePercentageToRecall; this.ChanceOfHorizontalOrVertical = chanceOfHorizontalOrVertical; this.ChancePercentageOfLeftRight = chancePercentageOfLeftRight; this.ChancePercentageOfUpDown = chancePercentageOfUpDown; }
public DropItemIfHealthIsBelowMinMechanic( IGenericTypeFactory <Item> itemFactory, RectangleToSectorBoundaryTransformationService rectangleToSectorBoundary, BoundingBoxTransformationService boundingBoxTransformator) { if (itemFactory == null) { throw new ArgumentNullException(nameof(itemFactory)); } ItemFactory = itemFactory; if (rectangleToSectorBoundary == null) { throw new ArgumentNullException(nameof(rectangleToSectorBoundary)); } RectangleToSectorBoundary = rectangleToSectorBoundary; if (boundingBoxTransformator == null) { throw new ArgumentNullException(nameof(boundingBoxTransformator)); } BoundingBoxTransformator = boundingBoxTransformator; }
public UpdateGameStateDataState(IGenericTypeFactory <GameStateData> playerViewFactory) { PlayerViewFactory = playerViewFactory ?? throw new ArgumentNullException(nameof(playerViewFactory)); }
public ExampleDialogService(IGenericTypeFactory <ImageData> portraitGenerator) : base(nameof(ExampleDialogService)) { PortraitGenerator = portraitGenerator ?? throw new ArgumentNullException(nameof(portraitGenerator)); CreateDialogs(); }