wizardsandwarriors

com.devbridie.wizardsandwarriors.dsl / RuleBuilder

RuleBuilder

class RuleBuilder<in CP : CommandParameters, out E : Effect>

Builds a Rule.

Constructors

Name Summary
<init> RuleBuilder(applicable: CP.() -> Boolean, effect: CP.() -> E)
Builds a Rule.

Properties

Name Summary
applicable val applicable: CP.() -> Boolean
effect val effect: CP.() -> E

Functions

Name Summary
build fun build(): Rule<CP, E>