| 226 | } |
| 227 | |
| 228 | void BehaviorKnowledge::AddGoal(Variant&& goal) |
| 229 | { |
| 230 | int32 i = 0; |
| 231 | for (; i < Goals.Count(); i++) |
| 232 | { |
| 233 | if (Goals[i].Type == goal.Type) |
| 234 | break; |
| 235 | } |
| 236 | if (i == Goals.Count()) |
| 237 | Goals.AddDefault(); |
| 238 | Goals.Get()[i] = MoveTemp(goal); |
| 239 | } |
| 240 | |
| 241 | void BehaviorKnowledge::RemoveGoal(ScriptingTypeHandle type) |
| 242 | { |
no test coverage detected