MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetReferences

Method GetReferences

Source/Engine/AI/BehaviorTree.cpp:228–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void 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
246bool BehaviorTree::Save(const StringView& path)
247{

Callers

nothing calls this directly

Calls 2

GetReferencesFunction · 0.50
StringAnsiViewClass · 0.50

Tested by

no test coverage detected