MCPcopy Create free account
hub / github.com/arnaud-jamin/Cog / ExtractEffectContext

Method ExtractEffectContext

Source/CogSample/CogSampleGameplayEffectContext.cpp:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46//--------------------------------------------------------------------------------------------------------------------------
47
48FCogSampleGameplayEffectContext* FCogSampleGameplayEffectContext::ExtractEffectContext(struct FGameplayEffectContextHandle Handle)
49{
50 FGameplayEffectContext* BaseEffectContext = Handle.Get();
51 if ((BaseEffectContext != nullptr) && BaseEffectContext->GetScriptStruct()->IsChildOf(FCogSampleGameplayEffectContext::StaticStruct()))
52 {
53 return (FCogSampleGameplayEffectContext*)BaseEffectContext;
54 }
55
56 return nullptr;
57}
58
59//--------------------------------------------------------------------------------------------------------------------------
60

Callers

nothing calls this directly

Calls 1

GetScriptStructMethod · 0.80

Tested by

no test coverage detected