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

Method Read

Source/PCGExtendedToolkit/Private/Data/PCGExData.cpp:254–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252 }
253
254 void FReadableBufferConfig::Read(const TSharedRef<FFacade>& InFacade) const
255 {
256 PCGEx::ExecuteWithRightType(
257 Identity.UnderlyingType, [&](auto DummyValue)
258 {
259 using T = decltype(DummyValue);
260 TSharedPtr<TBuffer<T>> Reader = nullptr;
261 switch (Mode)
262 {
263 case EBufferPreloadType::RawAttribute:
264 Reader = InFacade->GetReadable<T>(Identity.Name);
265 break;
266 case EBufferPreloadType::BroadcastFromName:
267 Reader = InFacade->GetBroadcaster<T>(Identity.Name);
268 break;
269 case EBufferPreloadType::BroadcastFromSelector:
270 Reader = InFacade->GetBroadcaster<T>(Selector);
271 break;
272 }
273 });
274 }
275
276 bool FFacadePreloader::Validate(FPCGExContext* InContext, const TSharedRef<FFacade>& InFacade) const
277 {

Callers 15

GetCWToleranceMethod · 0.45
NRMFunction · 0.45
JustifyAxisMethod · 0.45
GetQuatMethod · 0.45
ProjectMethod · 0.45
SortEndpointsMethod · 0.45
ProcessMethod · 0.45
ProcessCandidatesMethod · 0.45
ProcessCandidatesMethod · 0.45
PrepareForPointsMethod · 0.45
ProcessCandidatesMethod · 0.45

Calls 1

ExecuteWithRightTypeFunction · 0.85

Tested by 15

TestMethod · 0.36
TestMethod · 0.36
TestDotMethod · 0.36
TestHashMethod · 0.36
TestMethod · 0.36
TestMethod · 0.36
TestMethod · 0.36
TestDotMethod · 0.36
TestHashMethod · 0.36
TestMethod · 0.36
TestMethod · 0.36
TestMethod · 0.36