contains

operator fun MapProperties.contains(key: String): Boolean

Allows to check if a MapProperties instance contains a property mapped to key with Kotlin in operator.

Return

true if the property with the given key can be found in this MapProperties. False otherwise.

Parameters

key

name of the property.


operator fun TiledMap.contains(layerName: String): Boolean

Extension operator to check if a certain MapLayer is part of the TiledMap

Return

true if and only if the layer does exist.

Parameters

layerName

name of MapLayer.