// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "DragAndDrop/DecoratedDragDropOp.h" class FStateTreeViewModel; class FStateTreeSelectedDragDrop : public FDecoratedDragDropOp { public: DRAG_DROP_OPERATOR_TYPE(FActionTreeViewDragDrop, FDecoratedDragDropOp); static TSharedRef New(TSharedPtr InViewModel) { TSharedRef Operation = MakeShared(); Operation->ViewModel = InViewModel; Operation->Construct(); return Operation; } virtual TSharedPtr GetDefaultDecorator() const override; void SetCanDrop(const bool bState) { bCanDrop = bState; } TSharedPtr ViewModel; bool bCanDrop = false; };