2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
#include "SoundClassGraphNode.generated.h"
|
|
|
|
|
|
|
|
|
|
UCLASS(MinimalAPI)
|
|
|
|
|
class USoundClassGraphNode : public UEdGraphNode
|
|
|
|
|
{
|
2015-03-17 05:38:32 -04:00
|
|
|
GENERATED_UCLASS_BODY()
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
/** 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.
|
2014-06-13 06:14:46 -04:00
|
|
|
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;
|
2014-03-14 14:13:41 -04:00
|
|
|
// End UEdGraphNode interface.
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/** Pin that connects to all children */
|
|
|
|
|
UEdGraphPin* ChildPin;
|
|
|
|
|
/** Pin that connects to its parent */
|
|
|
|
|
UEdGraphPin* ParentPin;
|
|
|
|
|
};
|