Inherited by MoreMountains.Tools.MMGridGeneratorFull, MoreMountains.Tools.MMGridGeneratorPath, MoreMountains.Tools.MMGridGeneratorPerlinNoise, MoreMountains.Tools.MMGridGeneratorPerlinNoiseGround, MoreMountains.Tools.MMGridGeneratorRandom, MoreMountains.Tools.MMGridGeneratorRandomWalk, MoreMountains.Tools.MMGridGeneratorRandomWalkAvoider, and MoreMountains.Tools.MMGridGeneratorRandomWalkGround.
|
static int[,] | PrepareGrid (ref int width, ref int height) |
| Prepares the grid array for use in the generate methods More...
|
|
static bool | SetGridCoordinate (int[,] grid, int x, int y, int value) |
| Carves or adds to the grid More...
|
|
static int[,] | TilemapToGrid (Tilemap tilemap, int width, int height) |
| Converts a tilemap's contents into a grid More...
|
|
static void | DebugGrid (int[,] grid, int width, int height) |
| Outputs the contents of a grid More...
|
|
static int | GetValueAtGridCoordinate (int[,] grid, int x, int y, int errorValue) |
| Returns the int value at the specified coordinate on a grid More...
|
|
static int[,] | InvertGrid (int[,] grid) |
| Inverts the contents of a grid (1 becomes 0, 0 becomes 1) More...
|
|
static int[,] | SmoothenGrid (int[,] grid) |
| Smoothens a grid to get rid of spikes / isolated points More...
|
|
static int[,] | ApplySafeSpots (int[,] grid, List< MMTilemapGeneratorLayer.MMTilemapGeneratorLayerSafeSpot > safeSpots) |
| Carves "safe spots" with 0s into the specfied grid More...
|
|
static int[,] | BindGrid (int[,] grid, bool top, bool bottom, bool left, bool right) |
| Adds bounds (walls made of 1) to a grid, on the selected sides More...
|
|
static int | GetAdjacentWallsCount (int[,] grid, int x, int y) |
| Returns the amount of adjacent walls for a specific coordinate More...
|
|
◆ ApplySafeSpots()
Carves "safe spots" with 0s into the specfied grid
- Parameters
-
- Returns
◆ BindGrid()
static int [,] MoreMountains.Tools.MMGridGenerator.BindGrid |
( |
int |
grid[,], |
|
|
bool |
top, |
|
|
bool |
bottom, |
|
|
bool |
left, |
|
|
bool |
right |
|
) |
| |
|
static |
Adds bounds (walls made of 1) to a grid, on the selected sides
- Parameters
-
grid | |
top | |
bottom | |
left | |
right | |
- Returns
◆ DebugGrid()
static void MoreMountains.Tools.MMGridGenerator.DebugGrid |
( |
int |
grid[,], |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
Outputs the contents of a grid
- Parameters
-
◆ GetAdjacentWallsCount()
static int MoreMountains.Tools.MMGridGenerator.GetAdjacentWallsCount |
( |
int |
grid[,], |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
static |
Returns the amount of adjacent walls for a specific coordinate
- Parameters
-
- Returns
◆ GetValueAtGridCoordinate()
static int MoreMountains.Tools.MMGridGenerator.GetValueAtGridCoordinate |
( |
int |
grid[,], |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
errorValue |
|
) |
| |
|
static |
Returns the int value at the specified coordinate on a grid
- Parameters
-
- Returns
◆ InvertGrid()
static int [,] MoreMountains.Tools.MMGridGenerator.InvertGrid |
( |
int |
grid[,] | ) |
|
|
static |
Inverts the contents of a grid (1 becomes 0, 0 becomes 1)
- Parameters
-
- Returns
◆ PrepareGrid()
static int [,] MoreMountains.Tools.MMGridGenerator.PrepareGrid |
( |
ref int |
width, |
|
|
ref int |
height |
|
) |
| |
|
static |
Prepares the grid array for use in the generate methods
- Parameters
-
- Returns
◆ SetGridCoordinate()
static bool MoreMountains.Tools.MMGridGenerator.SetGridCoordinate |
( |
int |
grid[,], |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
value |
|
) |
| |
|
static |
Carves or adds to the grid
- Parameters
-
- Returns
◆ SmoothenGrid()
static int [,] MoreMountains.Tools.MMGridGenerator.SmoothenGrid |
( |
int |
grid[,] | ) |
|
|
static |
Smoothens a grid to get rid of spikes / isolated points
- Parameters
-
- Returns
◆ TilemapToGrid()
static int [,] MoreMountains.Tools.MMGridGenerator.TilemapToGrid |
( |
Tilemap |
tilemap, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
Converts a tilemap's contents into a grid
- Parameters
-
- Returns
The documentation for this class was generated from the following file:
- F:/Github/Store/InventoryEngineStore/Assets/InventoryEngine/MMTools/Tools/MMProcedural/MMGridGenerators/MMGridGenerator.cs