Files
UnrealEngineUWP/Engine/Source/Editor/AudioEditor/Classes/SoundClassGraph/SoundClassGraphNode.h
ryan durand 627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00

45 lines
1.4 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "EdGraph/EdGraphNode.h"
#include "SoundClassGraphNode.generated.h"
class UEdGraphPin;
class UEdGraphSchema;
class USoundClass;
UCLASS(MinimalAPI)
class USoundClassGraphNode : public UEdGraphNode
{
GENERATED_UCLASS_BODY()
/** The SoundNode this represents */
UPROPERTY(VisibleAnywhere, instanced, Category=Sound)
USoundClass* SoundClass;
/** Get the Pin that connects to all children */
UEdGraphPin* GetChildPin() const { return ChildPin; }
/** Get the Pin that connects to its parent */
UEdGraphPin* GetParentPin() const { return ParentPin; }
/** Check whether the children of this node match the SoundClass it is representing */
bool CheckRepresentsSoundClass();
//~ Begin UEdGraphNode Interface.
virtual FLinearColor GetNodeTitleColor() const override;
virtual void AllocateDefaultPins() override;
virtual void AutowireNewNode(UEdGraphPin* FromPin) override;
virtual bool CanCreateUnderSpecifiedSchema(const UEdGraphSchema* Schema) const override;
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
virtual bool CanUserDeleteNode() const override;
//~ End UEdGraphNode Interface.
private:
/** Pin that connects to all children */
UEdGraphPin* ChildPin;
/** Pin that connects to its parent */
UEdGraphPin* ParentPin;
};