OuterMessage.proto 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. syntax = "proto3";
  2. package KYFramework.Network;
  3. message C2R_Ping // IRequest
  4. {
  5. int32 RpcId = 90;
  6. }
  7. message R2C_Ping // IResponse
  8. {
  9. int32 RpcId = 90;
  10. int32 Error = 91;
  11. string Message = 92;
  12. }
  13. message C2S_Test // IRequest
  14. {
  15. int32 RpcId = 90;
  16. string Message = 92;
  17. }
  18. message S2C_Test // IResponse
  19. {
  20. int32 RpcId = 90;
  21. int32 Error = 91;
  22. string Message = 92;
  23. }
  24. message C2S_TestMessage // IMessage
  25. {
  26. string Message = 90;
  27. }
  28. message S2C_TestMessage // IMessage
  29. {
  30. string Message = 90;
  31. }
  32. /* 地理点:经纬高 */
  33. message Point
  34. {
  35. double Longitude = 1;
  36. double Latitude = 2;
  37. double Altitude = 3;
  38. }
  39. /* 基地 */
  40. message Base
  41. {
  42. string BaseName = 1;
  43. Point BaseLocation = 2;
  44. }
  45. /* 行政区气象数据 */
  46. message CityWeather
  47. {
  48. /* 行政区域名称:XX市 */
  49. string CityName = 1;
  50. /* 天气状况:晴/多云/雨等 */
  51. string WeatherCondition = 2;
  52. /* 风向:东南西北 */
  53. string WindDirection = 3;
  54. /* 风速 */
  55. double WindVelocity = 4;
  56. /* 温度 */
  57. double Temperature = 5;
  58. /* 湿度 */
  59. double Humidity = 6;
  60. /* 能见度 */
  61. double Visibility = 7;
  62. }
  63. /* 航线 */
  64. message AirRoute
  65. {
  66. string Name = 1;
  67. repeated Point PointArr = 2;
  68. }
  69. /* 圆形禁飞区 */
  70. message NoFlyZoneCircle
  71. {
  72. string NoFlyZoneType = 1;
  73. Point NoFlyZoneCenterLocation = 2;
  74. double NoFlyZoneRadius = 3;
  75. }
  76. /* 矩形禁飞区 */
  77. message NoFlyZoneRect
  78. {
  79. string NoFlyZoneType = 1;
  80. repeated Point NoFlyZoneRectangleLocation = 2;
  81. }
  82. /* 爬升航段 */
  83. message ClimbSegment
  84. {
  85. double ClimbVelocity = 1;
  86. double ClimbFuelConsumptionRate = 2;
  87. }
  88. /* 下降航段 */
  89. message DescentSegment
  90. {
  91. double DescentVelocity = 1;
  92. double DescentFuelConsumptionRate = 2;
  93. }
  94. /* 巡航航段 */
  95. message CruiseSegment
  96. {
  97. double CruiseAltitude = 1;
  98. double CruiseVelocity = 2;
  99. double CruiseFuelConsumptionRate = 3;
  100. }
  101. /* 转弯航段 */
  102. message TurningSegment
  103. {
  104. double TurningRadius = 1;
  105. double TurningVelocity = 2;
  106. double ClimbFuelConsumptionRate = 3;
  107. }
  108. /* 飞行计划编辑器(输入) */
  109. message C2S_FlyPlanInput // IMessage
  110. {
  111. /* ------------------------------ 任务 ------------------------------ */
  112. /* 任务名称 */
  113. string MissionName = 1;
  114. /* 任务类型 */
  115. string MissionType = 2;
  116. /* 任务矩形区域顶点集合 */
  117. repeated Point MissionRectangle = 3;
  118. /* ------------------------------ 飞机 ------------------------------ */
  119. /* 最大起飞重量 */
  120. double MaxTakeoffWeight = 4;
  121. /* 起飞空重 */
  122. double TakeoffEmptyWeight = 5;
  123. /* 最大航程 */
  124. double MaxFlightRange = 6;
  125. /* 续航时间 */
  126. double MaxFlightTime = 7;
  127. /* 实用升限 */
  128. double ServiceCeiling = 8;
  129. /* 最大载油量 */
  130. double MaxFuelCapacity = 9;
  131. /* 最大商载量 */
  132. double MaxWeightCapacity = 10;
  133. /* 载荷名称 */
  134. string LoadName = 11;
  135. /* 载荷数量 */
  136. int32 LoadQuantity = 12;
  137. /* 载荷重量 */
  138. double LoadWeight = 13;
  139. /* ------------------------------ 气象 ------------------------------ */
  140. /* 行政区气象集合 */
  141. repeated CityWeather CityWeatherArr = 14;
  142. /* ------------------------------ 基地 ------------------------------ */
  143. /* 基地集合 */
  144. repeated Base BaseArr = 15;
  145. /* ------------------------------ 航线 ------------------------------ */
  146. /* 航线集合 */
  147. repeated AirRoute AirRouteArr = 16;
  148. /* ------------------------------ 终点 ------------------------------ */
  149. /* 任务终点选择:Base代表返回基地,Point代表前往定点,Hover代表原地盘旋等待 */
  150. string EndSelection = 17;
  151. /* 终点位置集合 */
  152. repeated Point TerminusLocation = 18;
  153. /* ------------------------------ 禁飞区 ------------------------------ */
  154. /* 圆形禁飞区集合 */
  155. repeated NoFlyZoneCircle NoFlyZoneCircleArr = 19;
  156. /* 矩形禁飞区集合 */
  157. repeated NoFlyZoneRect NoFlyZoneRectArr = 20;
  158. /* ------------------------------ 火场 ------------------------------ */
  159. /* 目视距离 */
  160. double VisualDistance = 21;
  161. /* 火场绕行方向:Clockwise表示顺时针,Anticlockwise表示逆时针 */
  162. string DetourDirection = 22;
  163. /* 火场绕行圈数 */
  164. int32 NumberOfDetour = 23;
  165. /* 绕行间隔距离 */
  166. double DetourIntervalDistance = 24;
  167. /* 绕行速度 */
  168. double DetourVelocity = 25;
  169. /* 火点位置集合 */
  170. repeated Point FirePointLocation = 26;
  171. /* ------------------------------ 航段 ------------------------------ */
  172. /* 最小转弯半径 */
  173. double MinTurningRadius = 27;
  174. /* 最大转弯速度 */
  175. double MaxTurningVelocity = 28;
  176. /* 最大爬升速度 */
  177. double MaxClimbVelocity = 29;
  178. /* 最大下降速度 */
  179. double MaxDescentVelocity = 30;
  180. /* 最大巡航速度 */
  181. double MaxCruiseVelocity = 31;
  182. /* 爬升航段集合 */
  183. repeated ClimbSegment ClimbSegmentArr = 32;
  184. /* 下降航段集合 */
  185. repeated DescentSegment DescentSegmentArr = 33;
  186. /* 巡航航段集合 */
  187. repeated CruiseSegment CruiseSegmentArr = 34;
  188. /* 转弯航段集合 */
  189. repeated TurningSegment TurningSegmentArr = 35;
  190. /* ------------------------------ 飞行器编号 ------------------------------ */
  191. /* 飞行器编号:按照“子任务-编队号-机号”方式命名” */
  192. string AircraftID = 36;
  193. }
  194. message C2S_Join // IMessage
  195. {
  196. }
  197. /* 飞行计划编辑器(输出) */
  198. message S2C_FlyPlanOutput // IMessage
  199. {
  200. /* 飞行器编号 */
  201. string AircraftID = 1;
  202. /* 飞行航路点集合 */
  203. repeated PlanTurningPoint PlanTurningPointArr = 2;
  204. }
  205. /* 计划航路点 */
  206. message PlanTurningPoint
  207. {
  208. /* 名称:爬升、巡航、转弯、下降、观测火场 */
  209. string Name = 1;
  210. /* 位置 */
  211. Point Location = 2;
  212. /* 类型:普通、转弯、取水任务、灭火任务 */
  213. string Type = 3;
  214. /* 速度 */
  215. double Velocity = 4;
  216. /* 航段油耗 */
  217. double SegmentConsumption = 5;
  218. /* 航段飞行时间 */
  219. double SegmentTime = 6;
  220. /* 转弯半径 */
  221. double Radius = 7;
  222. }
  223. /* 航路曲线(输入) */
  224. /* 航路曲线(输出) */
  225. message S2C_TurningPoint // IMessage
  226. {
  227. /* 飞行器编号 */
  228. string AircraftID = 1;
  229. /* 飞行航路点名称 */
  230. string TurningPointName = 2;
  231. /* 当前任务阶段 */
  232. string PresentMission = 4;
  233. /* 当前位置 */
  234. Point PresentLocation = 13;
  235. /* 当前飞行速度 */
  236. double PresentVelocity = 16;
  237. int32 NextTurningPointIndex = 17;
  238. /* 飞行器编号 */
  239. string TaskId = 18;
  240. }
  241. message C2S_GetReport // IRequest
  242. {
  243. int32 RpcId = 90;
  244. }
  245. message S2C_GetReport // IResponse
  246. {
  247. int32 RpcId = 90;
  248. int32 Error = 91;
  249. string Message = 92;
  250. repeated ResportWithTaskName Reports = 93;
  251. }
  252. message ResportWithTaskName
  253. {
  254. int32 FirePointId = 1;
  255. repeated EntitySheetReportValue EntitySheetReportValueArr = 2;
  256. }
  257. /* 仿真开始 */
  258. message C2S_StmulationStart // IMessage
  259. {
  260. }
  261. /* 仿真倍速调整 */
  262. message C2S_StmulationTimeScale // IMessage
  263. {
  264. int32 TimeScale = 1;
  265. }
  266. /* 仿真结束 */
  267. message S2C_StmulationEnd // IMessage
  268. {
  269. int32 FirePointId = 1;
  270. repeated EntitySheetReportValue EntitySheetReportValueArr = 2;
  271. }
  272. message EntitySheetReportValue
  273. {
  274. string Name = 1;
  275. repeated SheetReportValue SheetReportValueArr = 2;
  276. }
  277. message SheetReportValue
  278. {
  279. string Name = 1;
  280. repeated ReportValue ValueArr = 2;
  281. }
  282. message ReportValue
  283. {
  284. string Name = 1;
  285. string Value = 2;
  286. }
  287. /* 请求 效能评估 */
  288. message C2S_SimulationResult // IRequest
  289. {
  290. int32 RpcId = 90;
  291. }
  292. /* 返回 效能评估 */
  293. message S2C_SimulatinResult // IResponse
  294. {
  295. int32 RpcId = 1;
  296. int32 Error = 2;
  297. string Message = 3;
  298. /* 任务响应时间(秒) */
  299. double TaskResponseTime = 4;
  300. /* 总任务耗时(秒) */
  301. double TaskTotalTime = 5;
  302. /* 单机入场时间(秒) */
  303. double SingleJoinTime = 6;
  304. /* 单机有效任务时长(秒) */
  305. double SingleEffectiveTaskTime = 7;
  306. /* 单机总投送人数(人) */
  307. double SingleAll_Peopeo = 8;
  308. /* 单机单次投送人数(人) */
  309. double SingleEach_People = 9;
  310. /* 巡护速度(km/h) */
  311. double Speed_Patrol = 10;
  312. /* 巡护航程 (km)*/
  313. double Voyage_Patrol = 11;
  314. /* 总巡护耗时 (秒)*/
  315. double Time_AllPatrol = 12;
  316. /* 火情入场时间 (秒)*/
  317. double FireJoinTime = 13;
  318. /* 单机总油耗 (kg)*/
  319. double Fuel_Single = 14;
  320. /* 单机机场使用情况 */
  321. string AirportUseSituation = 15;
  322. /* 单机导航使用情况 */
  323. string NavUseSituation = 16;
  324. /* 消防巡护任务经济性评估参数 */
  325. /* 单机总任务时长(秒) */
  326. double FireJoinTime_Economical = 17;
  327. /* 单机总油耗(kg) */
  328. double Fuel_Single_Economical = 18;
  329. /* 单机机场使用情况 */
  330. string AirportUseSituation_Economical = 19;
  331. /* 单机导航使用情况 */
  332. string NavUseSituation_Economical = 20;
  333. }
  334. /* 火焰蔓延输出 */
  335. message S2C_FireSpread // IMessage
  336. {
  337. string AircraftId = 1;
  338. int32 FirePointId = 2;
  339. double fireGrids = 3;
  340. double firedGrids = 4;
  341. }
  342. message S2C_Over // IMessage
  343. {
  344. }