namespace XGame.Framework.Components
{
    /// <summary>
    /// 逻辑行为组件
    /// </summary>
    public interface IComponent
    {
        int Order { get; }
        /// <summary>
        /// 绑定Component的上下文
        /// </summary>
        /// <param name="context"></param>
        void Bind(object context);
        ///// <summary>
        ///// 激活状态
        ///// </summary>
        //bool Active { get; }
        ///// <summary>
        ///// 激活
        ///// </summary>
        //void Enable(object intent = null);
        ///// <summary>
        ///// 隐藏
        ///// </summary>
        //void Disable();
    }
}
