// 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" namespace mu { class MUTABLETOOLS_API 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 //----------------------------------------------------------------------------------------- Ptr GetParameter() const; void SetParameter(Ptr InParameter); void SetOptionCount(int); Ptr GetOption(int32 t) const; void SetOption(int32 t, Ptr); protected: /** Forbidden. Manage with the Ptr<> template. */ ~NodeExtensionDataSwitch() {} private: static FNodeType StaticType; }; }