Table of Contents

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
Pattern<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

colorFunction

The coloring to use to make the pattern.

public ColorFunction colorFunction

Field Value

ColorFunction

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

int

Init()

public void Init()