Fight.cs 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: pb/fight.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace BossServer {
  12. /// <summary>Holder for reflection information generated from pb/fight.proto</summary>
  13. public static partial class FightReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for pb/fight.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static FightReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Cg5wYi9maWdodC5wcm90bxIKQm9zc1NlcnZlciIlChNDU0ZpZ2h0UmVwb3J0",
  24. "RGFtYWdlEg4KBkRhbWFnZRgBIAEoBSIgCg5DU1JlcG9ydFVzZXJIUBIOCgZV",
  25. "c2VySFAYASABKAUiGwoMQ1NMZWF2ZUZpZ2h0EgsKA19ubxgBIAEoBSJJCgxD",
  26. "U0VudGVyRmlnaHQSDgoGWm9uZWlkGAEgASgFEgsKA1VpZBgCIAEoCRIMCgRO",
  27. "YW1lGAMgASgJEg4KBkJvc3NJZBgEIAEoBSJUCgxTQ0VudGVyRmlnaHQSDgoG",
  28. "Qm9zc0hwGAEgASgFEhEKCUJvc3NNYXhIcBgCIAEoBRIOCgZVc2VySFAYAyAB",
  29. "KAUSEQoJQ291bnREb3duGAQgASgFIkoKElNDVXBkYXRlUHJvcGVydGllcxIO",
  30. "CgZCb3NzSHAYASABKAUSEQoJQm9zc01heEhwGAIgASgFEhEKCUNvdW50RG93",
  31. "bhgDIAEoBSIvCgpTQ0dhbWVPdmVyEg4KBkJvc3NIcBgBIAEoBRIRCglDb3Vu",
  32. "dERvd24YAiABKAViBnByb3RvMw=="));
  33. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  34. new pbr::FileDescriptor[] { },
  35. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  36. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.CSFightReportDamage), global::BossServer.CSFightReportDamage.Parser, new[]{ "Damage" }, null, null, null, null),
  37. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.CSReportUserHP), global::BossServer.CSReportUserHP.Parser, new[]{ "UserHP" }, null, null, null, null),
  38. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.CSLeaveFight), global::BossServer.CSLeaveFight.Parser, new[]{ "No" }, null, null, null, null),
  39. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.CSEnterFight), global::BossServer.CSEnterFight.Parser, new[]{ "Zoneid", "Uid", "Name", "BossId" }, null, null, null, null),
  40. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.SCEnterFight), global::BossServer.SCEnterFight.Parser, new[]{ "BossHp", "BossMaxHp", "UserHP", "CountDown" }, null, null, null, null),
  41. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.SCUpdateProperties), global::BossServer.SCUpdateProperties.Parser, new[]{ "BossHp", "BossMaxHp", "CountDown" }, null, null, null, null),
  42. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.SCGameOver), global::BossServer.SCGameOver.Parser, new[]{ "BossHp", "CountDown" }, null, null, null, null)
  43. }));
  44. }
  45. #endregion
  46. }
  47. #region Messages
  48. /// <summary>
  49. ///上报伤害输出
  50. /// </summary>
  51. public sealed partial class CSFightReportDamage : pb::IMessage<CSFightReportDamage>
  52. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  53. , pb::IBufferMessage
  54. #endif
  55. {
  56. private static readonly pb::MessageParser<CSFightReportDamage> _parser = new pb::MessageParser<CSFightReportDamage>(() => new CSFightReportDamage());
  57. private pb::UnknownFieldSet _unknownFields;
  58. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  59. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  60. public static pb::MessageParser<CSFightReportDamage> Parser { get { return _parser; } }
  61. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  62. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  63. public static pbr::MessageDescriptor Descriptor {
  64. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[0]; }
  65. }
  66. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  67. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  68. pbr::MessageDescriptor pb::IMessage.Descriptor {
  69. get { return Descriptor; }
  70. }
  71. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  72. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  73. public CSFightReportDamage() {
  74. OnConstruction();
  75. }
  76. partial void OnConstruction();
  77. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  78. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  79. public CSFightReportDamage(CSFightReportDamage other) : this() {
  80. damage_ = other.damage_;
  81. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  82. }
  83. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  84. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  85. public CSFightReportDamage Clone() {
  86. return new CSFightReportDamage(this);
  87. }
  88. /// <summary>Field number for the "Damage" field.</summary>
  89. public const int DamageFieldNumber = 1;
  90. private int damage_;
  91. /// <summary>
  92. /// 伤害输出
  93. /// </summary>
  94. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  95. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  96. public int Damage {
  97. get { return damage_; }
  98. set {
  99. damage_ = value;
  100. }
  101. }
  102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  103. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  104. public override bool Equals(object other) {
  105. return Equals(other as CSFightReportDamage);
  106. }
  107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  108. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  109. public bool Equals(CSFightReportDamage other) {
  110. if (ReferenceEquals(other, null)) {
  111. return false;
  112. }
  113. if (ReferenceEquals(other, this)) {
  114. return true;
  115. }
  116. if (Damage != other.Damage) return false;
  117. return Equals(_unknownFields, other._unknownFields);
  118. }
  119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  120. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  121. public override int GetHashCode() {
  122. int hash = 1;
  123. if (Damage != 0) hash ^= Damage.GetHashCode();
  124. if (_unknownFields != null) {
  125. hash ^= _unknownFields.GetHashCode();
  126. }
  127. return hash;
  128. }
  129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  130. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  131. public override string ToString() {
  132. return pb::JsonFormatter.ToDiagnosticString(this);
  133. }
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  135. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  136. public void WriteTo(pb::CodedOutputStream output) {
  137. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  138. output.WriteRawMessage(this);
  139. #else
  140. if (Damage != 0) {
  141. output.WriteRawTag(8);
  142. output.WriteInt32(Damage);
  143. }
  144. if (_unknownFields != null) {
  145. _unknownFields.WriteTo(output);
  146. }
  147. #endif
  148. }
  149. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  151. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  152. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  153. if (Damage != 0) {
  154. output.WriteRawTag(8);
  155. output.WriteInt32(Damage);
  156. }
  157. if (_unknownFields != null) {
  158. _unknownFields.WriteTo(ref output);
  159. }
  160. }
  161. #endif
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  163. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  164. public int CalculateSize() {
  165. int size = 0;
  166. if (Damage != 0) {
  167. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Damage);
  168. }
  169. if (_unknownFields != null) {
  170. size += _unknownFields.CalculateSize();
  171. }
  172. return size;
  173. }
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  175. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  176. public void MergeFrom(CSFightReportDamage other) {
  177. if (other == null) {
  178. return;
  179. }
  180. if (other.Damage != 0) {
  181. Damage = other.Damage;
  182. }
  183. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  184. }
  185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  186. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  187. public void MergeFrom(pb::CodedInputStream input) {
  188. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  189. input.ReadRawMessage(this);
  190. #else
  191. uint tag;
  192. while ((tag = input.ReadTag()) != 0) {
  193. switch(tag) {
  194. default:
  195. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  196. break;
  197. case 8: {
  198. Damage = input.ReadInt32();
  199. break;
  200. }
  201. }
  202. }
  203. #endif
  204. }
  205. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  207. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  208. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  209. uint tag;
  210. while ((tag = input.ReadTag()) != 0) {
  211. switch(tag) {
  212. default:
  213. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  214. break;
  215. case 8: {
  216. Damage = input.ReadInt32();
  217. break;
  218. }
  219. }
  220. }
  221. }
  222. #endif
  223. }
  224. /// <summary>
  225. /// 上报玩家剩余血量
  226. /// </summary>
  227. public sealed partial class CSReportUserHP : pb::IMessage<CSReportUserHP>
  228. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  229. , pb::IBufferMessage
  230. #endif
  231. {
  232. private static readonly pb::MessageParser<CSReportUserHP> _parser = new pb::MessageParser<CSReportUserHP>(() => new CSReportUserHP());
  233. private pb::UnknownFieldSet _unknownFields;
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  235. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  236. public static pb::MessageParser<CSReportUserHP> Parser { get { return _parser; } }
  237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  238. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  239. public static pbr::MessageDescriptor Descriptor {
  240. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[1]; }
  241. }
  242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  243. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  244. pbr::MessageDescriptor pb::IMessage.Descriptor {
  245. get { return Descriptor; }
  246. }
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  248. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  249. public CSReportUserHP() {
  250. OnConstruction();
  251. }
  252. partial void OnConstruction();
  253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  254. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  255. public CSReportUserHP(CSReportUserHP other) : this() {
  256. userHP_ = other.userHP_;
  257. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  260. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  261. public CSReportUserHP Clone() {
  262. return new CSReportUserHP(this);
  263. }
  264. /// <summary>Field number for the "UserHP" field.</summary>
  265. public const int UserHPFieldNumber = 1;
  266. private int userHP_;
  267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  268. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  269. public int UserHP {
  270. get { return userHP_; }
  271. set {
  272. userHP_ = value;
  273. }
  274. }
  275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  276. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  277. public override bool Equals(object other) {
  278. return Equals(other as CSReportUserHP);
  279. }
  280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  281. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  282. public bool Equals(CSReportUserHP other) {
  283. if (ReferenceEquals(other, null)) {
  284. return false;
  285. }
  286. if (ReferenceEquals(other, this)) {
  287. return true;
  288. }
  289. if (UserHP != other.UserHP) return false;
  290. return Equals(_unknownFields, other._unknownFields);
  291. }
  292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  293. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  294. public override int GetHashCode() {
  295. int hash = 1;
  296. if (UserHP != 0) hash ^= UserHP.GetHashCode();
  297. if (_unknownFields != null) {
  298. hash ^= _unknownFields.GetHashCode();
  299. }
  300. return hash;
  301. }
  302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  303. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  304. public override string ToString() {
  305. return pb::JsonFormatter.ToDiagnosticString(this);
  306. }
  307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  308. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  309. public void WriteTo(pb::CodedOutputStream output) {
  310. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  311. output.WriteRawMessage(this);
  312. #else
  313. if (UserHP != 0) {
  314. output.WriteRawTag(8);
  315. output.WriteInt32(UserHP);
  316. }
  317. if (_unknownFields != null) {
  318. _unknownFields.WriteTo(output);
  319. }
  320. #endif
  321. }
  322. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  324. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  325. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  326. if (UserHP != 0) {
  327. output.WriteRawTag(8);
  328. output.WriteInt32(UserHP);
  329. }
  330. if (_unknownFields != null) {
  331. _unknownFields.WriteTo(ref output);
  332. }
  333. }
  334. #endif
  335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  336. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  337. public int CalculateSize() {
  338. int size = 0;
  339. if (UserHP != 0) {
  340. size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserHP);
  341. }
  342. if (_unknownFields != null) {
  343. size += _unknownFields.CalculateSize();
  344. }
  345. return size;
  346. }
  347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  348. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  349. public void MergeFrom(CSReportUserHP other) {
  350. if (other == null) {
  351. return;
  352. }
  353. if (other.UserHP != 0) {
  354. UserHP = other.UserHP;
  355. }
  356. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  357. }
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  359. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  360. public void MergeFrom(pb::CodedInputStream input) {
  361. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  362. input.ReadRawMessage(this);
  363. #else
  364. uint tag;
  365. while ((tag = input.ReadTag()) != 0) {
  366. switch(tag) {
  367. default:
  368. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  369. break;
  370. case 8: {
  371. UserHP = input.ReadInt32();
  372. break;
  373. }
  374. }
  375. }
  376. #endif
  377. }
  378. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  380. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  381. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  382. uint tag;
  383. while ((tag = input.ReadTag()) != 0) {
  384. switch(tag) {
  385. default:
  386. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  387. break;
  388. case 8: {
  389. UserHP = input.ReadInt32();
  390. break;
  391. }
  392. }
  393. }
  394. }
  395. #endif
  396. }
  397. /// <summary>
  398. /// 结束(一般情况下是玩家血量到底主动退出)
  399. /// </summary>
  400. public sealed partial class CSLeaveFight : pb::IMessage<CSLeaveFight>
  401. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  402. , pb::IBufferMessage
  403. #endif
  404. {
  405. private static readonly pb::MessageParser<CSLeaveFight> _parser = new pb::MessageParser<CSLeaveFight>(() => new CSLeaveFight());
  406. private pb::UnknownFieldSet _unknownFields;
  407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  408. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  409. public static pb::MessageParser<CSLeaveFight> Parser { get { return _parser; } }
  410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  411. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  412. public static pbr::MessageDescriptor Descriptor {
  413. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[2]; }
  414. }
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  416. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  417. pbr::MessageDescriptor pb::IMessage.Descriptor {
  418. get { return Descriptor; }
  419. }
  420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  421. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  422. public CSLeaveFight() {
  423. OnConstruction();
  424. }
  425. partial void OnConstruction();
  426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  427. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  428. public CSLeaveFight(CSLeaveFight other) : this() {
  429. No_ = other.No_;
  430. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  431. }
  432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  433. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  434. public CSLeaveFight Clone() {
  435. return new CSLeaveFight(this);
  436. }
  437. /// <summary>Field number for the "_no" field.</summary>
  438. public const int NoFieldNumber = 1;
  439. private int No_;
  440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  441. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  442. public int No {
  443. get { return No_; }
  444. set {
  445. No_ = value;
  446. }
  447. }
  448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  449. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  450. public override bool Equals(object other) {
  451. return Equals(other as CSLeaveFight);
  452. }
  453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  454. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  455. public bool Equals(CSLeaveFight other) {
  456. if (ReferenceEquals(other, null)) {
  457. return false;
  458. }
  459. if (ReferenceEquals(other, this)) {
  460. return true;
  461. }
  462. if (No != other.No) return false;
  463. return Equals(_unknownFields, other._unknownFields);
  464. }
  465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  466. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  467. public override int GetHashCode() {
  468. int hash = 1;
  469. if (No != 0) hash ^= No.GetHashCode();
  470. if (_unknownFields != null) {
  471. hash ^= _unknownFields.GetHashCode();
  472. }
  473. return hash;
  474. }
  475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  476. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  477. public override string ToString() {
  478. return pb::JsonFormatter.ToDiagnosticString(this);
  479. }
  480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  481. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  482. public void WriteTo(pb::CodedOutputStream output) {
  483. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  484. output.WriteRawMessage(this);
  485. #else
  486. if (No != 0) {
  487. output.WriteRawTag(8);
  488. output.WriteInt32(No);
  489. }
  490. if (_unknownFields != null) {
  491. _unknownFields.WriteTo(output);
  492. }
  493. #endif
  494. }
  495. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  497. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  498. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  499. if (No != 0) {
  500. output.WriteRawTag(8);
  501. output.WriteInt32(No);
  502. }
  503. if (_unknownFields != null) {
  504. _unknownFields.WriteTo(ref output);
  505. }
  506. }
  507. #endif
  508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  509. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  510. public int CalculateSize() {
  511. int size = 0;
  512. if (No != 0) {
  513. size += 1 + pb::CodedOutputStream.ComputeInt32Size(No);
  514. }
  515. if (_unknownFields != null) {
  516. size += _unknownFields.CalculateSize();
  517. }
  518. return size;
  519. }
  520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  521. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  522. public void MergeFrom(CSLeaveFight other) {
  523. if (other == null) {
  524. return;
  525. }
  526. if (other.No != 0) {
  527. No = other.No;
  528. }
  529. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  530. }
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  532. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  533. public void MergeFrom(pb::CodedInputStream input) {
  534. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  535. input.ReadRawMessage(this);
  536. #else
  537. uint tag;
  538. while ((tag = input.ReadTag()) != 0) {
  539. switch(tag) {
  540. default:
  541. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  542. break;
  543. case 8: {
  544. No = input.ReadInt32();
  545. break;
  546. }
  547. }
  548. }
  549. #endif
  550. }
  551. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  553. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  554. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  555. uint tag;
  556. while ((tag = input.ReadTag()) != 0) {
  557. switch(tag) {
  558. default:
  559. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  560. break;
  561. case 8: {
  562. No = input.ReadInt32();
  563. break;
  564. }
  565. }
  566. }
  567. }
  568. #endif
  569. }
  570. /// <summary>
  571. /// 从连接状态转入已经登陆状态(标记自己的uid和zoneid)
  572. /// </summary>
  573. public sealed partial class CSEnterFight : pb::IMessage<CSEnterFight>
  574. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  575. , pb::IBufferMessage
  576. #endif
  577. {
  578. private static readonly pb::MessageParser<CSEnterFight> _parser = new pb::MessageParser<CSEnterFight>(() => new CSEnterFight());
  579. private pb::UnknownFieldSet _unknownFields;
  580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  581. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  582. public static pb::MessageParser<CSEnterFight> Parser { get { return _parser; } }
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  584. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  585. public static pbr::MessageDescriptor Descriptor {
  586. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[3]; }
  587. }
  588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  589. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  590. pbr::MessageDescriptor pb::IMessage.Descriptor {
  591. get { return Descriptor; }
  592. }
  593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  594. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  595. public CSEnterFight() {
  596. OnConstruction();
  597. }
  598. partial void OnConstruction();
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  600. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  601. public CSEnterFight(CSEnterFight other) : this() {
  602. zoneid_ = other.zoneid_;
  603. uid_ = other.uid_;
  604. name_ = other.name_;
  605. bossId_ = other.bossId_;
  606. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  607. }
  608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  609. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  610. public CSEnterFight Clone() {
  611. return new CSEnterFight(this);
  612. }
  613. /// <summary>Field number for the "Zoneid" field.</summary>
  614. public const int ZoneidFieldNumber = 1;
  615. private int zoneid_;
  616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  617. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  618. public int Zoneid {
  619. get { return zoneid_; }
  620. set {
  621. zoneid_ = value;
  622. }
  623. }
  624. /// <summary>Field number for the "Uid" field.</summary>
  625. public const int UidFieldNumber = 2;
  626. private string uid_ = "";
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  628. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  629. public string Uid {
  630. get { return uid_; }
  631. set {
  632. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  633. }
  634. }
  635. /// <summary>Field number for the "Name" field.</summary>
  636. public const int NameFieldNumber = 3;
  637. private string name_ = "";
  638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  639. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  640. public string Name {
  641. get { return name_; }
  642. set {
  643. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  644. }
  645. }
  646. /// <summary>Field number for the "BossId" field.</summary>
  647. public const int BossIdFieldNumber = 4;
  648. private int bossId_;
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  650. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  651. public int BossId {
  652. get { return bossId_; }
  653. set {
  654. bossId_ = value;
  655. }
  656. }
  657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  658. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  659. public override bool Equals(object other) {
  660. return Equals(other as CSEnterFight);
  661. }
  662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  663. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  664. public bool Equals(CSEnterFight other) {
  665. if (ReferenceEquals(other, null)) {
  666. return false;
  667. }
  668. if (ReferenceEquals(other, this)) {
  669. return true;
  670. }
  671. if (Zoneid != other.Zoneid) return false;
  672. if (Uid != other.Uid) return false;
  673. if (Name != other.Name) return false;
  674. if (BossId != other.BossId) return false;
  675. return Equals(_unknownFields, other._unknownFields);
  676. }
  677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  678. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  679. public override int GetHashCode() {
  680. int hash = 1;
  681. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  682. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  683. if (Name.Length != 0) hash ^= Name.GetHashCode();
  684. if (BossId != 0) hash ^= BossId.GetHashCode();
  685. if (_unknownFields != null) {
  686. hash ^= _unknownFields.GetHashCode();
  687. }
  688. return hash;
  689. }
  690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  691. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  692. public override string ToString() {
  693. return pb::JsonFormatter.ToDiagnosticString(this);
  694. }
  695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  696. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  697. public void WriteTo(pb::CodedOutputStream output) {
  698. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  699. output.WriteRawMessage(this);
  700. #else
  701. if (Zoneid != 0) {
  702. output.WriteRawTag(8);
  703. output.WriteInt32(Zoneid);
  704. }
  705. if (Uid.Length != 0) {
  706. output.WriteRawTag(18);
  707. output.WriteString(Uid);
  708. }
  709. if (Name.Length != 0) {
  710. output.WriteRawTag(26);
  711. output.WriteString(Name);
  712. }
  713. if (BossId != 0) {
  714. output.WriteRawTag(32);
  715. output.WriteInt32(BossId);
  716. }
  717. if (_unknownFields != null) {
  718. _unknownFields.WriteTo(output);
  719. }
  720. #endif
  721. }
  722. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  724. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  725. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  726. if (Zoneid != 0) {
  727. output.WriteRawTag(8);
  728. output.WriteInt32(Zoneid);
  729. }
  730. if (Uid.Length != 0) {
  731. output.WriteRawTag(18);
  732. output.WriteString(Uid);
  733. }
  734. if (Name.Length != 0) {
  735. output.WriteRawTag(26);
  736. output.WriteString(Name);
  737. }
  738. if (BossId != 0) {
  739. output.WriteRawTag(32);
  740. output.WriteInt32(BossId);
  741. }
  742. if (_unknownFields != null) {
  743. _unknownFields.WriteTo(ref output);
  744. }
  745. }
  746. #endif
  747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  748. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  749. public int CalculateSize() {
  750. int size = 0;
  751. if (Zoneid != 0) {
  752. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  753. }
  754. if (Uid.Length != 0) {
  755. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  756. }
  757. if (Name.Length != 0) {
  758. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  759. }
  760. if (BossId != 0) {
  761. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossId);
  762. }
  763. if (_unknownFields != null) {
  764. size += _unknownFields.CalculateSize();
  765. }
  766. return size;
  767. }
  768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  769. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  770. public void MergeFrom(CSEnterFight other) {
  771. if (other == null) {
  772. return;
  773. }
  774. if (other.Zoneid != 0) {
  775. Zoneid = other.Zoneid;
  776. }
  777. if (other.Uid.Length != 0) {
  778. Uid = other.Uid;
  779. }
  780. if (other.Name.Length != 0) {
  781. Name = other.Name;
  782. }
  783. if (other.BossId != 0) {
  784. BossId = other.BossId;
  785. }
  786. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  787. }
  788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  789. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  790. public void MergeFrom(pb::CodedInputStream input) {
  791. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  792. input.ReadRawMessage(this);
  793. #else
  794. uint tag;
  795. while ((tag = input.ReadTag()) != 0) {
  796. switch(tag) {
  797. default:
  798. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  799. break;
  800. case 8: {
  801. Zoneid = input.ReadInt32();
  802. break;
  803. }
  804. case 18: {
  805. Uid = input.ReadString();
  806. break;
  807. }
  808. case 26: {
  809. Name = input.ReadString();
  810. break;
  811. }
  812. case 32: {
  813. BossId = input.ReadInt32();
  814. break;
  815. }
  816. }
  817. }
  818. #endif
  819. }
  820. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  822. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  823. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  824. uint tag;
  825. while ((tag = input.ReadTag()) != 0) {
  826. switch(tag) {
  827. default:
  828. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  829. break;
  830. case 8: {
  831. Zoneid = input.ReadInt32();
  832. break;
  833. }
  834. case 18: {
  835. Uid = input.ReadString();
  836. break;
  837. }
  838. case 26: {
  839. Name = input.ReadString();
  840. break;
  841. }
  842. case 32: {
  843. BossId = input.ReadInt32();
  844. break;
  845. }
  846. }
  847. }
  848. }
  849. #endif
  850. }
  851. /// <summary>
  852. /// 登陆完成
  853. /// </summary>
  854. public sealed partial class SCEnterFight : pb::IMessage<SCEnterFight>
  855. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  856. , pb::IBufferMessage
  857. #endif
  858. {
  859. private static readonly pb::MessageParser<SCEnterFight> _parser = new pb::MessageParser<SCEnterFight>(() => new SCEnterFight());
  860. private pb::UnknownFieldSet _unknownFields;
  861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  862. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  863. public static pb::MessageParser<SCEnterFight> Parser { get { return _parser; } }
  864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  865. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  866. public static pbr::MessageDescriptor Descriptor {
  867. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[4]; }
  868. }
  869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  870. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  871. pbr::MessageDescriptor pb::IMessage.Descriptor {
  872. get { return Descriptor; }
  873. }
  874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  875. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  876. public SCEnterFight() {
  877. OnConstruction();
  878. }
  879. partial void OnConstruction();
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  881. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  882. public SCEnterFight(SCEnterFight other) : this() {
  883. bossHp_ = other.bossHp_;
  884. bossMaxHp_ = other.bossMaxHp_;
  885. userHP_ = other.userHP_;
  886. countDown_ = other.countDown_;
  887. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  890. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  891. public SCEnterFight Clone() {
  892. return new SCEnterFight(this);
  893. }
  894. /// <summary>Field number for the "BossHp" field.</summary>
  895. public const int BossHpFieldNumber = 1;
  896. private int bossHp_;
  897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  898. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  899. public int BossHp {
  900. get { return bossHp_; }
  901. set {
  902. bossHp_ = value;
  903. }
  904. }
  905. /// <summary>Field number for the "BossMaxHp" field.</summary>
  906. public const int BossMaxHpFieldNumber = 2;
  907. private int bossMaxHp_;
  908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  909. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  910. public int BossMaxHp {
  911. get { return bossMaxHp_; }
  912. set {
  913. bossMaxHp_ = value;
  914. }
  915. }
  916. /// <summary>Field number for the "UserHP" field.</summary>
  917. public const int UserHPFieldNumber = 3;
  918. private int userHP_;
  919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  920. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  921. public int UserHP {
  922. get { return userHP_; }
  923. set {
  924. userHP_ = value;
  925. }
  926. }
  927. /// <summary>Field number for the "CountDown" field.</summary>
  928. public const int CountDownFieldNumber = 4;
  929. private int countDown_;
  930. /// <summary>
  931. /// 倒计时
  932. /// </summary>
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  934. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  935. public int CountDown {
  936. get { return countDown_; }
  937. set {
  938. countDown_ = value;
  939. }
  940. }
  941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  942. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  943. public override bool Equals(object other) {
  944. return Equals(other as SCEnterFight);
  945. }
  946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  947. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  948. public bool Equals(SCEnterFight other) {
  949. if (ReferenceEquals(other, null)) {
  950. return false;
  951. }
  952. if (ReferenceEquals(other, this)) {
  953. return true;
  954. }
  955. if (BossHp != other.BossHp) return false;
  956. if (BossMaxHp != other.BossMaxHp) return false;
  957. if (UserHP != other.UserHP) return false;
  958. if (CountDown != other.CountDown) return false;
  959. return Equals(_unknownFields, other._unknownFields);
  960. }
  961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  962. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  963. public override int GetHashCode() {
  964. int hash = 1;
  965. if (BossHp != 0) hash ^= BossHp.GetHashCode();
  966. if (BossMaxHp != 0) hash ^= BossMaxHp.GetHashCode();
  967. if (UserHP != 0) hash ^= UserHP.GetHashCode();
  968. if (CountDown != 0) hash ^= CountDown.GetHashCode();
  969. if (_unknownFields != null) {
  970. hash ^= _unknownFields.GetHashCode();
  971. }
  972. return hash;
  973. }
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  975. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  976. public override string ToString() {
  977. return pb::JsonFormatter.ToDiagnosticString(this);
  978. }
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  980. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  981. public void WriteTo(pb::CodedOutputStream output) {
  982. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  983. output.WriteRawMessage(this);
  984. #else
  985. if (BossHp != 0) {
  986. output.WriteRawTag(8);
  987. output.WriteInt32(BossHp);
  988. }
  989. if (BossMaxHp != 0) {
  990. output.WriteRawTag(16);
  991. output.WriteInt32(BossMaxHp);
  992. }
  993. if (UserHP != 0) {
  994. output.WriteRawTag(24);
  995. output.WriteInt32(UserHP);
  996. }
  997. if (CountDown != 0) {
  998. output.WriteRawTag(32);
  999. output.WriteInt32(CountDown);
  1000. }
  1001. if (_unknownFields != null) {
  1002. _unknownFields.WriteTo(output);
  1003. }
  1004. #endif
  1005. }
  1006. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1008. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1009. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1010. if (BossHp != 0) {
  1011. output.WriteRawTag(8);
  1012. output.WriteInt32(BossHp);
  1013. }
  1014. if (BossMaxHp != 0) {
  1015. output.WriteRawTag(16);
  1016. output.WriteInt32(BossMaxHp);
  1017. }
  1018. if (UserHP != 0) {
  1019. output.WriteRawTag(24);
  1020. output.WriteInt32(UserHP);
  1021. }
  1022. if (CountDown != 0) {
  1023. output.WriteRawTag(32);
  1024. output.WriteInt32(CountDown);
  1025. }
  1026. if (_unknownFields != null) {
  1027. _unknownFields.WriteTo(ref output);
  1028. }
  1029. }
  1030. #endif
  1031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1032. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1033. public int CalculateSize() {
  1034. int size = 0;
  1035. if (BossHp != 0) {
  1036. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossHp);
  1037. }
  1038. if (BossMaxHp != 0) {
  1039. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossMaxHp);
  1040. }
  1041. if (UserHP != 0) {
  1042. size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserHP);
  1043. }
  1044. if (CountDown != 0) {
  1045. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CountDown);
  1046. }
  1047. if (_unknownFields != null) {
  1048. size += _unknownFields.CalculateSize();
  1049. }
  1050. return size;
  1051. }
  1052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1053. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1054. public void MergeFrom(SCEnterFight other) {
  1055. if (other == null) {
  1056. return;
  1057. }
  1058. if (other.BossHp != 0) {
  1059. BossHp = other.BossHp;
  1060. }
  1061. if (other.BossMaxHp != 0) {
  1062. BossMaxHp = other.BossMaxHp;
  1063. }
  1064. if (other.UserHP != 0) {
  1065. UserHP = other.UserHP;
  1066. }
  1067. if (other.CountDown != 0) {
  1068. CountDown = other.CountDown;
  1069. }
  1070. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1071. }
  1072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1073. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1074. public void MergeFrom(pb::CodedInputStream input) {
  1075. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1076. input.ReadRawMessage(this);
  1077. #else
  1078. uint tag;
  1079. while ((tag = input.ReadTag()) != 0) {
  1080. switch(tag) {
  1081. default:
  1082. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1083. break;
  1084. case 8: {
  1085. BossHp = input.ReadInt32();
  1086. break;
  1087. }
  1088. case 16: {
  1089. BossMaxHp = input.ReadInt32();
  1090. break;
  1091. }
  1092. case 24: {
  1093. UserHP = input.ReadInt32();
  1094. break;
  1095. }
  1096. case 32: {
  1097. CountDown = input.ReadInt32();
  1098. break;
  1099. }
  1100. }
  1101. }
  1102. #endif
  1103. }
  1104. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1106. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1107. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1108. uint tag;
  1109. while ((tag = input.ReadTag()) != 0) {
  1110. switch(tag) {
  1111. default:
  1112. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1113. break;
  1114. case 8: {
  1115. BossHp = input.ReadInt32();
  1116. break;
  1117. }
  1118. case 16: {
  1119. BossMaxHp = input.ReadInt32();
  1120. break;
  1121. }
  1122. case 24: {
  1123. UserHP = input.ReadInt32();
  1124. break;
  1125. }
  1126. case 32: {
  1127. CountDown = input.ReadInt32();
  1128. break;
  1129. }
  1130. }
  1131. }
  1132. }
  1133. #endif
  1134. }
  1135. /// <summary>
  1136. /// 更新状态数据
  1137. /// </summary>
  1138. public sealed partial class SCUpdateProperties : pb::IMessage<SCUpdateProperties>
  1139. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1140. , pb::IBufferMessage
  1141. #endif
  1142. {
  1143. private static readonly pb::MessageParser<SCUpdateProperties> _parser = new pb::MessageParser<SCUpdateProperties>(() => new SCUpdateProperties());
  1144. private pb::UnknownFieldSet _unknownFields;
  1145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1146. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1147. public static pb::MessageParser<SCUpdateProperties> Parser { get { return _parser; } }
  1148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1149. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1150. public static pbr::MessageDescriptor Descriptor {
  1151. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[5]; }
  1152. }
  1153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1154. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1155. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1156. get { return Descriptor; }
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1159. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1160. public SCUpdateProperties() {
  1161. OnConstruction();
  1162. }
  1163. partial void OnConstruction();
  1164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1165. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1166. public SCUpdateProperties(SCUpdateProperties other) : this() {
  1167. bossHp_ = other.bossHp_;
  1168. bossMaxHp_ = other.bossMaxHp_;
  1169. countDown_ = other.countDown_;
  1170. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1171. }
  1172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1173. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1174. public SCUpdateProperties Clone() {
  1175. return new SCUpdateProperties(this);
  1176. }
  1177. /// <summary>Field number for the "BossHp" field.</summary>
  1178. public const int BossHpFieldNumber = 1;
  1179. private int bossHp_;
  1180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1181. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1182. public int BossHp {
  1183. get { return bossHp_; }
  1184. set {
  1185. bossHp_ = value;
  1186. }
  1187. }
  1188. /// <summary>Field number for the "BossMaxHp" field.</summary>
  1189. public const int BossMaxHpFieldNumber = 2;
  1190. private int bossMaxHp_;
  1191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1192. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1193. public int BossMaxHp {
  1194. get { return bossMaxHp_; }
  1195. set {
  1196. bossMaxHp_ = value;
  1197. }
  1198. }
  1199. /// <summary>Field number for the "CountDown" field.</summary>
  1200. public const int CountDownFieldNumber = 3;
  1201. private int countDown_;
  1202. /// <summary>
  1203. /// 倒计时
  1204. /// </summary>
  1205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1206. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1207. public int CountDown {
  1208. get { return countDown_; }
  1209. set {
  1210. countDown_ = value;
  1211. }
  1212. }
  1213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1214. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1215. public override bool Equals(object other) {
  1216. return Equals(other as SCUpdateProperties);
  1217. }
  1218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1219. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1220. public bool Equals(SCUpdateProperties other) {
  1221. if (ReferenceEquals(other, null)) {
  1222. return false;
  1223. }
  1224. if (ReferenceEquals(other, this)) {
  1225. return true;
  1226. }
  1227. if (BossHp != other.BossHp) return false;
  1228. if (BossMaxHp != other.BossMaxHp) return false;
  1229. if (CountDown != other.CountDown) return false;
  1230. return Equals(_unknownFields, other._unknownFields);
  1231. }
  1232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1233. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1234. public override int GetHashCode() {
  1235. int hash = 1;
  1236. if (BossHp != 0) hash ^= BossHp.GetHashCode();
  1237. if (BossMaxHp != 0) hash ^= BossMaxHp.GetHashCode();
  1238. if (CountDown != 0) hash ^= CountDown.GetHashCode();
  1239. if (_unknownFields != null) {
  1240. hash ^= _unknownFields.GetHashCode();
  1241. }
  1242. return hash;
  1243. }
  1244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1245. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1246. public override string ToString() {
  1247. return pb::JsonFormatter.ToDiagnosticString(this);
  1248. }
  1249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1250. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1251. public void WriteTo(pb::CodedOutputStream output) {
  1252. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1253. output.WriteRawMessage(this);
  1254. #else
  1255. if (BossHp != 0) {
  1256. output.WriteRawTag(8);
  1257. output.WriteInt32(BossHp);
  1258. }
  1259. if (BossMaxHp != 0) {
  1260. output.WriteRawTag(16);
  1261. output.WriteInt32(BossMaxHp);
  1262. }
  1263. if (CountDown != 0) {
  1264. output.WriteRawTag(24);
  1265. output.WriteInt32(CountDown);
  1266. }
  1267. if (_unknownFields != null) {
  1268. _unknownFields.WriteTo(output);
  1269. }
  1270. #endif
  1271. }
  1272. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1274. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1275. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1276. if (BossHp != 0) {
  1277. output.WriteRawTag(8);
  1278. output.WriteInt32(BossHp);
  1279. }
  1280. if (BossMaxHp != 0) {
  1281. output.WriteRawTag(16);
  1282. output.WriteInt32(BossMaxHp);
  1283. }
  1284. if (CountDown != 0) {
  1285. output.WriteRawTag(24);
  1286. output.WriteInt32(CountDown);
  1287. }
  1288. if (_unknownFields != null) {
  1289. _unknownFields.WriteTo(ref output);
  1290. }
  1291. }
  1292. #endif
  1293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1294. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1295. public int CalculateSize() {
  1296. int size = 0;
  1297. if (BossHp != 0) {
  1298. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossHp);
  1299. }
  1300. if (BossMaxHp != 0) {
  1301. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossMaxHp);
  1302. }
  1303. if (CountDown != 0) {
  1304. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CountDown);
  1305. }
  1306. if (_unknownFields != null) {
  1307. size += _unknownFields.CalculateSize();
  1308. }
  1309. return size;
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1312. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1313. public void MergeFrom(SCUpdateProperties other) {
  1314. if (other == null) {
  1315. return;
  1316. }
  1317. if (other.BossHp != 0) {
  1318. BossHp = other.BossHp;
  1319. }
  1320. if (other.BossMaxHp != 0) {
  1321. BossMaxHp = other.BossMaxHp;
  1322. }
  1323. if (other.CountDown != 0) {
  1324. CountDown = other.CountDown;
  1325. }
  1326. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1327. }
  1328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1329. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1330. public void MergeFrom(pb::CodedInputStream input) {
  1331. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1332. input.ReadRawMessage(this);
  1333. #else
  1334. uint tag;
  1335. while ((tag = input.ReadTag()) != 0) {
  1336. switch(tag) {
  1337. default:
  1338. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1339. break;
  1340. case 8: {
  1341. BossHp = input.ReadInt32();
  1342. break;
  1343. }
  1344. case 16: {
  1345. BossMaxHp = input.ReadInt32();
  1346. break;
  1347. }
  1348. case 24: {
  1349. CountDown = input.ReadInt32();
  1350. break;
  1351. }
  1352. }
  1353. }
  1354. #endif
  1355. }
  1356. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1358. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1359. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1360. uint tag;
  1361. while ((tag = input.ReadTag()) != 0) {
  1362. switch(tag) {
  1363. default:
  1364. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1365. break;
  1366. case 8: {
  1367. BossHp = input.ReadInt32();
  1368. break;
  1369. }
  1370. case 16: {
  1371. BossMaxHp = input.ReadInt32();
  1372. break;
  1373. }
  1374. case 24: {
  1375. CountDown = input.ReadInt32();
  1376. break;
  1377. }
  1378. }
  1379. }
  1380. }
  1381. #endif
  1382. }
  1383. /// <summary>
  1384. /// 战斗结束
  1385. /// </summary>
  1386. public sealed partial class SCGameOver : pb::IMessage<SCGameOver>
  1387. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1388. , pb::IBufferMessage
  1389. #endif
  1390. {
  1391. private static readonly pb::MessageParser<SCGameOver> _parser = new pb::MessageParser<SCGameOver>(() => new SCGameOver());
  1392. private pb::UnknownFieldSet _unknownFields;
  1393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1394. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1395. public static pb::MessageParser<SCGameOver> Parser { get { return _parser; } }
  1396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1397. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1398. public static pbr::MessageDescriptor Descriptor {
  1399. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[6]; }
  1400. }
  1401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1402. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1403. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1404. get { return Descriptor; }
  1405. }
  1406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1407. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1408. public SCGameOver() {
  1409. OnConstruction();
  1410. }
  1411. partial void OnConstruction();
  1412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1413. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1414. public SCGameOver(SCGameOver other) : this() {
  1415. bossHp_ = other.bossHp_;
  1416. countDown_ = other.countDown_;
  1417. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1418. }
  1419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1420. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1421. public SCGameOver Clone() {
  1422. return new SCGameOver(this);
  1423. }
  1424. /// <summary>Field number for the "BossHp" field.</summary>
  1425. public const int BossHpFieldNumber = 1;
  1426. private int bossHp_;
  1427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1428. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1429. public int BossHp {
  1430. get { return bossHp_; }
  1431. set {
  1432. bossHp_ = value;
  1433. }
  1434. }
  1435. /// <summary>Field number for the "CountDown" field.</summary>
  1436. public const int CountDownFieldNumber = 2;
  1437. private int countDown_;
  1438. /// <summary>
  1439. /// 倒计时
  1440. /// </summary>
  1441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1442. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1443. public int CountDown {
  1444. get { return countDown_; }
  1445. set {
  1446. countDown_ = value;
  1447. }
  1448. }
  1449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1450. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1451. public override bool Equals(object other) {
  1452. return Equals(other as SCGameOver);
  1453. }
  1454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1455. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1456. public bool Equals(SCGameOver other) {
  1457. if (ReferenceEquals(other, null)) {
  1458. return false;
  1459. }
  1460. if (ReferenceEquals(other, this)) {
  1461. return true;
  1462. }
  1463. if (BossHp != other.BossHp) return false;
  1464. if (CountDown != other.CountDown) return false;
  1465. return Equals(_unknownFields, other._unknownFields);
  1466. }
  1467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1468. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1469. public override int GetHashCode() {
  1470. int hash = 1;
  1471. if (BossHp != 0) hash ^= BossHp.GetHashCode();
  1472. if (CountDown != 0) hash ^= CountDown.GetHashCode();
  1473. if (_unknownFields != null) {
  1474. hash ^= _unknownFields.GetHashCode();
  1475. }
  1476. return hash;
  1477. }
  1478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1479. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1480. public override string ToString() {
  1481. return pb::JsonFormatter.ToDiagnosticString(this);
  1482. }
  1483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1484. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1485. public void WriteTo(pb::CodedOutputStream output) {
  1486. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1487. output.WriteRawMessage(this);
  1488. #else
  1489. if (BossHp != 0) {
  1490. output.WriteRawTag(8);
  1491. output.WriteInt32(BossHp);
  1492. }
  1493. if (CountDown != 0) {
  1494. output.WriteRawTag(16);
  1495. output.WriteInt32(CountDown);
  1496. }
  1497. if (_unknownFields != null) {
  1498. _unknownFields.WriteTo(output);
  1499. }
  1500. #endif
  1501. }
  1502. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1504. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1505. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1506. if (BossHp != 0) {
  1507. output.WriteRawTag(8);
  1508. output.WriteInt32(BossHp);
  1509. }
  1510. if (CountDown != 0) {
  1511. output.WriteRawTag(16);
  1512. output.WriteInt32(CountDown);
  1513. }
  1514. if (_unknownFields != null) {
  1515. _unknownFields.WriteTo(ref output);
  1516. }
  1517. }
  1518. #endif
  1519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1520. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1521. public int CalculateSize() {
  1522. int size = 0;
  1523. if (BossHp != 0) {
  1524. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossHp);
  1525. }
  1526. if (CountDown != 0) {
  1527. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CountDown);
  1528. }
  1529. if (_unknownFields != null) {
  1530. size += _unknownFields.CalculateSize();
  1531. }
  1532. return size;
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1535. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1536. public void MergeFrom(SCGameOver other) {
  1537. if (other == null) {
  1538. return;
  1539. }
  1540. if (other.BossHp != 0) {
  1541. BossHp = other.BossHp;
  1542. }
  1543. if (other.CountDown != 0) {
  1544. CountDown = other.CountDown;
  1545. }
  1546. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1547. }
  1548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1549. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1550. public void MergeFrom(pb::CodedInputStream input) {
  1551. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1552. input.ReadRawMessage(this);
  1553. #else
  1554. uint tag;
  1555. while ((tag = input.ReadTag()) != 0) {
  1556. switch(tag) {
  1557. default:
  1558. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1559. break;
  1560. case 8: {
  1561. BossHp = input.ReadInt32();
  1562. break;
  1563. }
  1564. case 16: {
  1565. CountDown = input.ReadInt32();
  1566. break;
  1567. }
  1568. }
  1569. }
  1570. #endif
  1571. }
  1572. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1574. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1575. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1576. uint tag;
  1577. while ((tag = input.ReadTag()) != 0) {
  1578. switch(tag) {
  1579. default:
  1580. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1581. break;
  1582. case 8: {
  1583. BossHp = input.ReadInt32();
  1584. break;
  1585. }
  1586. case 16: {
  1587. CountDown = input.ReadInt32();
  1588. break;
  1589. }
  1590. }
  1591. }
  1592. }
  1593. #endif
  1594. }
  1595. #endregion
  1596. }
  1597. #endregion Designer generated code