// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "MuR/ExtensionData.h" #include "MuR/Ptr.h" #include "MuR/RefCounted.h" #include "MuT/NodeExtensionData.h" #include "MuT/NodeScalar.h" #define UE_API MUTABLETOOLS_API namespace UE::Mutable::Private { class NodeExtensionDataSwitch : public NodeExtensionData { public: Ptr Parameter; TArray> Options; public: //----------------------------------------------------------------------------------------- // Node Interface //----------------------------------------------------------------------------------------- virtual const FNodeType* GetType() const override { return GetStaticType(); } static const FNodeType* GetStaticType() { return &StaticType; } //----------------------------------------------------------------------------------------- // Own Interface //----------------------------------------------------------------------------------------- UE_API Ptr GetParameter() const; UE_API void SetParameter(Ptr InParameter); UE_API void SetOptionCount(int); UE_API Ptr GetOption(int32 t) const; UE_API void SetOption(int32 t, Ptr); protected: /** Forbidden. Manage with the Ptr<> template. */ ~NodeExtensionDataSwitch() {} private: static UE_API FNodeType StaticType; }; } #undef UE_API