public enum Layer.Kind

  1. Object
  2. Enum<Layer.Kind>
  3. Layer.Kind

ImplementsComparable<Layer.Kind>

What a layer holds, which decides how its content is realized.

Enum constants

TILEA grid of tiles addressed by cell, each cell holding an asset id.
ENTITYA group of freely placed 2D entities (sprites).
MODELA group of freely placed 3D models.

Methods

public static Layer.Kind[] values()
public static Layer.Kind valueOf(String name)
public String wireName()The lowercase JSON token for this kind ("tile" / "entity" / "model").
public static Layer.Kind fromWire(String name)The kind for a JSON token (case-insensitive); defaults to #ENTITY.

Inherited methods

Enum constant details

TILE

TILE
A grid of tiles addressed by cell, each cell holding an asset id.

ENTITY

ENTITY
A group of freely placed 2D entities (sprites).

MODEL

MODEL
A group of freely placed 3D models.

Method details

values

public static Layer.Kind[] values()

valueOf

public static Layer.Kind valueOf(String name)

wireName

public String wireName()
The lowercase JSON token for this kind ("tile" / "entity" / "model").

fromWire

public static Layer.Kind fromWire(String name)
The kind for a JSON token (case-insensitive); defaults to #ENTITY.