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

Method Boot

Source/PCGExtendedToolkit/Private/Paths/PCGExShrinkPath.cpp:93–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93bool FPCGExShrinkPathElement::Boot(FPCGExContext* InContext) const
94{
95 if (!FPCGExPathProcessorElement::Boot(InContext)) { return false; }
96
97 PCGEX_CONTEXT_AND_SETTINGS(ShrinkPath)
98
99 if (Settings->ShrinkMode == EPCGExPathShrinkMode::Count)
100 {
101 if (!Settings->PrimaryCountDetails.SanityCheck(Context)) { return false; }
102 if (Settings->ShrinkEndpoint == EPCGExShrinkEndpoint::Both && Settings->SettingsMode == EPCGExShrinkConstantMode::Separate)
103 {
104 if (!Settings->SecondaryCountDetails.SanityCheck(Context)) { return false; }
105 }
106 }
107 else
108 {
109 if (!Settings->PrimaryDistanceDetails.SanityCheck(Context)) { return false; }
110 if (Settings->ShrinkEndpoint == EPCGExShrinkEndpoint::Both && Settings->SettingsMode == EPCGExShrinkConstantMode::Separate)
111 {
112 if (!Settings->SecondaryDistanceDetails.SanityCheck(Context)) { return false; }
113 }
114 }
115
116 return true;
117}
118
119bool FPCGExShrinkPathElement::ExecuteInternal(FPCGContext* InContext) const
120{

Callers

nothing calls this directly

Calls 1

SanityCheckMethod · 0.45

Tested by

no test coverage detected