You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Rob asked me to back out GENERATED_*_BODY -> GENERATED_BODY change for now until the "_Validate and _Implementation auto-generation" discussion is over. #codereview Robert.Manuszewski [CL 2481343 by Jaroslaw Palczynski in Main branch]
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
#include "SoundClassGraphNode.generated.h"
|
|
|
|
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;
|
|
};
|