NetMsgLog.cs 895 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using UnityEngine;
  2. using System.Collections;
  3. namespace Engine.Net
  4. {
  5. /// <summary>消息日志</summary>
  6. public class NetMsgLog
  7. {
  8. /// <summary>是否调试消息</summary>
  9. public static bool IsDebugMsg = false;
  10. /// <summary>构造函数</summary>
  11. public NetMsgLog()
  12. {
  13. }
  14. /// <summary>接收消息</summary>
  15. public void ResMessage(NetMsg netMsg)
  16. {
  17. if (IsDebugMsg)
  18. {
  19. //CDebug.Log("收到消息: code=" + netMsg.nCode + " nBodyLeng=" + netMsg.nBodyLeng);
  20. }
  21. }
  22. /// <summary>发送消息</summary>
  23. public void SendMessage(NetMsg netMsg)
  24. {
  25. if (IsDebugMsg)
  26. {
  27. //CDebug.Log("发送消息: code=" + netMsg.nCode + " nBodyLeng=" + netMsg.arrData.Length);
  28. }
  29. }
  30. }
  31. }