|
Corgi Engine v9.3
|
This class will fill a tilemap with the data generated by the combination of its layers More...
Public Types | |
| enum | GenerateMethods { Full , Perlin , PerlinGround , Random , RandomWalk , RandomWalkAvoider , RandomWalkGround , Path , Copy } |
| the possible methods that can be used to generate a random grid More... | |
Public Member Functions | |
| virtual void | Generate () |
| Generates and renders every layer in the data stack More... | |
Public Attributes | |
| Vector2Int | GridWidth = new Vector2Int(50,50) |
| The width of the grid, in cells. More... | |
| Vector2Int | GridHeight = new Vector2Int(50,50) |
| the height of the grid, in cells More... | |
| MMTilemapGeneratorLayerList | Layers |
| the list of layers that will be used to generate the tilemap More... | |
| int | GlobalSeed = 0 |
| a value between 0 and 1 that will be used by all layers as their random seed. If you generate another map using the same seed, it'll look the same More... | |
| bool | RandomizeGlobalSeed = true |
| whether or not to randomize the global seed every time a new map is generated More... | |
| bool | SlowRender = false |
| turning this to true will (at runtime only) draw the map progressively. This is really just for fun. More... | |
| float | SlowRenderDuration = 1f |
| the duration of the slow render, in seconds More... | |
| MMTweenType | SlowRenderTweenType = new MMTweenType(MMTween.MMTweenCurve.EaseInOutCubic) |
| the tween to use for the slow render More... | |
Protected Member Functions | |
| virtual void | GenerateLayer (MMTilemapGeneratorLayer layer) |
| Generates a layer grid, and renders it More... | |
| virtual void | RenderGrid (MMTilemapGeneratorLayer layer) |
| Renders the grid with the selected modes to the specified target tilemap More... | |
| virtual void | OnValidate () |
| Sets default values for all layers More... | |
Protected Attributes | |
| int[,] | _grid |
| int | _width |
| int | _height |
This class will fill a tilemap with the data generated by the combination of its layers
|
virtual |
Generates and renders every layer in the data stack
Reimplemented in MoreMountains.CorgiEngine.TilemapLevelGenerator.
|
protectedvirtual |
Generates a layer grid, and renders it
| layer |
|
protectedvirtual |
Sets default values for all layers
|
protectedvirtual |
Renders the grid with the selected modes to the specified target tilemap
| layer |
|
protected |
|
protected |
|
protected |
| int MoreMountains.Tools.MMTilemapGenerator.GlobalSeed = 0 |
a value between 0 and 1 that will be used by all layers as their random seed. If you generate another map using the same seed, it'll look the same
| Vector2Int MoreMountains.Tools.MMTilemapGenerator.GridHeight = new Vector2Int(50,50) |
the height of the grid, in cells
| Vector2Int MoreMountains.Tools.MMTilemapGenerator.GridWidth = new Vector2Int(50,50) |
The width of the grid, in cells.
| MMTilemapGeneratorLayerList MoreMountains.Tools.MMTilemapGenerator.Layers |
the list of layers that will be used to generate the tilemap
| bool MoreMountains.Tools.MMTilemapGenerator.RandomizeGlobalSeed = true |
whether or not to randomize the global seed every time a new map is generated
| bool MoreMountains.Tools.MMTilemapGenerator.SlowRender = false |
turning this to true will (at runtime only) draw the map progressively. This is really just for fun.
| float MoreMountains.Tools.MMTilemapGenerator.SlowRenderDuration = 1f |
the duration of the slow render, in seconds
| MMTweenType MoreMountains.Tools.MMTilemapGenerator.SlowRenderTweenType = new MMTweenType(MMTween.MMTweenCurve.EaseInOutCubic) |
the tween to use for the slow render