Class CubeCellType
Assembly: cs.temp.dll.dll
Syntax
public class CubeCellType : ICellType
Properties
Instance
Declaration
public static CubeCellType Instance { get; }
Property Value
Methods
FindPath(Vector3Int, Vector3Int)
Declaration
public IEnumerable<CellFaceDir> FindPath(Vector3Int startOffset, Vector3Int endOffset)
Parameters
Type |
Name |
Description |
Vector3Int |
startOffset |
|
Vector3Int |
endOffset |
|
Returns
GetCellCenter(Vector3Int, Vector3, Vector3)
Declaration
public Vector3 GetCellCenter(Vector3Int offset, Vector3 center, Vector3 tileSize)
Parameters
Type |
Name |
Description |
Vector3Int |
offset |
|
Vector3 |
center |
|
Vector3 |
tileSize |
|
Returns
GetFaceDirPairs()
Declaration
public IEnumerable<(CellFaceDir, CellFaceDir)> GetFaceDirPairs()
Returns
GetFaceDirs()
Declaration
public IEnumerable<CellFaceDir> GetFaceDirs()
Returns
GetIdentity()
Declaration
public CellRotation GetIdentity()
Returns
GetMatrix(CellRotation)
Declaration
public Matrix4x4 GetMatrix(CellRotation cellRotation)
Parameters
Returns
Type |
Description |
Matrix4x4 |
|
GetRotations(Boolean, Boolean, RotationGroupType)
Declaration
public IList<CellRotation> GetRotations(bool rotatable, bool reflectable, RotationGroupType rotationGroupType)
Parameters
Returns
Invert(CellFaceDir)
Declaration
public CellFaceDir Invert(CellFaceDir faceDir)
Parameters
Returns
Invert(CellRotation)
Declaration
public CellRotation Invert(CellRotation a)
Parameters
Returns
Multiply(CellRotation, CellRotation)
Declaration
public CellRotation Multiply(CellRotation a, CellRotation b)
Parameters
Returns
Realign(ISet<Vector3Int>, CellRotation)
Declaration
public IDictionary<Vector3Int, Vector3Int> Realign(ISet<Vector3Int> shape, CellRotation rotation)
Parameters
Type |
Name |
Description |
ISet<Vector3Int> |
shape |
|
CellRotation |
rotation |
|
Returns
Rotate(CellFaceDir, CellRotation)
Declaration
public CellFaceDir Rotate(CellFaceDir faceDir, CellRotation rotation)
Parameters
Returns
RotateBy(CellFaceDir, FaceDetails, CellRotation)
Declaration
public (CellFaceDir, FaceDetails) RotateBy(CellFaceDir faceDir, FaceDetails faceDetails, CellRotation rot)
Parameters
Returns
TryMove(Vector3Int, CellFaceDir, out Vector3Int)
Declaration
public bool TryMove(Vector3Int offset, CellFaceDir dir, out Vector3Int dest)
Parameters
Type |
Name |
Description |
Vector3Int |
offset |
|
CellFaceDir |
dir |
|
Vector3Int |
dest |
|
Returns
TryMoveByOffset(Vector3Int, Vector3Int, Vector3Int, CellRotation, out Vector3Int)
Declaration
public bool TryMoveByOffset(Vector3Int startCell, Vector3Int startOffset, Vector3Int destOffset, CellRotation rotation, out Vector3Int destCell)
Parameters
Type |
Name |
Description |
Vector3Int |
startCell |
|
Vector3Int |
startOffset |
|
Vector3Int |
destOffset |
|
CellRotation |
rotation |
|
Vector3Int |
destCell |
|
Returns
Implements