Table of Contents

Class MapShapeGenerator

Namespace
Game.Core.Map.Generation
Assembly
SPZGameAssembly.dll
public class MapShapeGenerator
Inheritance
object
MapShapeGenerator
Extension Methods

Constructors

MapShapeGenerator(MapGenerationParameters, IShapesConfiguration, IShapeIdManager, IShapeColorScheme)

public MapShapeGenerator(MapGenerationParameters mapGenerationParameters, IShapesConfiguration shapesConfiguration, IShapeIdManager shapeIdManager, IShapeColorScheme colorScheme)

Parameters

mapGenerationParameters MapGenerationParameters
shapesConfiguration IShapesConfiguration
shapeIdManager IShapeIdManager
colorScheme IShapeColorScheme

Methods

GenerateClusterShape(ConsistentRandom, MapShapeGenerationType)

public ShapeId GenerateClusterShape(ConsistentRandom rng, MapShapeGenerationType type)

Parameters

rng ConsistentRandom
type MapShapeGenerationType

Returns

ShapeId

GenerateClusterShape(ConsistentRandom, int)

public ShapeId GenerateClusterShape(ConsistentRandom rng, int distanceToOrigin)

Parameters

rng ConsistentRandom
distanceToOrigin int

Returns

ShapeId