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

Method Init

Source/PCGExtendedToolkit/Private/Data/PCGExDataForward.cpp:28–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28bool FPCGExAttributeToTagDetails::Init(const FPCGContext* InContext, const TSharedPtr<PCGExData::FFacade>& InSourceFacade)
29{
30 PCGExHelpers::AppendUniqueSelectorsFromCommaSeparatedList(CommaSeparatedAttributeSelectors, Attributes);
31
32 for (FPCGAttributePropertyInputSelector& Selector : Attributes)
33 {
34 if (const TSharedPtr<PCGEx::TAttributeBroadcaster<FString>>& Getter = Getters.Add_GetRef(MakeShared<PCGEx::TAttributeBroadcaster<FString>>());
35 !Getter->Prepare(Selector, InSourceFacade->Source))
36 {
37 PCGE_LOG_C(Error, GraphAndLog, InContext, FTEXT("Missing specified Tag attribute."));
38 Getters.Empty();
39 return false;
40 }
41 }
42
43 SourceDataFacade = InSourceFacade;
44 return true;
45}
46
47void FPCGExAttributeToTagDetails::Tag(const int32 TagIndex, TSet<FString>& InTags) const
48{

Callers 3

FDataForwardHandlerMethod · 0.45
SetNumMethod · 0.45
ProcessMethod · 0.45

Calls 2

PrepareMethod · 0.45

Tested by 1

ProcessMethod · 0.36