Show / Hide Table of Contents

Class FaceDetails

Records the painted colors for a single face of one cube in a TesseraTile

Inheritance
Object
FaceDetails
Implements
IEnumerable<ValueTuple<Vector2Int, Int32>>
IEnumerable
Namespace: Tessera
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class FaceDetails : IEnumerable<(Vector2Int, int)>, IEnumerable

Fields

bottom

Declaration
public int bottom
Field Value
Type Description
Int32

bottomLeft

Declaration
public int bottomLeft
Field Value
Type Description
Int32

bottomRight

Declaration
public int bottomRight
Field Value
Type Description
Int32

center

Declaration
public int center
Field Value
Type Description
Int32

left

Declaration
public int left
Field Value
Type Description
Int32

right

Declaration
public int right
Field Value
Type Description
Int32

top

Declaration
public int top
Field Value
Type Description
Int32

topLeft

Declaration
public int topLeft
Field Value
Type Description
Int32

topRight

Declaration
public int topRight
Field Value
Type Description
Int32

Properties

Item[Vector2Int]

Declaration
public int this[Vector2Int p] { get; set; }
Parameters
Type Name Description
Vector2Int p
Property Value
Type Description
Int32

Methods

GetEnumerator()

Returns an enumerator of length 9 with the position and color index

Declaration
public IEnumerator<(Vector2Int, int)> GetEnumerator()
Returns
Type Description
IEnumerator<ValueTuple<Vector2Int, Int32>>

RotateBy(Rotation)

Returns a new FaceDetails with the paint shuffled around. Assumes the rotation is about the normal of the face

Declaration
public FaceDetails RotateBy(Rotation r)
Parameters
Type Name Description
Rotation r
Returns
Type Description
FaceDetails

RotateBy(FaceDir, Rotation)

Returns a new FaceDetails with the paint shuffled around. Assumes the rotation is about the y-axis, and the this face has the given facing.

Declaration
public FaceDetails RotateBy(FaceDir detailsFaceDir, Rotation rot)
Parameters
Type Name Description
FaceDir detailsFaceDir
Rotation rot
Returns
Type Description
FaceDetails

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
IEnumerator

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Back to top Generated by DocFX