Table of Contents

Class Coordinates<TPoint>

Namespace
Gamelogic.Grids.Examples
Assembly
Assembly-CSharp.dll
public abstract class Coordinates<TPoint> : GridBehaviour<TPoint> where TPoint : IGridPoint<TPoint>

Type Parameters

TPoint
Inheritance
Coordinates<TPoint>
Derived
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.runInEditMode
Component.GetComponent<T>()
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentsInParent<T>()
Component.transform
Component.gameObject
Component.tag
Object.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.name
Object.hideFlags
Extension Methods

Fields

Black

public static readonly Color Black

Field Value

Color

Blue

public static readonly Color Blue

Field Value

Color

Cyan

public static readonly Color Cyan

Field Value

Color

Green

public static readonly Color Green

Field Value

Color

Greys

protected static readonly Color[] Greys

Field Value

Color[]

Magenta

public static readonly Color Magenta

Field Value

Color

Red

public static readonly Color Red

Field Value

Color

Yellow

public static readonly Color Yellow

Field Value

Color

Methods

GetGrey(TPoint)

protected abstract int GetGrey(TPoint point)

Parameters

point TPoint

Returns

int

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

bool

IsY(TPoint)

protected abstract bool IsY(TPoint point)

Parameters

point TPoint

Returns

bool

IsZ(TPoint)

protected abstract bool IsZ(TPoint point)

Parameters

point TPoint

Returns

bool

IsZero(TPoint)

protected abstract bool IsZero(TPoint point)

Parameters

point TPoint

Returns

bool