IComponent.cs 637 B

123456789101112131415161718192021222324252627
  1. namespace XGame.Framework.Components
  2. {
  3. /// <summary>
  4. /// 逻辑行为组件
  5. /// </summary>
  6. public interface IComponent
  7. {
  8. int Order { get; }
  9. /// <summary>
  10. /// 绑定Component的上下文
  11. /// </summary>
  12. /// <param name="context"></param>
  13. void Bind(object context);
  14. ///// <summary>
  15. ///// 激活状态
  16. ///// </summary>
  17. //bool Active { get; }
  18. ///// <summary>
  19. ///// 激活
  20. ///// </summary>
  21. //void Enable(object intent = null);
  22. ///// <summary>
  23. ///// 隐藏
  24. ///// </summary>
  25. //void Disable();
  26. }
  27. }