#pragma once #ifndef NDK_COMPONENTS_CONSTRAINTCOMPONENT2D_HPP #define NDK_COMPONENTS_CONSTRAINTCOMPONENT2D_HPP #include #include #include #include #include namespace Ndk { class NDK_API ConstraintComponent2D : public Component { public: ConstraintComponent2D() = default; ConstraintComponent2D(const ConstraintComponent2D& joint) = default; ConstraintComponent2D(ConstraintComponent2D&& joint) = default; template inline Nz::ObjectRef CreateConstraint(const Ndk::EntityHandle& first, const Ndk::EntityHandle& second, Args&&... args); static ComponentIndex componentIndex; private: std::vector m_constraints; }; } #include #endif// NDK_COMPONENTS_CONSTRAINTCOMPONENT2D_HPP