/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once // Graph Canvas #include // Graph Model #include namespace GraphModelIntegration { //! Satisfies GraphCanvas API requirements for showing bool property widgets in nodes. class BooleanDataInterface : public GraphCanvas::BooleanDataInterface { public: AZ_CLASS_ALLOCATOR(BooleanDataInterface, AZ::SystemAllocator, 0); BooleanDataInterface(GraphModel::SlotPtr slot); ~BooleanDataInterface() = default; bool GetBool() const override; void SetBool(bool enabled) override; private: AZStd::weak_ptr m_slot; }; }