public enum AssetDef.Kind
- Object
- Enum<AssetDef.Kind>
- AssetDef.Kind
ImplementsComparable<AssetDef.Kind>
How an asset is placed: painted into a grid cell, or freely positioned.
Enum constants
TILE | Painted into a grid cell of a Layer.Kind#TILE layer. |
ACTOR | A freely placed entity / model. |
Methods
public static AssetDef.Kind[] values() | |
public static AssetDef.Kind valueOf(String name) | |
public String wireName() | The lowercase JSON token for this kind ("tile" / "actor"). |
public static AssetDef.Kind fromWire(String name) | The kind for a JSON token (case-insensitive); defaults to #ACTOR. |
Inherited methods
Enum constant details
TILE
TILEPainted into a grid cell of a
Layer.Kind#TILE layer.ACTOR
ACTORA freely placed entity / model.
Method details
values
public static AssetDef.Kind[] values()valueOf
public static AssetDef.Kind valueOf(String name)wireName
public String wireName()The lowercase JSON token for this kind (
"tile" / "actor").fromWire
public static AssetDef.Kind fromWire(String name)The kind for a JSON token (case-insensitive); defaults to
#ACTOR.