Table of Contents

Class GSGridBehaviour<TPoint>

Namespace
Gamelogic.Grids.GoldenSkull
Assembly
Assembly-CSharp.dll

The base class of grid behaviours that can be used on editor grids to use GSCells which exposes functionality that makes use of the particular aspects of Golden Skull art. One of the base classes should be used in the editor: GSHexGridBehaviour or GSIsoGridBehaviour.

public class GSGridBehaviour<TPoint> : GridBehaviour<TPoint> where TPoint : IGridPoint<TPoint>

Type Parameters

TPoint

The type of the point.

Inheritance
GSGridBehaviour<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

Methods

CalcSortingLayerOrder(TPoint)

Calculates the sorting layer order.

protected virtual int CalcSortingLayerOrder(TPoint point)

Parameters

point TPoint

The point to calculate the layer order for.

Returns

int

An integer that can be used as the sorting layer order.

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()