Example #1
0
 public override ITerminationRule Rule(Func <double> random, INamedDataCollection metadata)
 {
     return(new AccessRule(
                _resource,
                TerminationChance.SelectFloatValue(random, metadata)
                ));
 }
 public override ITerminationRule Rule(Func <double> random, INamedDataCollection metadata)
 {
     return(new AreaRule(
                _min.SelectFloatValue(random, metadata),
                _max.SelectFloatValue(random, metadata),
                TerminationChance.SelectFloatValue(random, metadata)
                ));
 }