17 lines
430 B
C#
17 lines
430 B
C#
namespace RebootKit.Engine.AI {
|
|
public class Leaf : BehaviourNode {
|
|
readonly IStrategy m_Strategy;
|
|
|
|
public Leaf(string name, IStrategy strategy) : base(name) {
|
|
m_Strategy = strategy;
|
|
}
|
|
|
|
public override Status Process(float dt) {
|
|
return m_Strategy.Process(dt);
|
|
}
|
|
|
|
public override void Reset() {
|
|
m_Strategy.Reset();
|
|
}
|
|
}
|
|
} |