MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / CreateKey

Method CreateKey

Source/PCGExtendedToolkit/Private/Data/PCGExPointIO.cpp:479–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477 }
478
479 bool FPointIOTaggedDictionary::CreateKey(const TSharedRef<FPointIO>& PointIOKey)
480 {
481 IDType TagValue = PointIOKey->Tags->GetOrSet<int32>(TagId, PointIOKey->GetInOut()->GetUniqueID());
482 for (const TSharedPtr<FPointIOTaggedEntries>& Binding : Entries)
483 {
484 // TagValue shouldn't exist already
485 if (Binding->TagValue->Value == TagValue->Value) { return false; }
486 }
487
488 TagMap.Add(TagValue->Value, Entries.Add(MakeShared<FPointIOTaggedEntries>(TagId, TagValue)));
489 return true;
490 }
491
492 bool FPointIOTaggedDictionary::TryAddEntry(const TSharedRef<FPointIO>& PointIOEntry)
493 {

Callers 2

ExecuteInternalMethod · 0.80
BootMethod · 0.80

Calls 2

GetInOutMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected