1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- using UnityEngine;
- using System.Collections;
- /// <summary>消息常量类</summary>
- public class MsgConst
- {
- #region 登录退出相关
- /// <summary>连接成功的返回的消息号</summary>
- public const int MSG_CTS_CONNETCT_SCUESS = 100;
- /// <summary>发送个人信息</summary>
- public const int MSG_CTS_USER_DATA_SEND = 1001;
- /// <summary>登录后返回的当前所在的房间信息</summary>
- public const int MSG_CTS_ROOM_DATA_BACK = 1002;
- /// <summary>拿取大厅列表信息</summary>
- public const int MSG_CTS_DATING_ENTER_SEND = 1003;
- /// <summary>大厅列表信息的返回</summary>
- public const int MSG_CTS_DATING_ENTER_BACK = 1004;//
- /// <summary>账号被顶掉</summary>
- public const int MSG_CTS_DATING_LOGOUT_BACK = 1005;//
- /// <summary>创建房间</summary>
- public const int MSG_CTS_ROOM_CREATE_SEND = 1010;//
- /// <summary>广播创建房间的消息</summary>
- public const int MSG_CTS_ROOM_CREATE_BACK = 1011;//
- /// <summary>进入/出房间房间的数据的发送</summary>
- public const int MSG_CTS_ROOM_ENTER_OR_OUT_SEND = 1012;
- /// <summary>房间人数数据更新的广播消息返回</summary>
- public const int MSG_CTS_ROOM_REFRESH_BACK = 1013;
- /// <summary>告诉老师有学生进来了或者出去了</summary>
- public const int MSG_CTS_ROOM_USER_ENTER_OR_OUT_BACK = 1014;
- /// <summary>房间删除消息的广播接受</summary>
- public const int MSG_CTS_ROOM_DELETE_BACK = 1015;
- /// <summary>断线重连后获取学生列表的消息</summary>
- public const int MSG_CTS_RECONNECT_GET_STUDENT_LIST_BACK = 1016;
- /// <summary>1</summary>
- public const int MSG_CTS_RECONNECT_GET_RELOAD_BACK = 1017;
- /// <summary>老师同步当前的操作进度顺序</summary>
- public const int MSG_CTS_SEND_CHANGE_MASTER_DATA_TO_TEACHER = 1018;
- /// <summary>老师同步当前的操作进数据的接收</summary>
- public const int MSG_CTS_SEND_CHANGE_MASTER_DATA_TO_TEACHER_BACK = 1018;
- /// <summary>老师的手柄指示位置发送</summary>
- public const int MSG_CTS_TEACHER_CORE_DATA_SEND = 2001;
- /// <summary>老师的手柄指示位置广播接收</summary>
- public const int MSG_CTS_TEACHER_CORE_DATA_BACK = 2001;
- /// <summary>只发给老师的</summary>
- public const int MSG_CTS_SEND_DATA_TO_TEACHER = 2002;
- /// <summary>老师接受到了学生发送的消息</summary>
- public const int MSG_CTS_SEND_DATA_TO_BACK = 2002;
- /// <summary>老师同步当前的操作进度顺序</summary>
- public const int MSG_CTS_SEND_REFRESH_DATA_TO_STUDENT = 2003;
- /// <summary>老师同步当前的操作进数据的接收</summary>
- public const int MSG_CTS_REFRESH_DATA_BACK = 2003;
- /// <summary>老师射线消息的派发</summary>
- public const int MSG_CTS_SEND_LINE_DATA_TO_STUDENT = 2004;
- /// <summary>老师射线消息的接收</summary>
- public const int MSG_CTS_LINE_DATA_BACK = 2004;
- /// <summary>老师射线消息的派发</summary>
- public const int MSG_CTS_SEND_AUDIO_DATA_TO_STUDENT = 2005;
- /// <summary>老师射线消息的接收</summary>
- public const int MSG_CTS_AUDIO_DATA_BACK = 2005;
- /// <summary>房主更换的消息发送</summary>
- public const int MSG_CTS_ROOM_OWNER_CHANGE_SEND = 31121;
- /// <summary>房主更换的消息广播的接受</summary>
- public const int MSG_CTS_ROOM_OWNER_CHANGE_BACK = 1312015;
- /// <summary>房间删除的消息的发送</summary>
- public const int MSG_CTS_ROOM_DELETE_SEND = 1321015;
- /// <summary>退出游戏</summary>
- public const int MSG_CTS_DISCONNETCT = 201;//断开连接的
- #endregion
- #region 心跳
- /// <summary>客户端给服务器的心跳</summary>
- public const int MSG_CTS_HEARTBEAT = 90001;
- /// <summary>服务器给客户端的心跳</summary>
- public const int MSG_STC_HEARTBEAT = 90002;
- #endregion
- #region HTTP消息
- /// <summary>验证客户端版本</summary>
- public const int HTTP_MSG_CHACK = 10006;
- /// <summary>获取玩家信息</summary>
- public const int HTTP_MSG_LOGIN = 10001;
- /// <summary>获取玩家信息</summary>
- public const int HTTP_MSG_AUTO_LOGIN = 10002;
- /// <summary>创建角色</summary>
- public const int HTTP_MSG_GET_QUESTION = 10003;
- public const int HTTP_MSG_VERSION = 10004;
- #endregion
- /// <summary>老师的语音发送</summary>
- public const int MSG_CTS_TEACHER_AUDIO_DATA_SEND = 3001;
- /// <summary>老师的语音接收</summary>
- public const int MSG_CTS_TEACHER_AUDIO_DATA_BACK = 3001;
- }
|