using UnityEditor;
using UnityEngine.UIElements;

namespace GameCreator.Editor.Common
{
    [CustomPropertyDrawer(typeof(GameCreator.Runtime.Characters.InteractionMode))]
    public class InteractionModeDrawer : PropertyDrawer
    {
        public override VisualElement CreatePropertyGUI(SerializedProperty property)
        {
            VisualElement root = new VisualElement();

            SerializedProperty reference = property.FindPropertyRelative("m_InteractionMode");
            PropertyElement inputElement = new PropertyElement(
                reference,
                property.displayName, 
                true
            );
            
            root.Add(inputElement);
            return root;
        }
    }
}
