Enum AssetDef.Kind
- All Implemented Interfaces:
Comparable<AssetDef.Kind>
- Enclosing class:
AssetDef
How an asset is placed: painted into a grid cell, or freely positioned.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AssetDef.KindThe kind for a JSON token (case-insensitive); defaults to#ACTOR.static AssetDef.KindReturns the enum constant of this type with the specified name.static AssetDef.Kind[]values()Returns an array containing the constants of this enum type, in the order they are declared.wireName()The lowercase JSON token for this kind ("tile"/"actor").Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
TILE
Painted into a grid cell of aLayer.Kind#TILElayer. -
ACTOR
A freely placed entity / model.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
wireName
The lowercase JSON token for this kind ("tile"/"actor"). -
fromWire
The kind for a JSON token (case-insensitive); defaults to#ACTOR.
-