IMessage.cs 513 B

123456789101112131415161718192021222324252627
  1. 
  2. using XGame.Framework.Interfaces;
  3. namespace XGame.Framework.Network
  4. {
  5. /// <summary>
  6. /// 网络消息对象
  7. /// </summary>
  8. public interface IMessage : IMsgData, IReference
  9. {
  10. /// <summary>
  11. /// 实例ID
  12. /// </summary>
  13. int InstanceID { get; set; }
  14. /// <summary>
  15. /// 上下文
  16. /// </summary>
  17. object Context { get; set; }
  18. /// <summary>
  19. /// 协议ID
  20. /// </summary>
  21. int ProtocolID { get; }
  22. }
  23. }