Class GSCell
- Namespace
- Gamelogic.Grids.GoldenSkull
- Assembly
- Assembly-CSharp.dll
A component for that allows Golden Skull tile art to be used with Gamelogic Grids.
public class GSCell : TileCell, IColorableCell, ICell
- Inheritance
-
GSCell
- Implements
- 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
DefaultHexCellDimensions
The default dimensions of the "flat" area of hex cells.
public static readonly Vector2 DefaultHexCellDimensions
Field Value
DefaultHexStackOffset
The amount to move a hex sprite to stack it onto another.
public const float DefaultHexStackOffset = 94
Field Value
DefaultIsoCellDimensions
The default dimensions of the "flat" area of iso cells.
public static readonly Vector2 DefaultIsoCellDimensions
Field Value
DefaultIsoStackOffset
The amount to move a iso sprite to stack it onto another.
public const float DefaultIsoStackOffset = 94
Field Value
cellDimensions
The dimensions of the "flat" are of cells.
public Vector2 cellDimensions
Field Value
stackOffset
The offset to used for stacking tiles.
public float stackOffset
Field Value
Properties
Color
Gets or sets the color to tint this cell.
public override Color Color { get; set; }
Property Value
- Color
The color.
Dimensions
The 2D dimensions of the tile. For 3D objects, this is the dimensions along the same plane as the 2D grid.
public override Vector2 Dimensions { get; }
Property Value
HeightOffset
public float HeightOffset { get; set; }
Property Value
SortingLayerOrder
Gets or sets the layer order for this cell to use.
public int SortingLayerOrder { get; set; }
Property Value
- int
The layer order.
Sprite
Gets or sets the sprite.
public Sprite Sprite { get; set; }
Property Value
- Sprite
The sprite.
StackHeight
Gets or sets the height of the stack for this cell.
public int StackHeight { get; set; }
Property Value
- int
The height of the stack.
Methods
AddAngle(float)
Adds the given angle to the current angle of the tile. If the tile is in the XY plane, it will be added to the Z angle.
public override void AddAngle(float angle)
Parameters
angle
float
SetAngle(float)
Sets the angle of the tile. If the tile is in the XY plane, the angle will be the Z angle.
public override void SetAngle(float angle)
Parameters
angle
floatIn degrees.
__UpdatePresentation(bool)
This methods is called by the editor, and is to update the cell representation to it's current state.
(Typically, this is necessary for serialized fields that affect the presentation.For example, the color may be saved, but the actual object may reset it's color).
public override void __UpdatePresentation(bool forceUpdate)
Parameters
forceUpdate
bool