123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- using System;
- using UnityEngine;
- public class GameEnum
- {
- /// <summary>Http服务器地址</summary>
- //public static string ServerHttpURL = "http://bcbi.shadowcreator.com/server/";
- public static string ServerHttpURL = "http://office.ghz-tech.com:3437/server/";
- // public static string ServerHttpURL = "http://office.ghz-tech.com:9906/server/";
- //public static string ServerSocketIPStr = "120.131.15.239";//最早用的 120.131.15.239
- //public static string ServerSocketIPStr = "120.92.90.183";//最早用的 120.131.15.239
- //public static int ServerSocketPortStr = 9527;//
- public const int ROOM_NAME_MAX_LENGHT = 6;//名字的最大长度
- public const int VISTOR_NAME_MAX_LENGHT = 10;//游客名字的最大长度
- public static string ResourcePath = "Prefabs/timeline/";
- public static string MAIN_SCENE_NAME = "StartScene_henry";//游戏加载的场景
- public static string Loading_SCENE_NAME = "Loading";//游戏加载的场景
- public static string MESSAGE_GAME_LOAD = "MESSAGE_GAME_LOAD";//MR游戏开始加载
- public static string MESSAGE_GAME_START = "MESSAGE_GAME_START";//游戏开始
- public static string MESSAGE_GAME_STOP = "MESSAGE_GAME_STOP";//游戏结束
- public static string MESSAGE_GAME_QUIT = "MESSAGE_GAME_QUIT";//游戏退出
- public static string MESSAGE_SCORE_ADD = "MESSAGE_SCORE_ADD";//加分
- public static string MESSAGE_SCORE_DEC = "MESSAGE_SCORE_DEC";//扣分
- public static string MESSAGE_EXPLAIN_CLICK = "MESSAGE_EXPLAIN_CLICK";//讲解按钮的点击事件派发
- public static string MESSAGE_PARCTICE_CLICK = "MESSAGE_PARCTICE_CLICK";//练习按钮的点击事件派发
- public static string MESSAGE_TAB_CHANGE = "MESSAGE_TAB_CHANGE";//TAB切换卡
- public static string MESSAGE_TIMELINBUTTON_CLICK = "MESSAGE_TIMELINBUTTON_CLICK";//timeline 按钮点击事件
- public static string MESSAGE_TONGBU_TIME_CLICK_PLAY_DATA = "MESSAGE_TONGBU_TIME_CLICK_PLAY_DATA";//同步给TimeLine预制件的播放事件
- public static string MESSAGE_VUFORIA_SYNC_POS = "MESSAGE_VUFORIA_SYNC_POS";// Vuforia同步位置
- #region 按钮的点击事件派发
- public static string MESSAGE_CHAPTER_PLAY_BTN_CLICK = "MESSAGE_CHAPTER_PLAY_BTN_CLICK";//章节按钮被点击
- public static string MESSAGE_MR_BTN_CLICK = "MESSAGE_MR_BTN_CLICK";//MR播放按钮点击了
- public static string MESSAGE_SEND_MR_CLICK_DATA = "MESSAGE_SEND_MR_CLICK_DATA";//MR点击的数据
- public static string MESSAGE_MR_PLAY_DATA = "MESSAGE_MR_PLAY_DATA";//MR播放
- #endregion
- public static string MESSAGE_REFRESH_ROOM_LIST_VIEW = "MESSAGE_REFRESH_ROOM_LIST_VIEW";//TAB切换卡
- public static string MESSAGE_REFRESH_USER_LIST_DATA = "MESSAGE_REFRESH_USER_LIST_DATA";// 展示课程教学的UI面板
- public static string MESSAGE_REFRESH_LINE_TARGET_POS_DATA = "MESSAGE_REFRESH_LINE_TARGET_POS_DATA";// 射线指向坐标的更新
- public static string MESSAGE_REFRESH_STUDENT_TASK_LIST_SHOW = "MESSAGE_REFRESH_STUDENT_TASK_LIST_SHOW";//更新面板上学生答题数据的显示
- public static string MESSAGE_SEND_PLAYER_SOCKET_DATA = "MESSAGE_SEND_PLAYER_SOCKET_DATA";//Socket发送个人信息
- public static string MESSAGE_SEND_CREATE_ROOM_SOCKET_DATA = "MESSAGE_SEND_CREATE_ROOM_SOCKET_DATA";//Socket发送创建房间信息
- public static string MESSAGE_SEND_TEACHER_LINE_POS_SOCKET_DATA = "MESSAGE_SEND_TEACHER_LINE_POS_SOCKET_DATA";//Socket发送射线信息
- public static string MESSAGE_SEND_STUDENT_SELECT_SOCKET_DATA = "MESSAGE_SEND_STUDENT_SELECT_SOCKET_DATA";//Socket发送基本操作信息
- public static string MESSAGE_SEND_TIMELINE_CLICK_PLAY_BTN = "MESSAGE_SEND_TIMELINE_CLICK_BTN";//TimeLine主动触发的开始
- public static string MESSAGE_SEND_TIMELINE_CLICK_PAUSE_BTN = "MESSAGE_SEND_TIMELINE_CLICK_PAUSE_BTN";//TimeLine主动触发的暂停
- public static string MESSAGE_SEND_TIMELINE_CLICK_STOP_BTN = "MESSAGE_SEND_TIMELINE_CLICK_STOP_BTN";//TimeLine主动触发的停止
- public static string MESSAGE_SEND_TIMELINE_DATA = "MESSAGE_SEND_TIMELINE_DATA";//TimeLine 的播放数据
- public static string MESSAGE_SHOW_MSG_POP = "MESSAGE_SHOW_MSG_POP";// 消息提示框
- public static string MESSAGE_SHOW_MSG_NOTICE = "MESSAGE_SHOW_MSG_NOTICE";// 消息提示框 没有确定的
- public static string MESSAGE_HIDE_MSG_NOTICE = "MESSAGE_HIDE_MSG_NOTICE";// 消息提示框 隐藏
- public static string MESSAGE_SHOW_RECONNECT_POP = "MESSAGE_SHOW_RECONNECT_POP";// 显示重连
- public static string MESSAGE_SHOW_LOGOUT = "MESSAGE_SHOW_LOGOUT";// 被顶掉了 账号登出
- public static string MESSAGE_RESET_ACCOUNT = "MESSAGE_RESET_ACCOUNT";//账号重置
- public static string MESSAGE_SEND_MSG_TO_NEW_STUDENT = "MESSAGE_SEND_MSG_TO_NEW_STUDENT";// 给新进来的同学同步消息
- public static string MESSAGE_SHOW_CHANGE_CONFIRM_POP = "MESSAGE_SHOW_CHANGE_CONFIRM_POP";// 切换解说的确认框
- public static string MESSAGE_SEND_CHANGE_MASTER_SOCKET_DATA = "MESSAGE_SEND_CHANGE_MASTER_SOCKET_DATA";//发送切换房主的广播
- public static string MESSAGE_SEND_CHANGE_ROOM_OWNER_REFRESH = "MESSAGE_SEND_CHANGE_ROOM_OWNER_REFRESH";// 消息提示框
- public static string MESSAGE_SEND_CREATE_PUBLIC_ROOM_SOCKET_DATA = "MESSAGE_SEND_CREATE_PUBLIC_ROOM_SOCKET_DATA";// 临时的一个 创建公开课的按钮事件响应
- public static string MESSAGE_SEND_CHANGE_TRACK_IMAGE = "MESSAGE_SEND_CHANGE_TRACK_IMAGE";//开启或者关闭识别
- public static string MESSAGE_SEND_AUDIO_DATA = "MESSAGE_SEND_AUDIO_DATA";//发送音频数据
- public static string MESSAGE_ACCEPT_AUDIO_DATA = "MESSAGE_ACCEPT_AUDIO_DATA";//广播接收到的音频数据
- public static string MESSAGE_OPEN_COURSE_PANNEL = "MESSAGE_OPEN_COURSE_PANNEL";// 课程开启
- public static string MESSAGE_CLOSE_COURSE_PANNEL = "MESSAGE_CLOSE_COURSE_PANNEL";// 关闭房间课程的面板
- public static string MESSAGE_PREFAB_LOAD_FINISH_SHOW = "MESSAGE_PREFAB_LOAD_FINISH_SHOW";// 预制件加载完成开始显示
- public static string MESSAGE_ENTER_COURSE = "MESSAGE_ENTER_COURSE";//进入课程
- public static string MESSAGE_EXIT_COURSE = "MESSAGE_EXIT_COURSE";//退出课程
- public static string MESSAGE_SHOW_COURSE = "MESSAGE_SHOW_COURSE";//显示课程
- public static string MESSAGE_HIDE_COURSE = "MESSAGE_HIDE_COURSE";//隐藏课程
- public static string MESSAGE_HTTP_COURSE_DATA_BACK = "MESSAGE_HTTP_COURSE_DATA_BACK";//课程信息返回
- public static string MESSAGE_SHOW_IMAGE_POP = "MESSAGE_SHOW_IMAGE_POP";//展示详细图片的面板
- public static string MESSAGE_HIDE_IMAGE_POP = "MESSAGE_HIDE_IMAGE_POP";//隐藏详细图片的面板
- public static string MESSAGE_UPDATE_START = "MESSAGE_UPDATE_START";//开始更新
- public static string MESSAGE_SHOW_CODE_ERROR = "MESSAGE_SHOW_CODE_ERROR";// 验证码错误
- public static string MESSAGE_DRAW_START = "MESSAGE_DRAW_START";//开始画
- public static string MESSAGE_DRAW_END = "MESSAGE_DRAW_END";//开始画
- public static string MESSAGE_DRAW_UNDO_PREVIOUS = "MESSAGE_DRAW_UNDO_PREVIOUS";//撤销上一步画
- public static string MESSAGE_DRAW_UNDO_ALL = "MESSAGE_DRAW_UNDO_ALL";//撤销所有的画
- public static string MESSAGE_SEND_DRAW_SOCKET_DATA = "MESSAGE_SEND_DRAW_DATA";//画画的数据传递
- public static string MESSAGE_ACCEPT_DRAW_SOCKET_DATA = "MESSAGE_ACCEPT_DRAW_SOCKET_DATA";//画画的数据接收
- public static string MESSAGE_SEND_AUDIO_SOCKET_DATA = "MESSAGE_SEND_AUDIO_SOCKET_DATA";//语音的数据传递
- public static string MESSAGE_ACCEPT_AUDIO_SOCKET_DATA = "MESSAGE_ACCEPT_AUDIO_SOCKET_DATA";//语音的数据接收
- public static string MESSAGE_CREATE_CHAT_ROOM_OK = "MESSAGE_CREATE_CHAT_ROOM_OK";//聊天室房间创建成功
- public static string MESSAGE_HTTP_DATA_BACK = "MESSAGE_HTTP_DATA_BACK";//http信息返回
- public static string MESSAGE_SEND_UI_CHANGE_DATA = "MESSAGE_SEND_UI_CHANGE_DATA";//UI变化的数据发送
- public static string MESSAGE_BACK_UI_CHANGE_DATA = "MESSAGE_BACK_UI_CHANGE_DATA";//UI变化的数据接收
- public static string MESSAGE_TONGBU_UI_CHANGE = "MESSAGE_TONGBU_UI_CHANGE";//根据接收的UI变化数据去同步界面
- public static string MESSAGE_SHOW_PANNEL_BY_TYPE = "MESSAGE_SHOW_PANNEL_BY_TYPE";//根据参数容器类型 显示
- public static string MESSAGE_SHOW_POP_BY_TYPE = "MESSAGE_SHOW_POP_BY_TYPE";//弹框显示
- public static string MESSAGE_HIDE_PANNEL_BY_TYPE = "MESSAGE_HIDE_PANNEL_BY_TYPE";//隐藏Pannel
- public static string MESSAGE_HIDE_POP_BY_TYPE = "MESSAGE_HIDE_POP_BY_TYPE";//弹框影藏
- public static string MESSAGE_HIDE_BAR_BY_TYPE = "MESSAGE_HIDE_BAR_BY_TYPE";//动作栏隐藏
- public static string MESSAGE_SHOW_CARD = "MESSAGE_SHOW_CARD";//切换答题卡的数据
- #if UNITY_EDITOR
- public static string asset_path = Application.dataPath + "/StreamingAssets";
- #elif UNITY_IPHONE || UNITY_ANDROID
- public static string asset_path = Application.persistentDataPath;
- #endif
- //0 老师 1学生 2 ipad端 3 可以创建公开课也可以创建本地课的 4后台管理员
- public const short STUDENT_TYPE = 1;
- public const short TEACHER_TYPE = 0;
- public const short IPAD_TYPE = 2;
- public const short ROOT_TYPE = 3;
- public const short MANAGER_TYPE = 4;
- }
- public enum Language
- {
- Chinese,//中文
- English,//英文
- }
- public enum CoursewareDir
- {
- Center,//原地缩放
- Up,
- Down,
- Left,
- Right,
- LeftUp,
- LeftDown,
- RightUp,
- RightDown
- }
- public enum BrocastClassType
- {
- Audio,//音频内容
- MR,
- UIChange,//UI变化 引起的消息传递
- DrawData,//画画的信息
- CoreData,// 这个主要处理老师和学生直接的互动消息
- }
- //TimeLine的UI点击类型
- public enum TimeLineUIClickType
- {
- Play,//播放
- Pause,//暂停
- Replay,//重新开始
- Skip,//快进
- Stop,//停止
- Jump,//大跳
- Change,//换片
- }
- public enum PopType
- {
- Default,//不知道是啥
- LoginSelect,//登陆方式的选择框
- Login,//登陆
- DeviceLogin,//设备号登陆的弹框
- Msg,//消息提示
- Image,//放大显示图片
- Answer,//显示答案
- RoomList,//房间列表
- SubjectList,//课程列表
- CourseList,//课程列表
- CreateRoom,//创建自定义房间的弹框
- Reconnect,//断线重连的弹框
- BadConnecting,//糟糕的网络
- ChangeMaster,//换房主
- ServerList,//服务器列表
- }
- public enum PannelType
- {
- Default,//不知道是啥
- Goal,//实验目的
- Procedure,//实验内容
- Question,//题目
- Conclusion,//实验结论
- MR,//MR
- }
- public enum BarType
- {
- Default,//不知道是啥
- ChapterTimeLine,//章节对应的Timeline的播放
- PPT,//幻灯片
- Movie,//MP4的播放
- StudentLook,//学生观察
- MR,
- }
|