GameEnum.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. using System;
  2. using UnityEngine;
  3. public class GameEnum
  4. {
  5. /// <summary>Http服务器地址</summary>
  6. //public static string ServerHttpURL = "http://bcbi.shadowcreator.com/server/";
  7. public static string ServerHttpURL = "http://office.ghz-tech.com:3437/server/";
  8. // public static string ServerHttpURL = "http://office.ghz-tech.com:9906/server/";
  9. //public static string ServerSocketIPStr = "120.131.15.239";//最早用的 120.131.15.239
  10. //public static string ServerSocketIPStr = "120.92.90.183";//最早用的 120.131.15.239
  11. //public static int ServerSocketPortStr = 9527;//
  12. public const int ROOM_NAME_MAX_LENGHT = 6;//名字的最大长度
  13. public const int VISTOR_NAME_MAX_LENGHT = 10;//游客名字的最大长度
  14. public static string ResourcePath = "Prefabs/timeline/";
  15. public static string MAIN_SCENE_NAME = "StartScene_henry";//游戏加载的场景
  16. public static string Loading_SCENE_NAME = "Loading";//游戏加载的场景
  17. public static string MESSAGE_GAME_LOAD = "MESSAGE_GAME_LOAD";//MR游戏开始加载
  18. public static string MESSAGE_GAME_START = "MESSAGE_GAME_START";//游戏开始
  19. public static string MESSAGE_GAME_STOP = "MESSAGE_GAME_STOP";//游戏结束
  20. public static string MESSAGE_GAME_QUIT = "MESSAGE_GAME_QUIT";//游戏退出
  21. public static string MESSAGE_SCORE_ADD = "MESSAGE_SCORE_ADD";//加分
  22. public static string MESSAGE_SCORE_DEC = "MESSAGE_SCORE_DEC";//扣分
  23. public static string MESSAGE_EXPLAIN_CLICK = "MESSAGE_EXPLAIN_CLICK";//讲解按钮的点击事件派发
  24. public static string MESSAGE_PARCTICE_CLICK = "MESSAGE_PARCTICE_CLICK";//练习按钮的点击事件派发
  25. public static string MESSAGE_TAB_CHANGE = "MESSAGE_TAB_CHANGE";//TAB切换卡
  26. public static string MESSAGE_TIMELINBUTTON_CLICK = "MESSAGE_TIMELINBUTTON_CLICK";//timeline 按钮点击事件
  27. public static string MESSAGE_TONGBU_TIME_CLICK_PLAY_DATA = "MESSAGE_TONGBU_TIME_CLICK_PLAY_DATA";//同步给TimeLine预制件的播放事件
  28. public static string MESSAGE_VUFORIA_SYNC_POS = "MESSAGE_VUFORIA_SYNC_POS";// Vuforia同步位置
  29. #region 按钮的点击事件派发
  30. public static string MESSAGE_CHAPTER_PLAY_BTN_CLICK = "MESSAGE_CHAPTER_PLAY_BTN_CLICK";//章节按钮被点击
  31. public static string MESSAGE_MR_BTN_CLICK = "MESSAGE_MR_BTN_CLICK";//MR播放按钮点击了
  32. public static string MESSAGE_SEND_MR_CLICK_DATA = "MESSAGE_SEND_MR_CLICK_DATA";//MR点击的数据
  33. public static string MESSAGE_MR_PLAY_DATA = "MESSAGE_MR_PLAY_DATA";//MR播放
  34. #endregion
  35. public static string MESSAGE_REFRESH_ROOM_LIST_VIEW = "MESSAGE_REFRESH_ROOM_LIST_VIEW";//TAB切换卡
  36. public static string MESSAGE_REFRESH_USER_LIST_DATA = "MESSAGE_REFRESH_USER_LIST_DATA";// 展示课程教学的UI面板
  37. public static string MESSAGE_REFRESH_LINE_TARGET_POS_DATA = "MESSAGE_REFRESH_LINE_TARGET_POS_DATA";// 射线指向坐标的更新
  38. public static string MESSAGE_REFRESH_STUDENT_TASK_LIST_SHOW = "MESSAGE_REFRESH_STUDENT_TASK_LIST_SHOW";//更新面板上学生答题数据的显示
  39. public static string MESSAGE_SEND_PLAYER_SOCKET_DATA = "MESSAGE_SEND_PLAYER_SOCKET_DATA";//Socket发送个人信息
  40. public static string MESSAGE_SEND_CREATE_ROOM_SOCKET_DATA = "MESSAGE_SEND_CREATE_ROOM_SOCKET_DATA";//Socket发送创建房间信息
  41. public static string MESSAGE_SEND_TEACHER_LINE_POS_SOCKET_DATA = "MESSAGE_SEND_TEACHER_LINE_POS_SOCKET_DATA";//Socket发送射线信息
  42. public static string MESSAGE_SEND_STUDENT_SELECT_SOCKET_DATA = "MESSAGE_SEND_STUDENT_SELECT_SOCKET_DATA";//Socket发送基本操作信息
  43. public static string MESSAGE_SEND_TIMELINE_CLICK_PLAY_BTN = "MESSAGE_SEND_TIMELINE_CLICK_BTN";//TimeLine主动触发的开始
  44. public static string MESSAGE_SEND_TIMELINE_CLICK_PAUSE_BTN = "MESSAGE_SEND_TIMELINE_CLICK_PAUSE_BTN";//TimeLine主动触发的暂停
  45. public static string MESSAGE_SEND_TIMELINE_CLICK_STOP_BTN = "MESSAGE_SEND_TIMELINE_CLICK_STOP_BTN";//TimeLine主动触发的停止
  46. public static string MESSAGE_SEND_TIMELINE_DATA = "MESSAGE_SEND_TIMELINE_DATA";//TimeLine 的播放数据
  47. public static string MESSAGE_SHOW_MSG_POP = "MESSAGE_SHOW_MSG_POP";// 消息提示框
  48. public static string MESSAGE_SHOW_MSG_NOTICE = "MESSAGE_SHOW_MSG_NOTICE";// 消息提示框 没有确定的
  49. public static string MESSAGE_HIDE_MSG_NOTICE = "MESSAGE_HIDE_MSG_NOTICE";// 消息提示框 隐藏
  50. public static string MESSAGE_SHOW_RECONNECT_POP = "MESSAGE_SHOW_RECONNECT_POP";// 显示重连
  51. public static string MESSAGE_SHOW_LOGOUT = "MESSAGE_SHOW_LOGOUT";// 被顶掉了 账号登出
  52. public static string MESSAGE_RESET_ACCOUNT = "MESSAGE_RESET_ACCOUNT";//账号重置
  53. public static string MESSAGE_SEND_MSG_TO_NEW_STUDENT = "MESSAGE_SEND_MSG_TO_NEW_STUDENT";// 给新进来的同学同步消息
  54. public static string MESSAGE_SHOW_CHANGE_CONFIRM_POP = "MESSAGE_SHOW_CHANGE_CONFIRM_POP";// 切换解说的确认框
  55. public static string MESSAGE_SEND_CHANGE_MASTER_SOCKET_DATA = "MESSAGE_SEND_CHANGE_MASTER_SOCKET_DATA";//发送切换房主的广播
  56. public static string MESSAGE_SEND_CHANGE_ROOM_OWNER_REFRESH = "MESSAGE_SEND_CHANGE_ROOM_OWNER_REFRESH";// 消息提示框
  57. public static string MESSAGE_SEND_CREATE_PUBLIC_ROOM_SOCKET_DATA = "MESSAGE_SEND_CREATE_PUBLIC_ROOM_SOCKET_DATA";// 临时的一个 创建公开课的按钮事件响应
  58. public static string MESSAGE_SEND_CHANGE_TRACK_IMAGE = "MESSAGE_SEND_CHANGE_TRACK_IMAGE";//开启或者关闭识别
  59. public static string MESSAGE_SEND_AUDIO_DATA = "MESSAGE_SEND_AUDIO_DATA";//发送音频数据
  60. public static string MESSAGE_ACCEPT_AUDIO_DATA = "MESSAGE_ACCEPT_AUDIO_DATA";//广播接收到的音频数据
  61. public static string MESSAGE_OPEN_COURSE_PANNEL = "MESSAGE_OPEN_COURSE_PANNEL";// 课程开启
  62. public static string MESSAGE_CLOSE_COURSE_PANNEL = "MESSAGE_CLOSE_COURSE_PANNEL";// 关闭房间课程的面板
  63. public static string MESSAGE_PREFAB_LOAD_FINISH_SHOW = "MESSAGE_PREFAB_LOAD_FINISH_SHOW";// 预制件加载完成开始显示
  64. public static string MESSAGE_ENTER_COURSE = "MESSAGE_ENTER_COURSE";//进入课程
  65. public static string MESSAGE_EXIT_COURSE = "MESSAGE_EXIT_COURSE";//退出课程
  66. public static string MESSAGE_SHOW_COURSE = "MESSAGE_SHOW_COURSE";//显示课程
  67. public static string MESSAGE_HIDE_COURSE = "MESSAGE_HIDE_COURSE";//隐藏课程
  68. public static string MESSAGE_HTTP_COURSE_DATA_BACK = "MESSAGE_HTTP_COURSE_DATA_BACK";//课程信息返回
  69. public static string MESSAGE_SHOW_IMAGE_POP = "MESSAGE_SHOW_IMAGE_POP";//展示详细图片的面板
  70. public static string MESSAGE_HIDE_IMAGE_POP = "MESSAGE_HIDE_IMAGE_POP";//隐藏详细图片的面板
  71. public static string MESSAGE_UPDATE_START = "MESSAGE_UPDATE_START";//开始更新
  72. public static string MESSAGE_SHOW_CODE_ERROR = "MESSAGE_SHOW_CODE_ERROR";// 验证码错误
  73. public static string MESSAGE_DRAW_START = "MESSAGE_DRAW_START";//开始画
  74. public static string MESSAGE_DRAW_END = "MESSAGE_DRAW_END";//开始画
  75. public static string MESSAGE_DRAW_UNDO_PREVIOUS = "MESSAGE_DRAW_UNDO_PREVIOUS";//撤销上一步画
  76. public static string MESSAGE_DRAW_UNDO_ALL = "MESSAGE_DRAW_UNDO_ALL";//撤销所有的画
  77. public static string MESSAGE_SEND_DRAW_SOCKET_DATA = "MESSAGE_SEND_DRAW_DATA";//画画的数据传递
  78. public static string MESSAGE_ACCEPT_DRAW_SOCKET_DATA = "MESSAGE_ACCEPT_DRAW_SOCKET_DATA";//画画的数据接收
  79. public static string MESSAGE_SEND_AUDIO_SOCKET_DATA = "MESSAGE_SEND_AUDIO_SOCKET_DATA";//语音的数据传递
  80. public static string MESSAGE_ACCEPT_AUDIO_SOCKET_DATA = "MESSAGE_ACCEPT_AUDIO_SOCKET_DATA";//语音的数据接收
  81. public static string MESSAGE_CREATE_CHAT_ROOM_OK = "MESSAGE_CREATE_CHAT_ROOM_OK";//聊天室房间创建成功
  82. public static string MESSAGE_HTTP_DATA_BACK = "MESSAGE_HTTP_DATA_BACK";//http信息返回
  83. public static string MESSAGE_SEND_UI_CHANGE_DATA = "MESSAGE_SEND_UI_CHANGE_DATA";//UI变化的数据发送
  84. public static string MESSAGE_BACK_UI_CHANGE_DATA = "MESSAGE_BACK_UI_CHANGE_DATA";//UI变化的数据接收
  85. public static string MESSAGE_TONGBU_UI_CHANGE = "MESSAGE_TONGBU_UI_CHANGE";//根据接收的UI变化数据去同步界面
  86. public static string MESSAGE_SHOW_PANNEL_BY_TYPE = "MESSAGE_SHOW_PANNEL_BY_TYPE";//根据参数容器类型 显示
  87. public static string MESSAGE_SHOW_POP_BY_TYPE = "MESSAGE_SHOW_POP_BY_TYPE";//弹框显示
  88. public static string MESSAGE_HIDE_PANNEL_BY_TYPE = "MESSAGE_HIDE_PANNEL_BY_TYPE";//隐藏Pannel
  89. public static string MESSAGE_HIDE_POP_BY_TYPE = "MESSAGE_HIDE_POP_BY_TYPE";//弹框影藏
  90. public static string MESSAGE_HIDE_BAR_BY_TYPE = "MESSAGE_HIDE_BAR_BY_TYPE";//动作栏隐藏
  91. public static string MESSAGE_SHOW_CARD = "MESSAGE_SHOW_CARD";//切换答题卡的数据
  92. #if UNITY_EDITOR
  93. public static string asset_path = Application.dataPath + "/StreamingAssets";
  94. #elif UNITY_IPHONE || UNITY_ANDROID
  95. public static string asset_path = Application.persistentDataPath;
  96. #endif
  97. //0 老师 1学生 2 ipad端 3 可以创建公开课也可以创建本地课的 4后台管理员
  98. public const short STUDENT_TYPE = 1;
  99. public const short TEACHER_TYPE = 0;
  100. public const short IPAD_TYPE = 2;
  101. public const short ROOT_TYPE = 3;
  102. public const short MANAGER_TYPE = 4;
  103. }
  104. public enum Language
  105. {
  106. Chinese,//中文
  107. English,//英文
  108. }
  109. public enum CoursewareDir
  110. {
  111. Center,//原地缩放
  112. Up,
  113. Down,
  114. Left,
  115. Right,
  116. LeftUp,
  117. LeftDown,
  118. RightUp,
  119. RightDown
  120. }
  121. public enum BrocastClassType
  122. {
  123. Audio,//音频内容
  124. MR,
  125. UIChange,//UI变化 引起的消息传递
  126. DrawData,//画画的信息
  127. CoreData,// 这个主要处理老师和学生直接的互动消息
  128. }
  129. //TimeLine的UI点击类型
  130. public enum TimeLineUIClickType
  131. {
  132. Play,//播放
  133. Pause,//暂停
  134. Replay,//重新开始
  135. Skip,//快进
  136. Stop,//停止
  137. Jump,//大跳
  138. Change,//换片
  139. }
  140. public enum PopType
  141. {
  142. Default,//不知道是啥
  143. LoginSelect,//登陆方式的选择框
  144. Login,//登陆
  145. DeviceLogin,//设备号登陆的弹框
  146. Msg,//消息提示
  147. Image,//放大显示图片
  148. Answer,//显示答案
  149. RoomList,//房间列表
  150. SubjectList,//课程列表
  151. CourseList,//课程列表
  152. CreateRoom,//创建自定义房间的弹框
  153. Reconnect,//断线重连的弹框
  154. BadConnecting,//糟糕的网络
  155. ChangeMaster,//换房主
  156. ServerList,//服务器列表
  157. }
  158. public enum PannelType
  159. {
  160. Default,//不知道是啥
  161. Goal,//实验目的
  162. Procedure,//实验内容
  163. Question,//题目
  164. Conclusion,//实验结论
  165. MR,//MR
  166. }
  167. public enum BarType
  168. {
  169. Default,//不知道是啥
  170. ChapterTimeLine,//章节对应的Timeline的播放
  171. PPT,//幻灯片
  172. Movie,//MP4的播放
  173. StudentLook,//学生观察
  174. MR,
  175. }