com.devbridie.wizardsandwarriors.dsl / rule
fun <CP : CommandParameters, E : Effect> rule(applicable: CP.() -> Boolean, effect: CP.() -> E): Rule<CP, E>
Builds a Rule using a DSL.
applicable - a function that specifies if this rule can be used given these parameters. CP is given as receiver.
effect - function that specifies what the effect is of applying this Rule. CP is given as receiver.
See Also