propertyOrNull

inline fun <T> MapLayer.propertyOrNull(key: String): T?

Extension method to directly access the MapProperties of a MapLayer. If the property is not defined then this method returns null.

Return

value of the property or null if the property is missing.

Parameters

key

property name.


inline fun <T> MapObject.propertyOrNull(key: String): T?

Extension method to directly access the MapProperties of a MapObject. If the property is not defined then this method returns null.

Return

value of the property or null if the property is missing.

Parameters

key

property name.


inline fun <T> TiledMapTileSet.propertyOrNull(key: String): T?

Extension method to directly access the MapProperties of a TiledMapTileSet. If the property is not defined then this method returns null.

Return

value of the property or null if the property is missing.

Parameters

key

property name.


inline fun <T> TiledMapTile.propertyOrNull(key: String): T?

Extension method to directly access the MapProperties of a TiledMapTile. If the property is not defined then this method returns null.

Return

value of the property or null if the property is missing.

Parameters

key

property name.


inline fun <T> TiledMap.propertyOrNull(key: String): T?

Extension method to directly access the MapProperties of a TiledMap. If the property is not defined then this method returns null.

Return

value of the property or null if the property is missing.

Parameters

key

property name.