MCPcopy Create free account
hub / github.com/MothCocoon/FlowGraph / FinishFlow

Method FinishFlow

Source/Flow/Private/FlowAsset.cpp:992–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

990}
991
992void UFlowAsset::FinishFlow(const EFlowFinishPolicy InFinishPolicy, const bool bRemoveInstance /*= true*/)
993{
994 FinishPolicy = InFinishPolicy;
995
996 CancelAndWarnForUnflushedDeferredTriggers();
997
998 // end execution of this asset and all of its nodes
999 for (UFlowNode* Node : ActiveNodes)
1000 {
1001 Node->Deactivate();
1002 }
1003 ActiveNodes.Empty();
1004
1005 // flush preloaded content
1006 for (UFlowNode* PreloadedNode : PreloadedNodes)
1007 {
1008 PreloadedNode->TriggerFlush();
1009 }
1010 PreloadedNodes.Empty();
1011
1012 // provides option to finish game-specific logic prior to removing asset instance
1013 if (bRemoveInstance)
1014 {
1015 DeinitializeInstance();
1016 }
1017}
1018
1019void UFlowAsset::CancelAndWarnForUnflushedDeferredTriggers()
1020{

Callers 4

FinishRootFlowMethod · 0.80
FinishAllRootFlowsMethod · 0.80
RemoveSubFlowMethod · 0.80
ClearInstancesMethod · 0.80

Calls 3

DeinitializeInstanceFunction · 0.85
DeactivateMethod · 0.80
TriggerFlushMethod · 0.80

Tested by

no test coverage detected