public GOAP(WorldState ws, List <GOAPGoal> goals, List <GOAPAction> actions, GOAPAStarBase astar) { WorldState = ws; _goals = goals; _actions = actions; _plan = new GOAPPlan(astar); _curGoal = null; foreach (var goal in goals) { goalsMap.Add(goal.GOAPGoalType, goal); } }
public GOAPPlan(GOAPAStarBase astar) { _astar = astar; }