Files
UnrealEngineUWP/Engine/Source/Editor/BlueprintGraph/Classes/K2Node_Message.h
Marc Audy 0c3be2b6ad Merge Release-Engine-Staging to Test @ CL# 18240298
[CL 18241953 by Marc Audy in ue5-release-engine-test branch]
2021-11-18 14:37:34 -05:00

56 lines
2.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "EdGraph/EdGraphNodeUtils.h"
#include "K2Node_CallFunction.h"
#include "K2Node_Message.generated.h"
class UEdGraph;
UCLASS(MinimalAPI)
class UK2Node_Message : public UK2Node_CallFunction
{
GENERATED_UCLASS_BODY()
//~ Begin UEdGraphNode Interface.
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
virtual FText GetTooltipText() const override;
virtual void AllocateDefaultPins() override;
//~ End UEdGraphNode Interface.
//~ Begin K2Node Interface.t
virtual bool IsNodeSafeToIgnore() const override { return true; }
virtual class FNodeHandlingFunctor* CreateNodeHandler(class FKismetCompilerContext& CompilerContext) const override;
virtual void ExpandNode(class FKismetCompilerContext& CompilerContext, UEdGraph* SourceGraph) override;
virtual FName GetCornerIcon() const override;
virtual bool IsNodePure() const override { return false; }
//~ End K2Node Interface.
//~ Begin K2Node_CallFunction Interface.
virtual UEdGraphPin* CreateSelfPin(const UFunction* Function) override;
protected:
/**
* Helper function for expand node to expand the message to handle the case that a ULevelStreaming may be passed which needs to have its LevelScriptActor pulled out
*
* @param InCompilerContext CompilerContext from ExpandNode
* @param InSourceGraph Graph that the node are expanding from
* @param InStartingExecPin Exec pin that connects to the message node, to correctly be mapped into the exec pins of the expanded nodes
* @param InMessageSelfPin The message node's self pin, to correctly be mapped into the object pins of the expanded nodes
* @param InCastToInterfaceNode Previously generated node to cast to the message's interface, to be wired into the expanded nodes
*/
void ExpandLevelStreamingHandlers(class FKismetCompilerContext& InCompilerContext, UEdGraph* InSourceGraph, class UEdGraphPin* InStartingExecPin, class UEdGraphPin* InMessageSelfPin, class UK2Node_DynamicCast* InCastToInterfaceNode);
virtual void FixupSelfMemberContext() override;
//~ End K2Node_CallFunction Interface.
/** Constructing FText strings can be costly, so we cache the node's title */
FNodeTitleTextTable CachedNodeTitles;
};