PacketHeader.cs 687 B

123456789101112131415161718192021222324
  1. /*********************************************************************************
  2. *Author: OnClick
  3. *Version: 0.0.1
  4. *UnityVersion: 2017.2.3p3
  5. *Date: 2019-03-14
  6. *Description: IFramework
  7. *History: 2018.11--
  8. *********************************************************************************/
  9. using System;
  10. namespace IFramework.Packets
  11. {
  12. struct PacketHeader
  13. {
  14. //头共 15 个字节
  15. public UInt32 MainId { get; set; }
  16. public UInt32 SubId { get; set; }
  17. public byte pkgType { get; set; }
  18. public UInt16 pkgCount { get; set; } /*= 1;*/
  19. public UInt32 messageLen { get; internal set; }
  20. }
  21. }