using System;

namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel.Params;

public interface IValueParam
{
    event EventHandler<object> OnValueChanged;
    
    /// <summary>
    /// 获取当前参数的数值。
    /// </summary>
    /// <returns></returns>
    object GetValue();

    /// <summary>
    /// 设置新参数。
    /// </summary>
    /// <param name="value"></param>
    void SetValue(object value);
}