MsgConst.cs 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. using UnityEngine;
  2. using System.Collections;
  3. /// <summary>消息常量类</summary>
  4. public class MsgConst
  5. {
  6. #region 登录退出相关
  7. /// <summary>连接成功的返回的消息号</summary>
  8. public const int MSG_CTS_CONNETCT_SCUESS = 100;
  9. /// <summary>发送个人信息</summary>
  10. public const int MSG_CTS_USER_DATA_SEND = 1001;
  11. /// <summary>登录后返回的当前所在的房间信息</summary>
  12. public const int MSG_CTS_ROOM_DATA_BACK = 1002;
  13. /// <summary>拿取大厅列表信息</summary>
  14. public const int MSG_CTS_DATING_ENTER_SEND = 1003;
  15. /// <summary>大厅列表信息的返回</summary>
  16. public const int MSG_CTS_DATING_ENTER_BACK = 1004;//
  17. /// <summary>账号被顶掉</summary>
  18. public const int MSG_CTS_DATING_LOGOUT_BACK = 1005;//
  19. /// <summary>创建房间</summary>
  20. public const int MSG_CTS_ROOM_CREATE_SEND = 1010;//
  21. /// <summary>广播创建房间的消息</summary>
  22. public const int MSG_CTS_ROOM_CREATE_BACK = 1011;//
  23. /// <summary>进入/出房间房间的数据的发送</summary>
  24. public const int MSG_CTS_ROOM_ENTER_OR_OUT_SEND = 1012;
  25. /// <summary>房间人数数据更新的广播消息返回</summary>
  26. public const int MSG_CTS_ROOM_REFRESH_BACK = 1013;
  27. /// <summary>告诉老师有学生进来了或者出去了</summary>
  28. public const int MSG_CTS_ROOM_USER_ENTER_OR_OUT_BACK = 1014;
  29. /// <summary>房间删除消息的广播接受</summary>
  30. public const int MSG_CTS_ROOM_DELETE_BACK = 1015;
  31. /// <summary>断线重连后获取学生列表的消息</summary>
  32. public const int MSG_CTS_RECONNECT_GET_STUDENT_LIST_BACK = 1016;
  33. /// <summary>1</summary>
  34. public const int MSG_CTS_RECONNECT_GET_RELOAD_BACK = 1017;
  35. /// <summary>老师同步当前的操作进度顺序</summary>
  36. public const int MSG_CTS_SEND_CHANGE_MASTER_DATA_TO_TEACHER = 1018;
  37. /// <summary>老师同步当前的操作进数据的接收</summary>
  38. public const int MSG_CTS_SEND_CHANGE_MASTER_DATA_TO_TEACHER_BACK = 1018;
  39. /// <summary>老师的手柄指示位置发送</summary>
  40. public const int MSG_CTS_TEACHER_CORE_DATA_SEND = 2001;
  41. /// <summary>老师的手柄指示位置广播接收</summary>
  42. public const int MSG_CTS_TEACHER_CORE_DATA_BACK = 2001;
  43. /// <summary>只发给老师的</summary>
  44. public const int MSG_CTS_SEND_DATA_TO_TEACHER = 2002;
  45. /// <summary>老师接受到了学生发送的消息</summary>
  46. public const int MSG_CTS_SEND_DATA_TO_BACK = 2002;
  47. /// <summary>老师同步当前的操作进度顺序</summary>
  48. public const int MSG_CTS_SEND_REFRESH_DATA_TO_STUDENT = 2003;
  49. /// <summary>老师同步当前的操作进数据的接收</summary>
  50. public const int MSG_CTS_REFRESH_DATA_BACK = 2003;
  51. /// <summary>老师射线消息的派发</summary>
  52. public const int MSG_CTS_SEND_LINE_DATA_TO_STUDENT = 2004;
  53. /// <summary>老师射线消息的接收</summary>
  54. public const int MSG_CTS_LINE_DATA_BACK = 2004;
  55. /// <summary>老师射线消息的派发</summary>
  56. public const int MSG_CTS_SEND_AUDIO_DATA_TO_STUDENT = 2005;
  57. /// <summary>老师射线消息的接收</summary>
  58. public const int MSG_CTS_AUDIO_DATA_BACK = 2005;
  59. /// <summary>房主更换的消息发送</summary>
  60. public const int MSG_CTS_ROOM_OWNER_CHANGE_SEND = 31121;
  61. /// <summary>房主更换的消息广播的接受</summary>
  62. public const int MSG_CTS_ROOM_OWNER_CHANGE_BACK = 1312015;
  63. /// <summary>房间删除的消息的发送</summary>
  64. public const int MSG_CTS_ROOM_DELETE_SEND = 1321015;
  65. /// <summary>退出游戏</summary>
  66. public const int MSG_CTS_DISCONNETCT = 201;//断开连接的
  67. #endregion
  68. #region 心跳
  69. /// <summary>客户端给服务器的心跳</summary>
  70. public const int MSG_CTS_HEARTBEAT = 90001;
  71. /// <summary>服务器给客户端的心跳</summary>
  72. public const int MSG_STC_HEARTBEAT = 90002;
  73. #endregion
  74. #region HTTP消息
  75. /// <summary>验证客户端版本</summary>
  76. public const int HTTP_MSG_CHACK = 10006;
  77. /// <summary>获取玩家信息</summary>
  78. public const int HTTP_MSG_LOGIN = 10001;
  79. /// <summary>获取玩家信息</summary>
  80. public const int HTTP_MSG_AUTO_LOGIN = 10002;
  81. /// <summary>创建角色</summary>
  82. public const int HTTP_MSG_GET_QUESTION = 10003;
  83. public const int HTTP_MSG_VERSION = 10004;
  84. #endregion
  85. /// <summary>老师的语音发送</summary>
  86. public const int MSG_CTS_TEACHER_AUDIO_DATA_SEND = 3001;
  87. /// <summary>老师的语音接收</summary>
  88. public const int MSG_CTS_TEACHER_AUDIO_DATA_BACK = 3001;
  89. }