chore: simplified PlannerNode::goal_node
This commit is contained in:
parent
325afa7f11
commit
87d2cbd727
|
@ -41,9 +41,7 @@ Dictionary Goal::get_prerequisites() const {
|
||||||
#undef CLASSNAME // !Goal
|
#undef CLASSNAME // !Goal
|
||||||
|
|
||||||
PlannerNode PlannerNode::goal_node(WorldState const &goal) {
|
PlannerNode PlannerNode::goal_node(WorldState const &goal) {
|
||||||
return PlannerNode{
|
return PlannerNode{goal};
|
||||||
goal, {}, {}
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PlannerNode PlannerNode::new_node_along(Ref<Action> action) const {
|
PlannerNode PlannerNode::new_node_along(Ref<Action> action) const {
|
||||||
|
|
Loading…
Reference in a new issue