Show / Hide Table of Contents

Class TownscaperGrid

A grid closely modelled after the grid used in Townscaper. See the corresponding tutorial.

Inheritance
System.Object
NestedModifier
PlanarLazyGrid
RelaxModifier
TownscaperGrid
Implements
IGrid
Inherited Members
RelaxModifier.Split(Cell)
RelaxModifier.Combine(Cell, Cell)
RelaxModifier.GetAdjacentChunks(Cell)
RelaxModifier.GetChildGrid(Cell)
RelaxModifier.GetCellTypes()
RelaxModifier.TryMove(Cell, CellDir, Cell, CellDir, Connection)
RelaxModifier.BoundBy(IBound)
RelaxModifier.Is2d
RelaxModifier.Is3d
RelaxModifier.IsPlanar
RelaxModifier.IsRepeating
RelaxModifier.IsOrientable
RelaxModifier.IsFinite
RelaxModifier.IsSingleCellType
RelaxModifier.CoordinateDimension
RelaxModifier.Unbounded
PlanarLazyGrid.Setup(Vector2, Vector2, Vector2, Vector2, Boolean, SquareBound, IEnumerable<ICellType>, ICachePolicy)
PlanarLazyGrid.ChunkOffset(Cell)
PlanarLazyGrid.MeshTranslation(Cell)
PlanarLazyGrid.GetDual()
PlanarLazyGrid.StrideX
PlanarLazyGrid.StrideY
PlanarLazyGrid.AabbBottomLeft
PlanarLazyGrid.AabbSize
NestedModifier.Setup(IGrid, IEnumerable<ICellType>, ICachePolicy)
NestedModifier.GetChildGridCached(Cell)
NestedModifier.GetCells()
NestedModifier.GetCellType(Cell)
NestedModifier.IsCellInGrid(Cell)
NestedModifier.TryMoveByOffset(Cell, Vector3Int, Vector3Int, CellRotation, Cell, CellRotation)
NestedModifier.ParallelTransport(IGrid, Cell, Cell, Cell, CellRotation, Cell, CellRotation)
NestedModifier.GetCellDirs(Cell)
NestedModifier.GetCellCorners(Cell)
NestedModifier.FindBasicPath(Cell, Cell)
NestedModifier.GetIndex(Cell)
NestedModifier.GetCellByIndex(Int32)
NestedModifier.GetBound()
NestedModifier.GetBound(IEnumerable<Cell>)
NestedModifier.IntersectBounds(IBound, IBound)
NestedModifier.UnionBounds(IBound, IBound)
NestedModifier.GetCellsInBounds(IBound)
NestedModifier.IsCellInBound(Cell, IBound)
NestedModifier.GetCellCenter(Cell)
NestedModifier.GetCellCorner(Cell, CellCorner)
NestedModifier.GetTRS(Cell)
NestedModifier.GetDeformation(Cell)
NestedModifier.GetPolygon(Cell, Vector3[], Matrix4x4)
NestedModifier.GetTriangleMesh(Cell)
NestedModifier.GetMeshData(Cell, MeshData, Matrix4x4)
NestedModifier.FindCell(Vector3, Cell)
NestedModifier.FindCell(Matrix4x4, Cell, CellRotation)
NestedModifier.GetCellsIntersectsApprox(Vector3, Vector3)
NestedModifier.Raycast(Vector3, Vector3, Single)
NestedModifier.FindGridSymmetry(ISet<Cell>, ISet<Cell>, Cell, CellRotation)
NestedModifier.TryApplySymmetry(GridSymmetry, IBound, IBound)
NestedModifier.TryApplySymmetry(GridSymmetry, Cell, Cell, CellRotation)
NestedModifier.ChunkGrid
NestedModifier.CachePolicy
NestedModifier.Unwrapped
NestedModifier.IndexCount
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public class TownscaperGrid : RelaxModifier, IGrid

Constructors

TownscaperGrid(Int32, Nullable<Int32>, Int32)

Declaration
public TownscaperGrid(int n, Nullable<int> seed = null, int relaxIterations = 10)
Parameters
Type Name Description
System.Int32 n
System.Nullable<System.Int32> seed
System.Int32 relaxIterations

Implements

IGrid
In This Article
Back to top Generated by DocFX