Class MapShapeGenerator
- Namespace
- Game.Core.Map.Generation
- Assembly
- SPZGameAssembly.dll
public class MapShapeGenerator
- Inheritance
-
objectMapShapeGenerator
- Extension Methods
Constructors
MapShapeGenerator(MapGenerationParameters, IShapesConfiguration, IShapeIdManager, IShapeColorScheme)
public MapShapeGenerator(MapGenerationParameters mapGenerationParameters, IShapesConfiguration shapesConfiguration, IShapeIdManager shapeIdManager, IShapeColorScheme colorScheme)
Parameters
mapGenerationParametersMapGenerationParametersshapesConfigurationIShapesConfigurationshapeIdManagerIShapeIdManagercolorSchemeIShapeColorScheme
Methods
GenerateClusterShape(ConsistentRandom, MapShapeGenerationType)
public ShapeId GenerateClusterShape(ConsistentRandom rng, MapShapeGenerationType type)
Parameters
rngConsistentRandomtypeMapShapeGenerationType
Returns
GenerateClusterShape(ConsistentRandom, int)
public ShapeId GenerateClusterShape(ConsistentRandom rng, int distanceToOrigin)
Parameters
rngConsistentRandomdistanceToOriginint