withPassive

inline fun <A : PassiveAbility> withPassive(vararg constructorParams: Pair<KProperty1<A, *>, *>, noinline configure: A.() -> Unit = {})

Adds a passive ability that is granted with this origin.

Parameters

A

The type of ability to add.

configure

A builder function to configure the ability on creation.