| 226 | } |
| 227 | |
| 228 | void BehaviorTree::GetReferences(Array<Guid>& assets, Array<String>& files) const |
| 229 | { |
| 230 | // Base |
| 231 | BinaryAsset::GetReferences(assets, files); |
| 232 | |
| 233 | Graph.GetReferences(assets); |
| 234 | |
| 235 | // Extract refs from serialized nodes data |
| 236 | for (const BehaviorTreeGraphNode& n : Graph.Nodes) |
| 237 | { |
| 238 | if (n.Instance == nullptr) |
| 239 | continue; |
| 240 | const Variant& data = n.Values[1]; |
| 241 | if (data.Type == VariantType::Blob) |
| 242 | JsonAssetBase::GetReferences(StringAnsiView((char*)data.AsBlob.Data, data.AsBlob.Length), assets); |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | bool BehaviorTree::Save(const StringView& path) |
| 247 | { |
nothing calls this directly
no test coverage detected