123456789101112131415161718192021222324252627 |
- 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();
- }
- }
|