Table of Contents

Class CustomGridBuilder

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

Inherit from this class to implement custom grid shapes.

This class should return a grid.To have the grid builder used this grid, you should set the Shape to Custom in the editor, and attached this script to the same game object as the grid builder.

[Version(1, 8, 0)]
public abstract class CustomGridBuilder : GLMonoBehaviour
Inheritance
CustomGridBuilder
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

MakeGrid<TCell, TPoint>()

public virtual IGrid<TCell, TPoint> MakeGrid<TCell, TPoint>() where TPoint : IGridPoint<TPoint>

Returns

IGrid<TCell, TPoint>

Type Parameters

TCell
TPoint

Remarks

Check the type; if it is "your" type, return the grid. Otherwise return null.