You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
479 B
C#
16 lines
479 B
C#
namespace CleverCrow.Fluid.BTs.Tasks {
|
|
public abstract class ConditionBase : TaskBase {
|
|
public override string IconPath { get; } = $"{PACKAGE_ROOT}/Question.png";
|
|
public override float IconPadding => 10;
|
|
|
|
protected abstract bool OnUpdate ();
|
|
|
|
protected override TaskStatus GetUpdate () {
|
|
if (OnUpdate()) {
|
|
return TaskStatus.Success;
|
|
}
|
|
|
|
return TaskStatus.Failure;
|
|
}
|
|
}
|
|
} |