Class Coordinates<TPoint>
public abstract class Coordinates<TPoint> : GridBehaviour<TPoint> where TPoint : IGridPoint<TPoint>
Type Parameters
TPoint
- Inheritance
-
GridBehaviour<TPoint>Coordinates<TPoint>
- Derived
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.runInEditModeComponent.GetComponent<T>()Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentsInParent<T>()Component.transformComponent.gameObjectComponent.tagObject.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.nameObject.hideFlags
- Extension Methods
Fields
Black
public static readonly Color Black
Field Value
Blue
public static readonly Color Blue
Field Value
Cyan
public static readonly Color Cyan
Field Value
Green
public static readonly Color Green
Field Value
Greys
protected static readonly Color[] Greys
Field Value
- Color[]
Magenta
public static readonly Color Magenta
Field Value
Red
public static readonly Color Red
Field Value
Yellow
public static readonly Color Yellow
Field Value
Methods
GetGrey(TPoint)
protected abstract int GetGrey(TPoint point)
Parameters
point
TPoint
Returns
GetPoint(TPoint)
protected abstract TPoint GetPoint(TPoint point)
Parameters
point
TPoint
Returns
- TPoint
InitGrid()
When this behaviour is attached to a grid builder, this method is called once the grid is created, and all cells(tiles) have been instantiated.
Override this to implement custom initialisation code. (You can access the grid through the Grid property).
public override void InitGrid()
IsX(TPoint)
protected abstract bool IsX(TPoint point)
Parameters
point
TPoint
Returns
IsY(TPoint)
protected abstract bool IsY(TPoint point)
Parameters
point
TPoint
Returns
IsZ(TPoint)
protected abstract bool IsZ(TPoint point)
Parameters
point
TPoint
Returns
IsZero(TPoint)
protected abstract bool IsZero(TPoint point)
Parameters
point
TPoint