tock / ai.tock.bot.engine / BotBus / entityValue

entityValue

open fun <T : Value> entityValue(role: String, valueTransformer: (EntityValue) -> T? = @Suppress("UNCHECKED_CAST") { it.value as? T? }): T? (source)

Returns the current value for the specified entity role.

open fun <T : Value> entityValue(entity: Entity, valueTransformer: (EntityValue) -> T? = @Suppress("UNCHECKED_CAST") { it.value as? T? }): T? (source)

Returns the current value for the specified entity.