Class Pattern<TPoint>
- Namespace
- Gamelogic.Grids.GoldenSkull
- Assembly
- Assembly-CSharp.dll
The base of a grid behavoiour that can use a pattern (coloring) to select sprites for cells. Requires a GSGridBehaviour of the same point type.
[ExecuteInEditMode]
public class Pattern<TPoint> : GridBehaviour<TPoint> where TPoint : IGridPoint<TPoint>
Type Parameters
TPoint
The type of the point.
- Inheritance
-
GridBehaviour<TPoint>Pattern<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
colorFunction
The coloring to use to make the pattern.
public ColorFunction colorFunction
Field Value
sprites
The sprites to use for the pattern. Must be at least the number of colors of the coloring.
public Sprite[] sprites
Field Value
- Sprite[]
stackHeights
The stack heights to use for the pattern. Must be at least the number of colors of the coloring.
public int[] stackHeights
Field Value
- int[]
Methods
GetColor(TPoint)
Gets the color of the point, using the colorfunction. By defualt returns 0.
protected virtual int GetColor(TPoint point)
Parameters
point
TPoint
Returns
Init()
public void Init()