Skip to content
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 112 additions & 0 deletions Assets/FluidBehaviorTree/Editor/Icons/Tasks/EventAvailable.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 112 additions & 0 deletions Assets/FluidBehaviorTree/Editor/Icons/Tasks/EventBusy.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 112 additions & 0 deletions Assets/FluidBehaviorTree/Editor/Icons/Tasks/Repeat.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ public BehaviorTreeBuilder ReturnFailure (string name = "return failure") {
return ParentTask<ReturnFailure>(name);
}

public BehaviorTreeBuilder RepeatUntilSuccess (string name = "repeat until success") {
return ParentTask<RepeatUntilSuccess>(name);
}

public BehaviorTreeBuilder RepeatUntilFailure (string name = "repeat until failure") {
return ParentTask<RepeatUntilFailure>(name);
}

public BehaviorTreeBuilder RepeatForever (string name = "repeat forever") {
return ParentTask<RepeatForever>(name);
}

public BehaviorTreeBuilder Sequence (string name = "sequence") {
return ParentTask<Sequence>(name);
}
Expand Down
14 changes: 14 additions & 0 deletions Assets/FluidBehaviorTree/Runtime/Decorators/RepeatForever.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using CleverCrow.Fluid.BTs.Trees;
using CleverCrow.Fluid.BTs.Decorators;
using CleverCrow.Fluid.BTs.Tasks;

namespace CleverCrow.Fluid.BTs.Decorators {
public class RepeatForever : DecoratorBase {
public override string IconPath { get; } = $"{PACKAGE_ROOT}/Repeat.png";

protected override TaskStatus OnUpdate () {
Child.Update();
return TaskStatus.Continue;
}
}
}
11 changes: 11 additions & 0 deletions Assets/FluidBehaviorTree/Runtime/Decorators/RepeatForever.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading