Class RawSubstitutionTilingGrid
Inheritance
System.Object
RawSubstitutionTilingGrid
Assembly: Sylves.dll
Syntax
public class RawSubstitutionTilingGrid : BaseSubstitutionTilingGrid, IGrid
Constructors
RawSubstitutionTilingGrid(Prototile[], Func<Int32, String>, SubstitutionTilingBound)
Declaration
public RawSubstitutionTilingGrid(Prototile[] prototiles, Func<int, string> hierarchy, SubstitutionTilingBound bound = null)
Parameters
RawSubstitutionTilingGrid(Prototile[], String[], SubstitutionTilingBound)
Declaration
public RawSubstitutionTilingGrid(Prototile[] prototiles, string[] hierarchy, SubstitutionTilingBound bound = null)
Parameters
Properties
Unbounded
Declaration
public override IGrid Unbounded { get; }
Property Value
Overrides
Methods
BoundBy(IBound)
Declaration
public override IGrid BoundBy(IBound bound)
Parameters
Type |
Name |
Description |
IBound |
bound |
|
Returns
Overrides
CellToParentGrid(Cell, Int32)
Declaration
public Cell CellToParentGrid(Cell cell, int n = 1)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
System.Int32 |
n |
|
Returns
FindCell(Matrix4x4, out Cell, out CellRotation)
Declaration
public override bool FindCell(Matrix4x4 matrix, out Cell cell, out CellRotation rotation)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
FindCell(Vector3, out Cell)
Declaration
public override bool FindCell(Vector3 position, out Cell cell)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
GetCellCenter(Cell)
Declaration
public override Vector3 GetCellCenter(Cell cell)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
Returns
Overrides
GetCellsIntersectsApprox(Vector3, Vector3)
Declaration
public override IEnumerable<Cell> GetCellsIntersectsApprox(Vector3 min, Vector3 max)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Cell> |
|
Overrides
GetCellType(Cell)
Declaration
public override ICellType GetCellType(Cell cell)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
Returns
Overrides
GetPolygon(Cell, out Vector3[], out Matrix4x4)
Declaration
public override void GetPolygon(Cell cell, out Vector3[] vertices, out Matrix4x4 transform)
Parameters
Overrides
GetPrototile(Cell, Int32)
Declaration
protected override BaseSubstitutionTilingGrid.InternalPrototile GetPrototile(Cell cell, int height)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
System.Int32 |
height |
|
Returns
Overrides
GetTRS(Cell)
Declaration
public override TRS GetTRS(Cell cell)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
Returns
Overrides
IsCellInGrid(Cell)
Declaration
public override bool IsCellInGrid(Cell cell)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
ParentGrid(Int32)
Declaration
public RawSubstitutionTilingGrid ParentGrid(int n = 1)
Parameters
Type |
Name |
Description |
System.Int32 |
n |
|
Returns
Raycast(Vector3, Vector3, Single)
Declaration
public override IEnumerable<RaycastInfo> Raycast(Vector3 origin, Vector3 direction, float maxDistance = InfinityF)
Parameters
Type |
Name |
Description |
Vector3 |
origin |
|
Vector3 |
direction |
|
System.Single |
maxDistance |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<RaycastInfo> |
|
Overrides
TryMove(Cell, CellDir, out Cell, out CellDir, out Connection)
Declaration
public override bool TryMove(Cell cell, CellDir dir, out Cell dest, out CellDir inverseDir, out Connection connection)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Implements