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

Method ExecuteInput

Source/Flow/Private/Nodes/Graph/FlowNode_Checkpoint.cpp:19–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void UFlowNode_Checkpoint::ExecuteInput(const FName& PinName)
20{
21 if (GetFlowSubsystem())
22 {
23 UFlowSaveGame* NewSaveGame = Cast<UFlowSaveGame>(UGameplayStatics::CreateSaveGameObject(UFlowSaveGame::StaticClass()));
24 GetFlowSubsystem()->OnGameSaved(NewSaveGame);
25
26 if (bUseAsyncSave)
27 {
28 UGameplayStatics::AsyncSaveGameToSlot(NewSaveGame, NewSaveGame->SaveSlotName, 0);
29 }
30 else
31 {
32 UGameplayStatics::SaveGameToSlot(NewSaveGame, NewSaveGame->SaveSlotName, 0);
33 }
34 }
35
36 TriggerFirstOutput(true);
37}
38
39void UFlowNode_Checkpoint::OnLoad_Implementation()
40{

Callers

nothing calls this directly

Calls 1

OnGameSavedMethod · 0.80

Tested by

no test coverage detected