using UnityEngine;
using UnityEngine.Events;
using UnityEngine.Serialization;

namespace Obvious.Soap
{
    [AddComponentMenu("Soap/EventListeners/EventListenerFloat")]
    public class EventListenerFloat : EventListenerGeneric<float>
    {
        [FormerlySerializedAs("m_eventResponses")]
        [SerializeField] private EventResponse[] _eventResponses = null;
        protected override EventResponse<float>[] EventResponses => _eventResponses;

        [System.Serializable]
        public class EventResponse : EventResponse<float>
        {
            [FormerlySerializedAs("mScriptableEvent")]
            [SerializeField] private ScriptableEventFloat _scriptableEvent = null;
            public override ScriptableEvent<float> ScriptableEvent => _scriptableEvent;

            [FormerlySerializedAs("m_response")]
            [SerializeField] private FloatUnityEvent _response = null;
            public override UnityEvent<float> Response => _response;
        }

        [System.Serializable]
        public class FloatUnityEvent : UnityEvent<float>
        {
            
        }
    }
}