public static BehaviourTreeNodeRandomBuilder <TTickData, TState> Inverter <TTickData, TState>( this BehaviourTreeNodeRandomBuilder <TTickData, TState> builder, string name, uint probability, Action <BehaviourTreeNodeDecoratorBuilder <TTickData, TState> > config) { var newNode = new InverterNode <TTickData, TState>(name); return(builder.Add(probability, newNode, config)); }
public static BehaviourTreeNodeRandomBuilder <TTickData, TState> Do <TTickData, TState> (this BehaviourTreeNodeRandomBuilder <TTickData, TState> builder, string name, uint probability, Func <TTickData, TState, BehaviourTreeState> action ) { var newNode = new ActionNode <TTickData, TState>(name, action); return(builder.Add(probability, newNode)); }
public static BehaviourTreeNodeRandomBuilder <TTickData, TState> RandomSelect <TTickData, TState> (this BehaviourTreeNodeRandomBuilder <TTickData, TState> builder, string name, uint probability, Action <BehaviourTreeNodeRandomBuilder <TTickData, TState> > config, bool stateful = false ) { var newNode = new RandomSelectNode <TTickData, TState>(name, stateful); return(builder.Add(probability, newNode, config)); }
public static BehaviourTreeNodeRandomBuilder <TTickData, TState> Parallel <TTickData, TState> (this BehaviourTreeNodeRandomBuilder <TTickData, TState> builder, string name, uint probability, int successCount, int failureCount, Action <BehaviourTreeNodeSequenceBuilder <TTickData, TState> > config ) { var newNode = new ParallelNode <TTickData, TState>(name, successCount, failureCount); return(builder.Add(probability, newNode, config)); }