You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ServicesGrpc.cs 78 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: Services.proto
  4. // </auto-generated>
  5. #pragma warning disable 0414, 1591, 8981
  6. #region Designer generated code
  7. using grpc = global::Grpc.Core;
  8. namespace Protobuf {
  9. public static partial class AvailableService
  10. {
  11. static readonly string __ServiceName = "protobuf.AvailableService";
  12. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  13. static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context)
  14. {
  15. #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
  16. if (message is global::Google.Protobuf.IBufferMessage)
  17. {
  18. context.SetPayloadLength(message.CalculateSize());
  19. global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter());
  20. context.Complete();
  21. return;
  22. }
  23. #endif
  24. context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message));
  25. }
  26. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  27. static class __Helper_MessageCache<T>
  28. {
  29. public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T));
  30. }
  31. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  32. static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser<T> parser) where T : global::Google.Protobuf.IMessage<T>
  33. {
  34. #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
  35. if (__Helper_MessageCache<T>.IsBufferMessage)
  36. {
  37. return parser.ParseFrom(context.PayloadAsReadOnlySequence());
  38. }
  39. #endif
  40. return parser.ParseFrom(context.PayloadAsNewBuffer());
  41. }
  42. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  43. static readonly grpc::Marshaller<global::Protobuf.IDMsg> __Marshaller_protobuf_IDMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.IDMsg.Parser));
  44. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  45. static readonly grpc::Marshaller<global::Protobuf.BoolRes> __Marshaller_protobuf_BoolRes = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.BoolRes.Parser));
  46. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  47. static readonly grpc::Marshaller<global::Protobuf.PlayerMsg> __Marshaller_protobuf_PlayerMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.PlayerMsg.Parser));
  48. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  49. static readonly grpc::Marshaller<global::Protobuf.MessageToClient> __Marshaller_protobuf_MessageToClient = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.MessageToClient.Parser));
  50. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  51. static readonly grpc::Marshaller<global::Protobuf.MoveMsg> __Marshaller_protobuf_MoveMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.MoveMsg.Parser));
  52. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  53. static readonly grpc::Marshaller<global::Protobuf.MoveRes> __Marshaller_protobuf_MoveRes = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.MoveRes.Parser));
  54. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  55. static readonly grpc::Marshaller<global::Protobuf.PropMsg> __Marshaller_protobuf_PropMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.PropMsg.Parser));
  56. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  57. static readonly grpc::Marshaller<global::Protobuf.SkillMsg> __Marshaller_protobuf_SkillMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.SkillMsg.Parser));
  58. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  59. static readonly grpc::Marshaller<global::Protobuf.SendMsg> __Marshaller_protobuf_SendMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.SendMsg.Parser));
  60. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  61. static readonly grpc::Marshaller<global::Protobuf.AttackMsg> __Marshaller_protobuf_AttackMsg = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Protobuf.AttackMsg.Parser));
  62. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  63. static readonly grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes> __Method_TryConnection = new grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(
  64. grpc::MethodType.Unary,
  65. __ServiceName,
  66. "TryConnection",
  67. __Marshaller_protobuf_IDMsg,
  68. __Marshaller_protobuf_BoolRes);
  69. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  70. static readonly grpc::Method<global::Protobuf.PlayerMsg, global::Protobuf.MessageToClient> __Method_AddPlayer = new grpc::Method<global::Protobuf.PlayerMsg, global::Protobuf.MessageToClient>(
  71. grpc::MethodType.ServerStreaming,
  72. __ServiceName,
  73. "AddPlayer",
  74. __Marshaller_protobuf_PlayerMsg,
  75. __Marshaller_protobuf_MessageToClient);
  76. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  77. static readonly grpc::Method<global::Protobuf.MoveMsg, global::Protobuf.MoveRes> __Method_Move = new grpc::Method<global::Protobuf.MoveMsg, global::Protobuf.MoveRes>(
  78. grpc::MethodType.Unary,
  79. __ServiceName,
  80. "Move",
  81. __Marshaller_protobuf_MoveMsg,
  82. __Marshaller_protobuf_MoveRes);
  83. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  84. static readonly grpc::Method<global::Protobuf.PropMsg, global::Protobuf.BoolRes> __Method_PickProp = new grpc::Method<global::Protobuf.PropMsg, global::Protobuf.BoolRes>(
  85. grpc::MethodType.Unary,
  86. __ServiceName,
  87. "PickProp",
  88. __Marshaller_protobuf_PropMsg,
  89. __Marshaller_protobuf_BoolRes);
  90. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  91. static readonly grpc::Method<global::Protobuf.PropMsg, global::Protobuf.BoolRes> __Method_UseProp = new grpc::Method<global::Protobuf.PropMsg, global::Protobuf.BoolRes>(
  92. grpc::MethodType.Unary,
  93. __ServiceName,
  94. "UseProp",
  95. __Marshaller_protobuf_PropMsg,
  96. __Marshaller_protobuf_BoolRes);
  97. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  98. static readonly grpc::Method<global::Protobuf.PropMsg, global::Protobuf.BoolRes> __Method_ThrowProp = new grpc::Method<global::Protobuf.PropMsg, global::Protobuf.BoolRes>(
  99. grpc::MethodType.Unary,
  100. __ServiceName,
  101. "ThrowProp",
  102. __Marshaller_protobuf_PropMsg,
  103. __Marshaller_protobuf_BoolRes);
  104. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  105. static readonly grpc::Method<global::Protobuf.SkillMsg, global::Protobuf.BoolRes> __Method_UseSkill = new grpc::Method<global::Protobuf.SkillMsg, global::Protobuf.BoolRes>(
  106. grpc::MethodType.Unary,
  107. __ServiceName,
  108. "UseSkill",
  109. __Marshaller_protobuf_SkillMsg,
  110. __Marshaller_protobuf_BoolRes);
  111. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  112. static readonly grpc::Method<global::Protobuf.SendMsg, global::Protobuf.BoolRes> __Method_SendMessage = new grpc::Method<global::Protobuf.SendMsg, global::Protobuf.BoolRes>(
  113. grpc::MethodType.Unary,
  114. __ServiceName,
  115. "SendMessage",
  116. __Marshaller_protobuf_SendMsg,
  117. __Marshaller_protobuf_BoolRes);
  118. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  119. static readonly grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes> __Method_StartLearning = new grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(
  120. grpc::MethodType.Unary,
  121. __ServiceName,
  122. "StartLearning",
  123. __Marshaller_protobuf_IDMsg,
  124. __Marshaller_protobuf_BoolRes);
  125. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  126. static readonly grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes> __Method_StartRescueMate = new grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(
  127. grpc::MethodType.Unary,
  128. __ServiceName,
  129. "StartRescueMate",
  130. __Marshaller_protobuf_IDMsg,
  131. __Marshaller_protobuf_BoolRes);
  132. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  133. static readonly grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes> __Method_StartTreatMate = new grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(
  134. grpc::MethodType.Unary,
  135. __ServiceName,
  136. "StartTreatMate",
  137. __Marshaller_protobuf_IDMsg,
  138. __Marshaller_protobuf_BoolRes);
  139. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  140. static readonly grpc::Method<global::Protobuf.AttackMsg, global::Protobuf.BoolRes> __Method_Attack = new grpc::Method<global::Protobuf.AttackMsg, global::Protobuf.BoolRes>(
  141. grpc::MethodType.Unary,
  142. __ServiceName,
  143. "Attack",
  144. __Marshaller_protobuf_AttackMsg,
  145. __Marshaller_protobuf_BoolRes);
  146. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  147. static readonly grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes> __Method_Graduate = new grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(
  148. grpc::MethodType.Unary,
  149. __ServiceName,
  150. "Graduate",
  151. __Marshaller_protobuf_IDMsg,
  152. __Marshaller_protobuf_BoolRes);
  153. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  154. static readonly grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes> __Method_OpenDoor = new grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(
  155. grpc::MethodType.Unary,
  156. __ServiceName,
  157. "OpenDoor",
  158. __Marshaller_protobuf_IDMsg,
  159. __Marshaller_protobuf_BoolRes);
  160. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  161. static readonly grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes> __Method_CloseDoor = new grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(
  162. grpc::MethodType.Unary,
  163. __ServiceName,
  164. "CloseDoor",
  165. __Marshaller_protobuf_IDMsg,
  166. __Marshaller_protobuf_BoolRes);
  167. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  168. static readonly grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes> __Method_SkipWindow = new grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(
  169. grpc::MethodType.Unary,
  170. __ServiceName,
  171. "SkipWindow",
  172. __Marshaller_protobuf_IDMsg,
  173. __Marshaller_protobuf_BoolRes);
  174. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  175. static readonly grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes> __Method_StartOpenGate = new grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(
  176. grpc::MethodType.Unary,
  177. __ServiceName,
  178. "StartOpenGate",
  179. __Marshaller_protobuf_IDMsg,
  180. __Marshaller_protobuf_BoolRes);
  181. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  182. static readonly grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes> __Method_StartOpenChest = new grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(
  183. grpc::MethodType.Unary,
  184. __ServiceName,
  185. "StartOpenChest",
  186. __Marshaller_protobuf_IDMsg,
  187. __Marshaller_protobuf_BoolRes);
  188. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  189. static readonly grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes> __Method_EndAllAction = new grpc::Method<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(
  190. grpc::MethodType.Unary,
  191. __ServiceName,
  192. "EndAllAction",
  193. __Marshaller_protobuf_IDMsg,
  194. __Marshaller_protobuf_BoolRes);
  195. /// <summary>Service descriptor</summary>
  196. public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
  197. {
  198. get { return global::Protobuf.ServicesReflection.Descriptor.Services[0]; }
  199. }
  200. /// <summary>Base class for server-side implementations of AvailableService</summary>
  201. [grpc::BindServiceMethod(typeof(AvailableService), "BindService")]
  202. public abstract partial class AvailableServiceBase
  203. {
  204. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  205. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> TryConnection(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
  206. {
  207. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  208. }
  209. /// <summary>
  210. /// 游戏开局调用一次的服务
  211. /// </summary>
  212. /// <param name="request">The request received from the client.</param>
  213. /// <param name="responseStream">Used for sending responses back to the client.</param>
  214. /// <param name="context">The context of the server-side call handler being invoked.</param>
  215. /// <returns>A task indicating completion of the handler.</returns>
  216. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  217. public virtual global::System.Threading.Tasks.Task AddPlayer(global::Protobuf.PlayerMsg request, grpc::IServerStreamWriter<global::Protobuf.MessageToClient> responseStream, grpc::ServerCallContext context)
  218. {
  219. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  220. }
  221. /// <summary>
  222. /// 游戏过程中玩家执行操作的服务
  223. /// </summary>
  224. /// <param name="request">The request received from the client.</param>
  225. /// <param name="context">The context of the server-side call handler being invoked.</param>
  226. /// <returns>The response to send back to the client (wrapped by a task).</returns>
  227. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  228. public virtual global::System.Threading.Tasks.Task<global::Protobuf.MoveRes> Move(global::Protobuf.MoveMsg request, grpc::ServerCallContext context)
  229. {
  230. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  231. }
  232. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  233. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> PickProp(global::Protobuf.PropMsg request, grpc::ServerCallContext context)
  234. {
  235. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  236. }
  237. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  238. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> UseProp(global::Protobuf.PropMsg request, grpc::ServerCallContext context)
  239. {
  240. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  241. }
  242. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  243. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> ThrowProp(global::Protobuf.PropMsg request, grpc::ServerCallContext context)
  244. {
  245. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  246. }
  247. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  248. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> UseSkill(global::Protobuf.SkillMsg request, grpc::ServerCallContext context)
  249. {
  250. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  251. }
  252. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  253. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> SendMessage(global::Protobuf.SendMsg request, grpc::ServerCallContext context)
  254. {
  255. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  256. }
  257. /// <summary>
  258. /// rpc GetMessage (IDMsg) returns (stream MsgRes);
  259. /// </summary>
  260. /// <param name="request">The request received from the client.</param>
  261. /// <param name="context">The context of the server-side call handler being invoked.</param>
  262. /// <returns>The response to send back to the client (wrapped by a task).</returns>
  263. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  264. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> StartLearning(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
  265. {
  266. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  267. }
  268. /// <summary>
  269. /// 开始救人
  270. /// </summary>
  271. /// <param name="request">The request received from the client.</param>
  272. /// <param name="context">The context of the server-side call handler being invoked.</param>
  273. /// <returns>The response to send back to the client (wrapped by a task).</returns>
  274. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  275. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> StartRescueMate(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
  276. {
  277. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  278. }
  279. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  280. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> StartTreatMate(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
  281. {
  282. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  283. }
  284. /// <summary>
  285. /// 攻击
  286. /// </summary>
  287. /// <param name="request">The request received from the client.</param>
  288. /// <param name="context">The context of the server-side call handler being invoked.</param>
  289. /// <returns>The response to send back to the client (wrapped by a task).</returns>
  290. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  291. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> Attack(global::Protobuf.AttackMsg request, grpc::ServerCallContext context)
  292. {
  293. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  294. }
  295. /// <summary>
  296. /// 相当于逃跑
  297. /// </summary>
  298. /// <param name="request">The request received from the client.</param>
  299. /// <param name="context">The context of the server-side call handler being invoked.</param>
  300. /// <returns>The response to send back to the client (wrapped by a task).</returns>
  301. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  302. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> Graduate(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
  303. {
  304. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  305. }
  306. /// <summary>
  307. /// 开门
  308. /// </summary>
  309. /// <param name="request">The request received from the client.</param>
  310. /// <param name="context">The context of the server-side call handler being invoked.</param>
  311. /// <returns>The response to send back to the client (wrapped by a task).</returns>
  312. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  313. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> OpenDoor(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
  314. {
  315. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  316. }
  317. /// <summary>
  318. /// 关门
  319. /// </summary>
  320. /// <param name="request">The request received from the client.</param>
  321. /// <param name="context">The context of the server-side call handler being invoked.</param>
  322. /// <returns>The response to send back to the client (wrapped by a task).</returns>
  323. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  324. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> CloseDoor(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
  325. {
  326. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  327. }
  328. /// <summary>
  329. /// 窗户
  330. /// </summary>
  331. /// <param name="request">The request received from the client.</param>
  332. /// <param name="context">The context of the server-side call handler being invoked.</param>
  333. /// <returns>The response to send back to the client (wrapped by a task).</returns>
  334. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  335. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> SkipWindow(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
  336. {
  337. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  338. }
  339. /// <summary>
  340. /// 开闸门
  341. /// </summary>
  342. /// <param name="request">The request received from the client.</param>
  343. /// <param name="context">The context of the server-side call handler being invoked.</param>
  344. /// <returns>The response to send back to the client (wrapped by a task).</returns>
  345. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  346. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> StartOpenGate(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
  347. {
  348. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  349. }
  350. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  351. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> StartOpenChest(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
  352. {
  353. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  354. }
  355. /// <summary>
  356. /// 结束所有动作
  357. /// </summary>
  358. /// <param name="request">The request received from the client.</param>
  359. /// <param name="context">The context of the server-side call handler being invoked.</param>
  360. /// <returns>The response to send back to the client (wrapped by a task).</returns>
  361. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  362. public virtual global::System.Threading.Tasks.Task<global::Protobuf.BoolRes> EndAllAction(global::Protobuf.IDMsg request, grpc::ServerCallContext context)
  363. {
  364. throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
  365. }
  366. }
  367. /// <summary>Client for AvailableService</summary>
  368. public partial class AvailableServiceClient : grpc::ClientBase<AvailableServiceClient>
  369. {
  370. /// <summary>Creates a new client for AvailableService</summary>
  371. /// <param name="channel">The channel to use to make remote calls.</param>
  372. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  373. public AvailableServiceClient(grpc::ChannelBase channel) : base(channel)
  374. {
  375. }
  376. /// <summary>Creates a new client for AvailableService that uses a custom <c>CallInvoker</c>.</summary>
  377. /// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
  378. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  379. public AvailableServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
  380. {
  381. }
  382. /// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
  383. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  384. protected AvailableServiceClient() : base()
  385. {
  386. }
  387. /// <summary>Protected constructor to allow creation of configured clients.</summary>
  388. /// <param name="configuration">The client configuration.</param>
  389. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  390. protected AvailableServiceClient(ClientBaseConfiguration configuration) : base(configuration)
  391. {
  392. }
  393. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  394. public virtual global::Protobuf.BoolRes TryConnection(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  395. {
  396. return TryConnection(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  397. }
  398. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  399. public virtual global::Protobuf.BoolRes TryConnection(global::Protobuf.IDMsg request, grpc::CallOptions options)
  400. {
  401. return CallInvoker.BlockingUnaryCall(__Method_TryConnection, null, options, request);
  402. }
  403. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  404. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> TryConnectionAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  405. {
  406. return TryConnectionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  407. }
  408. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  409. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> TryConnectionAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
  410. {
  411. return CallInvoker.AsyncUnaryCall(__Method_TryConnection, null, options, request);
  412. }
  413. /// <summary>
  414. /// 游戏开局调用一次的服务
  415. /// </summary>
  416. /// <param name="request">The request to send to the server.</param>
  417. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  418. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  419. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  420. /// <returns>The call object.</returns>
  421. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  422. public virtual grpc::AsyncServerStreamingCall<global::Protobuf.MessageToClient> AddPlayer(global::Protobuf.PlayerMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  423. {
  424. return AddPlayer(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  425. }
  426. /// <summary>
  427. /// 游戏开局调用一次的服务
  428. /// </summary>
  429. /// <param name="request">The request to send to the server.</param>
  430. /// <param name="options">The options for the call.</param>
  431. /// <returns>The call object.</returns>
  432. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  433. public virtual grpc::AsyncServerStreamingCall<global::Protobuf.MessageToClient> AddPlayer(global::Protobuf.PlayerMsg request, grpc::CallOptions options)
  434. {
  435. return CallInvoker.AsyncServerStreamingCall(__Method_AddPlayer, null, options, request);
  436. }
  437. /// <summary>
  438. /// 游戏过程中玩家执行操作的服务
  439. /// </summary>
  440. /// <param name="request">The request to send to the server.</param>
  441. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  442. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  443. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  444. /// <returns>The response received from the server.</returns>
  445. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  446. public virtual global::Protobuf.MoveRes Move(global::Protobuf.MoveMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  447. {
  448. return Move(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  449. }
  450. /// <summary>
  451. /// 游戏过程中玩家执行操作的服务
  452. /// </summary>
  453. /// <param name="request">The request to send to the server.</param>
  454. /// <param name="options">The options for the call.</param>
  455. /// <returns>The response received from the server.</returns>
  456. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  457. public virtual global::Protobuf.MoveRes Move(global::Protobuf.MoveMsg request, grpc::CallOptions options)
  458. {
  459. return CallInvoker.BlockingUnaryCall(__Method_Move, null, options, request);
  460. }
  461. /// <summary>
  462. /// 游戏过程中玩家执行操作的服务
  463. /// </summary>
  464. /// <param name="request">The request to send to the server.</param>
  465. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  466. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  467. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  468. /// <returns>The call object.</returns>
  469. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  470. public virtual grpc::AsyncUnaryCall<global::Protobuf.MoveRes> MoveAsync(global::Protobuf.MoveMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  471. {
  472. return MoveAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  473. }
  474. /// <summary>
  475. /// 游戏过程中玩家执行操作的服务
  476. /// </summary>
  477. /// <param name="request">The request to send to the server.</param>
  478. /// <param name="options">The options for the call.</param>
  479. /// <returns>The call object.</returns>
  480. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  481. public virtual grpc::AsyncUnaryCall<global::Protobuf.MoveRes> MoveAsync(global::Protobuf.MoveMsg request, grpc::CallOptions options)
  482. {
  483. return CallInvoker.AsyncUnaryCall(__Method_Move, null, options, request);
  484. }
  485. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  486. public virtual global::Protobuf.BoolRes PickProp(global::Protobuf.PropMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  487. {
  488. return PickProp(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  489. }
  490. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  491. public virtual global::Protobuf.BoolRes PickProp(global::Protobuf.PropMsg request, grpc::CallOptions options)
  492. {
  493. return CallInvoker.BlockingUnaryCall(__Method_PickProp, null, options, request);
  494. }
  495. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  496. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> PickPropAsync(global::Protobuf.PropMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  497. {
  498. return PickPropAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  499. }
  500. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  501. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> PickPropAsync(global::Protobuf.PropMsg request, grpc::CallOptions options)
  502. {
  503. return CallInvoker.AsyncUnaryCall(__Method_PickProp, null, options, request);
  504. }
  505. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  506. public virtual global::Protobuf.BoolRes UseProp(global::Protobuf.PropMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  507. {
  508. return UseProp(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  509. }
  510. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  511. public virtual global::Protobuf.BoolRes UseProp(global::Protobuf.PropMsg request, grpc::CallOptions options)
  512. {
  513. return CallInvoker.BlockingUnaryCall(__Method_UseProp, null, options, request);
  514. }
  515. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  516. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> UsePropAsync(global::Protobuf.PropMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  517. {
  518. return UsePropAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  519. }
  520. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  521. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> UsePropAsync(global::Protobuf.PropMsg request, grpc::CallOptions options)
  522. {
  523. return CallInvoker.AsyncUnaryCall(__Method_UseProp, null, options, request);
  524. }
  525. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  526. public virtual global::Protobuf.BoolRes ThrowProp(global::Protobuf.PropMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  527. {
  528. return ThrowProp(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  529. }
  530. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  531. public virtual global::Protobuf.BoolRes ThrowProp(global::Protobuf.PropMsg request, grpc::CallOptions options)
  532. {
  533. return CallInvoker.BlockingUnaryCall(__Method_ThrowProp, null, options, request);
  534. }
  535. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  536. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> ThrowPropAsync(global::Protobuf.PropMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  537. {
  538. return ThrowPropAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  539. }
  540. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  541. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> ThrowPropAsync(global::Protobuf.PropMsg request, grpc::CallOptions options)
  542. {
  543. return CallInvoker.AsyncUnaryCall(__Method_ThrowProp, null, options, request);
  544. }
  545. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  546. public virtual global::Protobuf.BoolRes UseSkill(global::Protobuf.SkillMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  547. {
  548. return UseSkill(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  549. }
  550. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  551. public virtual global::Protobuf.BoolRes UseSkill(global::Protobuf.SkillMsg request, grpc::CallOptions options)
  552. {
  553. return CallInvoker.BlockingUnaryCall(__Method_UseSkill, null, options, request);
  554. }
  555. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  556. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> UseSkillAsync(global::Protobuf.SkillMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  557. {
  558. return UseSkillAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  559. }
  560. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  561. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> UseSkillAsync(global::Protobuf.SkillMsg request, grpc::CallOptions options)
  562. {
  563. return CallInvoker.AsyncUnaryCall(__Method_UseSkill, null, options, request);
  564. }
  565. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  566. public virtual global::Protobuf.BoolRes SendMessage(global::Protobuf.SendMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  567. {
  568. return SendMessage(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  569. }
  570. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  571. public virtual global::Protobuf.BoolRes SendMessage(global::Protobuf.SendMsg request, grpc::CallOptions options)
  572. {
  573. return CallInvoker.BlockingUnaryCall(__Method_SendMessage, null, options, request);
  574. }
  575. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  576. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> SendMessageAsync(global::Protobuf.SendMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  577. {
  578. return SendMessageAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  579. }
  580. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  581. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> SendMessageAsync(global::Protobuf.SendMsg request, grpc::CallOptions options)
  582. {
  583. return CallInvoker.AsyncUnaryCall(__Method_SendMessage, null, options, request);
  584. }
  585. /// <summary>
  586. /// rpc GetMessage (IDMsg) returns (stream MsgRes);
  587. /// </summary>
  588. /// <param name="request">The request to send to the server.</param>
  589. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  590. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  591. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  592. /// <returns>The response received from the server.</returns>
  593. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  594. public virtual global::Protobuf.BoolRes StartLearning(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  595. {
  596. return StartLearning(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  597. }
  598. /// <summary>
  599. /// rpc GetMessage (IDMsg) returns (stream MsgRes);
  600. /// </summary>
  601. /// <param name="request">The request to send to the server.</param>
  602. /// <param name="options">The options for the call.</param>
  603. /// <returns>The response received from the server.</returns>
  604. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  605. public virtual global::Protobuf.BoolRes StartLearning(global::Protobuf.IDMsg request, grpc::CallOptions options)
  606. {
  607. return CallInvoker.BlockingUnaryCall(__Method_StartLearning, null, options, request);
  608. }
  609. /// <summary>
  610. /// rpc GetMessage (IDMsg) returns (stream MsgRes);
  611. /// </summary>
  612. /// <param name="request">The request to send to the server.</param>
  613. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  614. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  615. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  616. /// <returns>The call object.</returns>
  617. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  618. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> StartLearningAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  619. {
  620. return StartLearningAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  621. }
  622. /// <summary>
  623. /// rpc GetMessage (IDMsg) returns (stream MsgRes);
  624. /// </summary>
  625. /// <param name="request">The request to send to the server.</param>
  626. /// <param name="options">The options for the call.</param>
  627. /// <returns>The call object.</returns>
  628. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  629. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> StartLearningAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
  630. {
  631. return CallInvoker.AsyncUnaryCall(__Method_StartLearning, null, options, request);
  632. }
  633. /// <summary>
  634. /// 开始救人
  635. /// </summary>
  636. /// <param name="request">The request to send to the server.</param>
  637. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  638. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  639. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  640. /// <returns>The response received from the server.</returns>
  641. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  642. public virtual global::Protobuf.BoolRes StartRescueMate(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  643. {
  644. return StartRescueMate(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  645. }
  646. /// <summary>
  647. /// 开始救人
  648. /// </summary>
  649. /// <param name="request">The request to send to the server.</param>
  650. /// <param name="options">The options for the call.</param>
  651. /// <returns>The response received from the server.</returns>
  652. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  653. public virtual global::Protobuf.BoolRes StartRescueMate(global::Protobuf.IDMsg request, grpc::CallOptions options)
  654. {
  655. return CallInvoker.BlockingUnaryCall(__Method_StartRescueMate, null, options, request);
  656. }
  657. /// <summary>
  658. /// 开始救人
  659. /// </summary>
  660. /// <param name="request">The request to send to the server.</param>
  661. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  662. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  663. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  664. /// <returns>The call object.</returns>
  665. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  666. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> StartRescueMateAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  667. {
  668. return StartRescueMateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  669. }
  670. /// <summary>
  671. /// 开始救人
  672. /// </summary>
  673. /// <param name="request">The request to send to the server.</param>
  674. /// <param name="options">The options for the call.</param>
  675. /// <returns>The call object.</returns>
  676. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  677. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> StartRescueMateAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
  678. {
  679. return CallInvoker.AsyncUnaryCall(__Method_StartRescueMate, null, options, request);
  680. }
  681. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  682. public virtual global::Protobuf.BoolRes StartTreatMate(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  683. {
  684. return StartTreatMate(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  685. }
  686. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  687. public virtual global::Protobuf.BoolRes StartTreatMate(global::Protobuf.IDMsg request, grpc::CallOptions options)
  688. {
  689. return CallInvoker.BlockingUnaryCall(__Method_StartTreatMate, null, options, request);
  690. }
  691. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  692. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> StartTreatMateAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  693. {
  694. return StartTreatMateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  695. }
  696. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  697. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> StartTreatMateAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
  698. {
  699. return CallInvoker.AsyncUnaryCall(__Method_StartTreatMate, null, options, request);
  700. }
  701. /// <summary>
  702. /// 攻击
  703. /// </summary>
  704. /// <param name="request">The request to send to the server.</param>
  705. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  706. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  707. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  708. /// <returns>The response received from the server.</returns>
  709. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  710. public virtual global::Protobuf.BoolRes Attack(global::Protobuf.AttackMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  711. {
  712. return Attack(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  713. }
  714. /// <summary>
  715. /// 攻击
  716. /// </summary>
  717. /// <param name="request">The request to send to the server.</param>
  718. /// <param name="options">The options for the call.</param>
  719. /// <returns>The response received from the server.</returns>
  720. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  721. public virtual global::Protobuf.BoolRes Attack(global::Protobuf.AttackMsg request, grpc::CallOptions options)
  722. {
  723. return CallInvoker.BlockingUnaryCall(__Method_Attack, null, options, request);
  724. }
  725. /// <summary>
  726. /// 攻击
  727. /// </summary>
  728. /// <param name="request">The request to send to the server.</param>
  729. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  730. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  731. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  732. /// <returns>The call object.</returns>
  733. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  734. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> AttackAsync(global::Protobuf.AttackMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  735. {
  736. return AttackAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  737. }
  738. /// <summary>
  739. /// 攻击
  740. /// </summary>
  741. /// <param name="request">The request to send to the server.</param>
  742. /// <param name="options">The options for the call.</param>
  743. /// <returns>The call object.</returns>
  744. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  745. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> AttackAsync(global::Protobuf.AttackMsg request, grpc::CallOptions options)
  746. {
  747. return CallInvoker.AsyncUnaryCall(__Method_Attack, null, options, request);
  748. }
  749. /// <summary>
  750. /// 相当于逃跑
  751. /// </summary>
  752. /// <param name="request">The request to send to the server.</param>
  753. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  754. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  755. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  756. /// <returns>The response received from the server.</returns>
  757. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  758. public virtual global::Protobuf.BoolRes Graduate(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  759. {
  760. return Graduate(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  761. }
  762. /// <summary>
  763. /// 相当于逃跑
  764. /// </summary>
  765. /// <param name="request">The request to send to the server.</param>
  766. /// <param name="options">The options for the call.</param>
  767. /// <returns>The response received from the server.</returns>
  768. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  769. public virtual global::Protobuf.BoolRes Graduate(global::Protobuf.IDMsg request, grpc::CallOptions options)
  770. {
  771. return CallInvoker.BlockingUnaryCall(__Method_Graduate, null, options, request);
  772. }
  773. /// <summary>
  774. /// 相当于逃跑
  775. /// </summary>
  776. /// <param name="request">The request to send to the server.</param>
  777. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  778. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  779. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  780. /// <returns>The call object.</returns>
  781. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  782. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> GraduateAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  783. {
  784. return GraduateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  785. }
  786. /// <summary>
  787. /// 相当于逃跑
  788. /// </summary>
  789. /// <param name="request">The request to send to the server.</param>
  790. /// <param name="options">The options for the call.</param>
  791. /// <returns>The call object.</returns>
  792. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  793. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> GraduateAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
  794. {
  795. return CallInvoker.AsyncUnaryCall(__Method_Graduate, null, options, request);
  796. }
  797. /// <summary>
  798. /// 开门
  799. /// </summary>
  800. /// <param name="request">The request to send to the server.</param>
  801. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  802. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  803. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  804. /// <returns>The response received from the server.</returns>
  805. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  806. public virtual global::Protobuf.BoolRes OpenDoor(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  807. {
  808. return OpenDoor(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  809. }
  810. /// <summary>
  811. /// 开门
  812. /// </summary>
  813. /// <param name="request">The request to send to the server.</param>
  814. /// <param name="options">The options for the call.</param>
  815. /// <returns>The response received from the server.</returns>
  816. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  817. public virtual global::Protobuf.BoolRes OpenDoor(global::Protobuf.IDMsg request, grpc::CallOptions options)
  818. {
  819. return CallInvoker.BlockingUnaryCall(__Method_OpenDoor, null, options, request);
  820. }
  821. /// <summary>
  822. /// 开门
  823. /// </summary>
  824. /// <param name="request">The request to send to the server.</param>
  825. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  826. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  827. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  828. /// <returns>The call object.</returns>
  829. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  830. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> OpenDoorAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  831. {
  832. return OpenDoorAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  833. }
  834. /// <summary>
  835. /// 开门
  836. /// </summary>
  837. /// <param name="request">The request to send to the server.</param>
  838. /// <param name="options">The options for the call.</param>
  839. /// <returns>The call object.</returns>
  840. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  841. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> OpenDoorAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
  842. {
  843. return CallInvoker.AsyncUnaryCall(__Method_OpenDoor, null, options, request);
  844. }
  845. /// <summary>
  846. /// 关门
  847. /// </summary>
  848. /// <param name="request">The request to send to the server.</param>
  849. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  850. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  851. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  852. /// <returns>The response received from the server.</returns>
  853. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  854. public virtual global::Protobuf.BoolRes CloseDoor(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  855. {
  856. return CloseDoor(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  857. }
  858. /// <summary>
  859. /// 关门
  860. /// </summary>
  861. /// <param name="request">The request to send to the server.</param>
  862. /// <param name="options">The options for the call.</param>
  863. /// <returns>The response received from the server.</returns>
  864. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  865. public virtual global::Protobuf.BoolRes CloseDoor(global::Protobuf.IDMsg request, grpc::CallOptions options)
  866. {
  867. return CallInvoker.BlockingUnaryCall(__Method_CloseDoor, null, options, request);
  868. }
  869. /// <summary>
  870. /// 关门
  871. /// </summary>
  872. /// <param name="request">The request to send to the server.</param>
  873. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  874. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  875. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  876. /// <returns>The call object.</returns>
  877. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  878. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> CloseDoorAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  879. {
  880. return CloseDoorAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  881. }
  882. /// <summary>
  883. /// 关门
  884. /// </summary>
  885. /// <param name="request">The request to send to the server.</param>
  886. /// <param name="options">The options for the call.</param>
  887. /// <returns>The call object.</returns>
  888. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  889. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> CloseDoorAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
  890. {
  891. return CallInvoker.AsyncUnaryCall(__Method_CloseDoor, null, options, request);
  892. }
  893. /// <summary>
  894. /// 窗户
  895. /// </summary>
  896. /// <param name="request">The request to send to the server.</param>
  897. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  898. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  899. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  900. /// <returns>The response received from the server.</returns>
  901. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  902. public virtual global::Protobuf.BoolRes SkipWindow(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  903. {
  904. return SkipWindow(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  905. }
  906. /// <summary>
  907. /// 窗户
  908. /// </summary>
  909. /// <param name="request">The request to send to the server.</param>
  910. /// <param name="options">The options for the call.</param>
  911. /// <returns>The response received from the server.</returns>
  912. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  913. public virtual global::Protobuf.BoolRes SkipWindow(global::Protobuf.IDMsg request, grpc::CallOptions options)
  914. {
  915. return CallInvoker.BlockingUnaryCall(__Method_SkipWindow, null, options, request);
  916. }
  917. /// <summary>
  918. /// 窗户
  919. /// </summary>
  920. /// <param name="request">The request to send to the server.</param>
  921. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  922. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  923. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  924. /// <returns>The call object.</returns>
  925. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  926. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> SkipWindowAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  927. {
  928. return SkipWindowAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  929. }
  930. /// <summary>
  931. /// 窗户
  932. /// </summary>
  933. /// <param name="request">The request to send to the server.</param>
  934. /// <param name="options">The options for the call.</param>
  935. /// <returns>The call object.</returns>
  936. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  937. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> SkipWindowAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
  938. {
  939. return CallInvoker.AsyncUnaryCall(__Method_SkipWindow, null, options, request);
  940. }
  941. /// <summary>
  942. /// 开闸门
  943. /// </summary>
  944. /// <param name="request">The request to send to the server.</param>
  945. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  946. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  947. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  948. /// <returns>The response received from the server.</returns>
  949. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  950. public virtual global::Protobuf.BoolRes StartOpenGate(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  951. {
  952. return StartOpenGate(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  953. }
  954. /// <summary>
  955. /// 开闸门
  956. /// </summary>
  957. /// <param name="request">The request to send to the server.</param>
  958. /// <param name="options">The options for the call.</param>
  959. /// <returns>The response received from the server.</returns>
  960. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  961. public virtual global::Protobuf.BoolRes StartOpenGate(global::Protobuf.IDMsg request, grpc::CallOptions options)
  962. {
  963. return CallInvoker.BlockingUnaryCall(__Method_StartOpenGate, null, options, request);
  964. }
  965. /// <summary>
  966. /// 开闸门
  967. /// </summary>
  968. /// <param name="request">The request to send to the server.</param>
  969. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  970. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  971. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  972. /// <returns>The call object.</returns>
  973. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  974. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> StartOpenGateAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  975. {
  976. return StartOpenGateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  977. }
  978. /// <summary>
  979. /// 开闸门
  980. /// </summary>
  981. /// <param name="request">The request to send to the server.</param>
  982. /// <param name="options">The options for the call.</param>
  983. /// <returns>The call object.</returns>
  984. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  985. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> StartOpenGateAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
  986. {
  987. return CallInvoker.AsyncUnaryCall(__Method_StartOpenGate, null, options, request);
  988. }
  989. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  990. public virtual global::Protobuf.BoolRes StartOpenChest(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  991. {
  992. return StartOpenChest(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  993. }
  994. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  995. public virtual global::Protobuf.BoolRes StartOpenChest(global::Protobuf.IDMsg request, grpc::CallOptions options)
  996. {
  997. return CallInvoker.BlockingUnaryCall(__Method_StartOpenChest, null, options, request);
  998. }
  999. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  1000. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> StartOpenChestAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  1001. {
  1002. return StartOpenChestAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  1003. }
  1004. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  1005. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> StartOpenChestAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
  1006. {
  1007. return CallInvoker.AsyncUnaryCall(__Method_StartOpenChest, null, options, request);
  1008. }
  1009. /// <summary>
  1010. /// 结束所有动作
  1011. /// </summary>
  1012. /// <param name="request">The request to send to the server.</param>
  1013. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  1014. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  1015. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  1016. /// <returns>The response received from the server.</returns>
  1017. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  1018. public virtual global::Protobuf.BoolRes EndAllAction(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  1019. {
  1020. return EndAllAction(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  1021. }
  1022. /// <summary>
  1023. /// 结束所有动作
  1024. /// </summary>
  1025. /// <param name="request">The request to send to the server.</param>
  1026. /// <param name="options">The options for the call.</param>
  1027. /// <returns>The response received from the server.</returns>
  1028. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  1029. public virtual global::Protobuf.BoolRes EndAllAction(global::Protobuf.IDMsg request, grpc::CallOptions options)
  1030. {
  1031. return CallInvoker.BlockingUnaryCall(__Method_EndAllAction, null, options, request);
  1032. }
  1033. /// <summary>
  1034. /// 结束所有动作
  1035. /// </summary>
  1036. /// <param name="request">The request to send to the server.</param>
  1037. /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
  1038. /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
  1039. /// <param name="cancellationToken">An optional token for canceling the call.</param>
  1040. /// <returns>The call object.</returns>
  1041. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  1042. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> EndAllActionAsync(global::Protobuf.IDMsg request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
  1043. {
  1044. return EndAllActionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
  1045. }
  1046. /// <summary>
  1047. /// 结束所有动作
  1048. /// </summary>
  1049. /// <param name="request">The request to send to the server.</param>
  1050. /// <param name="options">The options for the call.</param>
  1051. /// <returns>The call object.</returns>
  1052. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  1053. public virtual grpc::AsyncUnaryCall<global::Protobuf.BoolRes> EndAllActionAsync(global::Protobuf.IDMsg request, grpc::CallOptions options)
  1054. {
  1055. return CallInvoker.AsyncUnaryCall(__Method_EndAllAction, null, options, request);
  1056. }
  1057. /// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
  1058. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  1059. protected override AvailableServiceClient NewInstance(ClientBaseConfiguration configuration)
  1060. {
  1061. return new AvailableServiceClient(configuration);
  1062. }
  1063. }
  1064. /// <summary>Creates service definition that can be registered with a server</summary>
  1065. /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
  1066. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  1067. public static grpc::ServerServiceDefinition BindService(AvailableServiceBase serviceImpl)
  1068. {
  1069. return grpc::ServerServiceDefinition.CreateBuilder()
  1070. .AddMethod(__Method_TryConnection, serviceImpl.TryConnection)
  1071. .AddMethod(__Method_AddPlayer, serviceImpl.AddPlayer)
  1072. .AddMethod(__Method_Move, serviceImpl.Move)
  1073. .AddMethod(__Method_PickProp, serviceImpl.PickProp)
  1074. .AddMethod(__Method_UseProp, serviceImpl.UseProp)
  1075. .AddMethod(__Method_ThrowProp, serviceImpl.ThrowProp)
  1076. .AddMethod(__Method_UseSkill, serviceImpl.UseSkill)
  1077. .AddMethod(__Method_SendMessage, serviceImpl.SendMessage)
  1078. .AddMethod(__Method_StartLearning, serviceImpl.StartLearning)
  1079. .AddMethod(__Method_StartRescueMate, serviceImpl.StartRescueMate)
  1080. .AddMethod(__Method_StartTreatMate, serviceImpl.StartTreatMate)
  1081. .AddMethod(__Method_Attack, serviceImpl.Attack)
  1082. .AddMethod(__Method_Graduate, serviceImpl.Graduate)
  1083. .AddMethod(__Method_OpenDoor, serviceImpl.OpenDoor)
  1084. .AddMethod(__Method_CloseDoor, serviceImpl.CloseDoor)
  1085. .AddMethod(__Method_SkipWindow, serviceImpl.SkipWindow)
  1086. .AddMethod(__Method_StartOpenGate, serviceImpl.StartOpenGate)
  1087. .AddMethod(__Method_StartOpenChest, serviceImpl.StartOpenChest)
  1088. .AddMethod(__Method_EndAllAction, serviceImpl.EndAllAction).Build();
  1089. }
  1090. /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
  1091. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
  1092. /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
  1093. /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
  1094. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
  1095. public static void BindService(grpc::ServiceBinderBase serviceBinder, AvailableServiceBase serviceImpl)
  1096. {
  1097. serviceBinder.AddMethod(__Method_TryConnection, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(serviceImpl.TryConnection));
  1098. serviceBinder.AddMethod(__Method_AddPlayer, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod<global::Protobuf.PlayerMsg, global::Protobuf.MessageToClient>(serviceImpl.AddPlayer));
  1099. serviceBinder.AddMethod(__Method_Move, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.MoveMsg, global::Protobuf.MoveRes>(serviceImpl.Move));
  1100. serviceBinder.AddMethod(__Method_PickProp, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.PropMsg, global::Protobuf.BoolRes>(serviceImpl.PickProp));
  1101. serviceBinder.AddMethod(__Method_UseProp, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.PropMsg, global::Protobuf.BoolRes>(serviceImpl.UseProp));
  1102. serviceBinder.AddMethod(__Method_ThrowProp, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.PropMsg, global::Protobuf.BoolRes>(serviceImpl.ThrowProp));
  1103. serviceBinder.AddMethod(__Method_UseSkill, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.SkillMsg, global::Protobuf.BoolRes>(serviceImpl.UseSkill));
  1104. serviceBinder.AddMethod(__Method_SendMessage, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.SendMsg, global::Protobuf.BoolRes>(serviceImpl.SendMessage));
  1105. serviceBinder.AddMethod(__Method_StartLearning, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(serviceImpl.StartLearning));
  1106. serviceBinder.AddMethod(__Method_StartRescueMate, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(serviceImpl.StartRescueMate));
  1107. serviceBinder.AddMethod(__Method_StartTreatMate, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(serviceImpl.StartTreatMate));
  1108. serviceBinder.AddMethod(__Method_Attack, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.AttackMsg, global::Protobuf.BoolRes>(serviceImpl.Attack));
  1109. serviceBinder.AddMethod(__Method_Graduate, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(serviceImpl.Graduate));
  1110. serviceBinder.AddMethod(__Method_OpenDoor, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(serviceImpl.OpenDoor));
  1111. serviceBinder.AddMethod(__Method_CloseDoor, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(serviceImpl.CloseDoor));
  1112. serviceBinder.AddMethod(__Method_SkipWindow, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(serviceImpl.SkipWindow));
  1113. serviceBinder.AddMethod(__Method_StartOpenGate, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(serviceImpl.StartOpenGate));
  1114. serviceBinder.AddMethod(__Method_StartOpenChest, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(serviceImpl.StartOpenChest));
  1115. serviceBinder.AddMethod(__Method_EndAllAction, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Protobuf.IDMsg, global::Protobuf.BoolRes>(serviceImpl.EndAllAction));
  1116. }
  1117. }
  1118. }
  1119. #endregion