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

Method Boot

Source/PCGExtendedToolkit/Private/Misc/PCGExCopyToPoints.cpp:18–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16PCGEX_INITIALIZE_ELEMENT(CopyToPoints)
17
18bool FPCGExCopyToPointsElement::Boot(FPCGExContext* InContext) const
19{
20 if (!FPCGExPointsProcessorElement::Boot(InContext)) { return false; }
21
22 PCGEX_CONTEXT_AND_SETTINGS(CopyToPoints)
23
24 Context->TargetsDataFacade = PCGExData::TryGetSingleFacade(Context, PCGEx::SourceTargetsLabel, false, true);
25 if (!Context->TargetsDataFacade) { return false; }
26
27 PCGEX_FWD(TransformDetails)
28 if (!Context->TransformDetails.Init(Context, Context->TargetsDataFacade.ToSharedRef())) { return false; }
29
30 PCGEX_FWD(TargetsAttributesToClusterTags)
31 if (!Context->TargetsAttributesToClusterTags.Init(Context, Context->TargetsDataFacade)) { return false; }
32
33 if (Settings->bDoMatchByTags)
34 {
35 PCGEX_FWD(MatchByTagValue)
36 if (!Context->MatchByTagValue.Init(Context, Context->TargetsDataFacade.ToSharedRef())) { return false; }
37 }
38
39 Context->TargetsForwardHandler = Settings->TargetsForwarding.GetHandler(Context->TargetsDataFacade);
40
41 return true;
42}
43
44bool FPCGExCopyToPointsElement::ExecuteInternal(FPCGContext* InContext) const
45{

Callers

nothing calls this directly

Calls 3

TryGetSingleFacadeFunction · 0.85
GetHandlerMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected