OuterMessage.proto 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  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. /* 飞行计划编辑器(输出) */
  195. message S2C_FlyPlanOutput // IMessage
  196. {
  197. /* 飞行器编号 */
  198. string AircraftID = 1;
  199. /* 飞行航路点集合 */
  200. repeated PlanTurningPoint PlanTurningPointArr = 2;
  201. }
  202. /* 计划航路点 */
  203. message PlanTurningPoint
  204. {
  205. /* 名称:爬升、巡航、转弯、下降、观测火场 */
  206. string Name = 1;
  207. /* 位置 */
  208. Point Location = 2;
  209. /* 类型:普通、转弯、取水任务、灭火任务 */
  210. string Type = 3;
  211. /* 速度 */
  212. double Velocity = 4;
  213. /* 航段油耗 */
  214. double SegmentConsumption = 5;
  215. /* 航段飞行时间 */
  216. double SegmentTime = 6;
  217. /* 转弯半径 */
  218. double Radius = 7;
  219. }
  220. /* 航路曲线(输入) */
  221. /* 航路曲线(输出) */
  222. message S2C_TurningPointOutput // IMessage
  223. {
  224. /* 飞行器编号 */
  225. string AircraftID = 1;
  226. /* 飞行航路点名称 */
  227. string TurningPointName = 2;
  228. /* 飞行航路点位置列表 */
  229. repeated Point TurningPointLocation = 3;
  230. /* 当前任务阶段 */
  231. string PresentMission = 4;
  232. /* 当前飞行目标点 */
  233. string PresentTarget = 5;
  234. /* 航路开始日期 */
  235. string StartDate = 6;
  236. /* 航路开始时间 */
  237. string StartTime = 7;
  238. /* 航路结束日期 */
  239. string EndDate = 8;
  240. /* 航路结束时间 */
  241. string EndTime = 9;
  242. /* 已飞行时间 */
  243. double ElapsedTime = 10;
  244. /* 当前日期 */
  245. string PresentDate = 11;
  246. /* 当前时刻 */
  247. string PresentTime = 12;
  248. /* 当前位置 */
  249. Point PresentLocation = 13;
  250. /* 当前已消耗油量 */
  251. double PresentFuelConsumption = 14;
  252. /* 当前剩余油量 */
  253. double PresentRemainingFuel = 15;
  254. /* 当前飞行速度 */
  255. double PresentVelocity = 16;
  256. }
  257. message C2S_GetReport // IRequest
  258. {
  259. int32 RpcId = 90;
  260. }
  261. message S2C_GetReport // IResponse
  262. {
  263. int32 RpcId = 90;
  264. int32 Error = 91;
  265. string Message = 92;
  266. repeated ResportWithTaskName Reports = 93;
  267. }
  268. message ResportWithTaskName
  269. {
  270. int32 FirePointId = 1;
  271. repeated EntitySheetReportValue EntitySheetReportValueArr = 2;
  272. }
  273. /* 仿真开始 */
  274. message C2S_StmulationStart // IMessage
  275. {
  276. }
  277. /* 仿真倍速调整 */
  278. message C2S_StmulationTimeScale // IMessage
  279. {
  280. int32 TimeScale = 1;
  281. }
  282. /* 仿真结束 */
  283. message S2C_StmulationEnd // IMessage
  284. {
  285. int32 FirePointId = 1;
  286. repeated EntitySheetReportValue EntitySheetReportValueArr = 2;
  287. }
  288. message EntitySheetReportValue
  289. {
  290. string Name = 1;
  291. repeated SheetReportValue SheetReportValueArr = 2;
  292. }
  293. message SheetReportValue
  294. {
  295. string Name = 1;
  296. repeated ReportValue ValueArr = 2;
  297. }
  298. message ReportValue
  299. {
  300. string Name = 1;
  301. string Value = 2;
  302. }
  303. /* 请求 效能评估 */
  304. message C2S_SimulationResult // IRequest
  305. {
  306. int32 RpcId = 90;
  307. }
  308. /* 返回 效能评估 */
  309. message S2C_SimulatinResult // IResponse
  310. {
  311. int32 RpcId = 1;
  312. int32 Error = 2;
  313. string Message = 3;
  314. /* 任务响应时间(秒) */
  315. double TaskResponseTime = 4;
  316. /* 总任务耗时(秒) */
  317. double TaskTotalTime = 5;
  318. /* 单机入场时间(秒) */
  319. double SingleJoinTime = 6;
  320. /* 单机有效任务时长(秒) */
  321. double SingleEffectiveTaskTime = 7;
  322. /* 单机总投送人数(人) */
  323. double SingleAll_Peopeo = 8;
  324. /* 单机单次投送人数(人) */
  325. double SingleEach_People = 9;
  326. /* 巡护速度(km/h) */
  327. double Speed_Patrol = 10;
  328. /* 巡护航程 (km)*/
  329. double Voyage_Patrol = 11;
  330. /* 总巡护耗时 (秒)*/
  331. double Time_AllPatrol = 12;
  332. /* 火情入场时间 (秒)*/
  333. double FireJoinTime = 13;
  334. /* 单机总油耗 (kg)*/
  335. double Fuel_Single = 14;
  336. /* 单机机场使用情况 */
  337. string AirportUseSituation = 15;
  338. /* 单机导航使用情况 */
  339. string NavUseSituation = 16;
  340. /* 消防巡护任务经济性评估参数 */
  341. /* 单机总任务时长(秒) */
  342. double FireJoinTime_Economical = 17;
  343. /* 单机总油耗(kg) */
  344. double Fuel_Single_Economical = 18;
  345. /* 单机机场使用情况 */
  346. string AirportUseSituation_Economical = 19;
  347. /* 单机导航使用情况 */
  348. string NavUseSituation_Economical = 20;
  349. }
  350. /* 火焰蔓延输出 */
  351. message S2C_FireSpread // IMessage
  352. {
  353. string AircraftId = 1;
  354. int32 FirePointId = 2;
  355. double fireGrids = 3;
  356. double firedGrids = 4;
  357. }