Enums.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace CCS.App
  5. {
  6. public enum UdpConnectState
  7. {
  8. None = 0,
  9. GotServerIP = 1,
  10. StartConnect = 2,
  11. Connected = 3,
  12. NotConnect = 4,
  13. }
  14. public enum UdpConnectInfoType
  15. {
  16. None = 0,
  17. Add = 1,
  18. Remove = 2,
  19. Refresh = 3,
  20. }
  21. public enum NetType
  22. {
  23. None =0,
  24. Tcp =1,
  25. Udp = 2,
  26. }
  27. public enum MessageTransportType
  28. {
  29. None = 0,
  30. Request = 1,
  31. Response = 2,
  32. Broadcast = 3,
  33. }
  34. public enum MessageContentType
  35. {
  36. None = 0,
  37. //udp 0-20
  38. UDP_IP_INFO_BROADCAST_2C = 1,
  39. UDP_IP_INFO_STATE_2S = 2,
  40. UDP_IP_START_CONNECT_TCP_2C = 3,
  41. UDP_IP_INFO_STATE_RESET_2C = 4,
  42. //tcp 21-100
  43. TCP_PLAYER_TRANSFOMR_2S = 21,// 位移变换
  44. TCP_GET_FUNCTION_STATE_2C = 22,//
  45. TCP_FUNCTION_STATE_2S = 23,// 功能信息更新
  46. TCP_TEXT = 24,// 文本信息
  47. TCP_STATE_CODE = 25,// TCP 状态码
  48. TCP_FUNCTION_CONFIG = 26,// 客户端配置表
  49. TCP_GET_CONFIG_2S = 27,// 获取客户端配置表
  50. TCP_Heartbeat_2S = 50,//心跳
  51. TCP_KeepAlive_2C = 51,//服务器发起的心跳
  52. }
  53. public enum NetStateCode
  54. {
  55. None = 0,
  56. Client_Scene_Transition = 1,// 客户端场景转换
  57. Client_Function_Scene_Mismatch = 2,//功能场景不匹配
  58. Clinet_Function_Not_Exist = 3,//客户端功能不存在
  59. Client_Scence_Not_Exist = 4,// 客户端场景不存在
  60. }
  61. public enum FunctionState
  62. {
  63. None = 0,
  64. Open = 1,
  65. Close = 2,
  66. Wait = 3,
  67. }
  68. public enum FunctionType
  69. {
  70. None = 0,
  71. GotoScence =1,//跳转场景
  72. Switch =2,//功能开关
  73. RangeValue = 3,// 范围值(滑动条)
  74. FlowValue = 4,// 流程步骤值(步骤系列)
  75. }
  76. public enum FunctionButtonType
  77. {
  78. None = 0,
  79. OnlyOpen = 1,
  80. OpenAndClose = 2,
  81. }
  82. public enum ModuleType
  83. {
  84. Main = 0,
  85. ThreeKingdoms = 1,// 三国
  86. Medical = 2,// 医疗
  87. Industrial=3,//工业
  88. Chemistry = 4 ,//化学
  89. Subway=5,//地铁
  90. FutureCity=6,//未来城市
  91. FireSafety = 7,//火灾
  92. Museum =8,//博物馆
  93. Steppermachine=9,//光刻机
  94. Aquarium=10,//水族馆
  95. //添加新场景标签
  96. PartyBuilding=11,//党建
  97. }
  98. public enum MainFunctionType
  99. {
  100. MainScence = 0, // 主场景
  101. }
  102. public enum ThreeKingdomsFunctionType
  103. {
  104. None = 0,
  105. Sworn_Brother = 1,//桃园三结义
  106. Yuan_Men_Shoot = 2,// 辕门射戟
  107. Hu_Lao_Pass = 3,// 虎牢关
  108. Chi_Bi_Fire = 4,// 火烧赤壁
  109. Main_Scence =5,//主场景
  110. }
  111. public enum MedicalFuntionType
  112. {
  113. None = 0,
  114. Into_Scene = 1,// 进入场景
  115. Human_Body = 2,//人体
  116. Main_Scence = 3,//主场景
  117. }
  118. public enum IndustrialFuntionType
  119. {
  120. None = 0,
  121. Into_Scene = 1,// 进入工业场景
  122. Industria_Handle = 2,//工业操作内容
  123. Main_Scence = 3,//主场景
  124. }
  125. public enum ChemistryFuntionType
  126. {
  127. None = 0,
  128. Into_Scene = 1,// 进入化学场景
  129. Chemistry_Handle = 2,//化学操作内容
  130. Main_Scence = 3,//主场景
  131. }
  132. public enum SubwayMapFuntionType
  133. {
  134. None = 0,
  135. Into_Scene = 1,// 进入地铁场景
  136. Fire_Handle = 2,//地铁操作内容
  137. Main_Scence = 3,//主场景
  138. }
  139. public enum FireSafetyFuntionType
  140. {
  141. None = 0,
  142. Into_Scene = 1,// 进入火灾场景
  143. Fire_Handle = 2,//火灾操作内容
  144. Main_Scence = 3,//主场景
  145. }
  146. public enum FutureCityFuntionType
  147. {
  148. None = 0,
  149. Into_Scene = 1,// 进入未来城市场景
  150. Fire_Handle = 2,//未来城市操作内容
  151. Main_Scence = 3,//主场景
  152. }
  153. public enum MuseumFuntionType
  154. {
  155. None = 0,
  156. Into_Scene = 1,// 进入博物馆场景
  157. Museum_Handle = 2,//博物馆操作内容
  158. Main_Scence = 3,//主场景
  159. }
  160. public enum SteppermachineFuntionType
  161. {
  162. None = 0,
  163. Into_Scene = 1,// 进入光刻机场景
  164. Machine_Handle = 2,//光刻机操作内容
  165. Main_Scence = 3,//主场景
  166. }
  167. public enum AquariumFuntionType
  168. {
  169. None = 0,
  170. Into_Scene = 1,// 进入工业场景
  171. Aquarium_Handle = 2,//工业操作内容
  172. Main_Scence = 3,//主场景
  173. }
  174. public enum PartyBuildingFuntionType
  175. {
  176. None = 0,
  177. Into_Scene = 1,// 进入光刻机场景
  178. PartyBuilding_Handle = 2,//光刻机操作内容
  179. Main_Scence = 3,//主场景
  180. }
  181. public enum StartInspect
  182. {
  183. Undetected,//未检测 。。。。默认
  184. To_be_tested,//待检测
  185. qualified,//合格
  186. Unqualified//不合格
  187. }
  188. }