Class GridBuilder<TPoint>
Base class for grid builders.
public class GridBuilder<TPoint> : GLMonoBehaviour where TPoint : IGridPoint<TPoint>
Type Parameters
TPoint
The type of the t point.
- Inheritance
-
GridBuilder<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
CenterRect
protected readonly Rect CenterRect
Field Value
cells
[SerializeField]
protected TileCell[] cells
Field Value
- TileCell[]
grid
protected IGrid<TileCell, TPoint> grid
Field Value
isInteractive
[SerializeField]
[Tooltip("Whether the grid will respond to mouse clicks")]
protected bool isInteractive
Field Value
map
protected IMap3D<TPoint> map
Field Value
- IMap3D<TPoint>
updateType
[SerializeField]
[Tooltip("When to update the grid")]
protected UpdateType updateType
Field Value
Properties
MousePosition
public TPoint MousePosition { get; }
Property Value
- TPoint
Methods
GetCustomMap()
protected WindowedMap<TPoint> GetCustomMap()
Returns
- WindowedMap<TPoint>
Update()
public void Update()