public enum Layer.Kind
- Object
- Enum<Layer.Kind>
- Layer.Kind
ImplementsComparable<Layer.Kind>
What a layer holds, which decides how its content is realized.
Enum constants
TILE | A grid of tiles addressed by cell, each cell holding an asset id. |
ENTITY | A group of freely placed 2D entities (sprites). |
MODEL | A 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
TILEA grid of tiles addressed by cell, each cell holding an asset id.
ENTITY
ENTITYA group of freely placed 2D entities (sprites).
MODEL
MODELA 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.