Fight.cs 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: pb/fight.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbr = global::Google.Protobuf.Reflection;
  8. using scg = global::System.Collections.Generic;
  9. namespace BossServer {
  10. /// <summary>Holder for reflection information generated from pb/fight.proto</summary>
  11. public static partial class FightReflection {
  12. #region Descriptor
  13. /// <summary>File descriptor for pb/fight.proto</summary>
  14. public static pbr::FileDescriptor Descriptor {
  15. get { return descriptor; }
  16. }
  17. private static pbr::FileDescriptor descriptor;
  18. static FightReflection() {
  19. byte[] descriptorData = global::System.Convert.FromBase64String(
  20. string.Concat(
  21. "Cg5wYi9maWdodC5wcm90bxIKQm9zc1NlcnZlciIlChNDU0ZpZ2h0UmVwb3J0",
  22. "RGFtYWdlEg4KBkRhbWFnZRgBIAEoBSIgCg5DU1JlcG9ydFVzZXJIUBIOCgZV",
  23. "c2VySFAYASABKAUiGwoMQ1NMZWF2ZUZpZ2h0EgsKA19ubxgBIAEoBSI5CgxD",
  24. "U0VudGVyRmlnaHQSDgoGWm9uZWlkGAEgASgFEgsKA1VpZBgCIAEoCRIMCgRO",
  25. "YW1lGAMgASgJIlQKDFNDRW50ZXJGaWdodBIOCgZCb3NzSHAYASABKAUSEQoJ",
  26. "Qm9zc01heEhwGAIgASgFEg4KBlVzZXJIUBgDIAEoBRIRCglDb3VudERvd24Y",
  27. "BCABKAUiSgoSU0NVcGRhdGVQcm9wZXJ0aWVzEg4KBkJvc3NIcBgBIAEoBRIR",
  28. "CglCb3NzTWF4SHAYAiABKAUSEQoJQ291bnREb3duGAMgASgFIi8KClNDR2Ft",
  29. "ZU92ZXISDgoGQm9zc0hwGAEgASgFEhEKCUNvdW50RG93bhgCIAEoBWIGcHJv",
  30. "dG8z"));
  31. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  32. new pbr::FileDescriptor[] { },
  33. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  34. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.CSFightReportDamage), global::BossServer.CSFightReportDamage.Parser, new[]{ "Damage" }, null, null, null),
  35. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.CSReportUserHP), global::BossServer.CSReportUserHP.Parser, new[]{ "UserHP" }, null, null, null),
  36. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.CSLeaveFight), global::BossServer.CSLeaveFight.Parser, new[]{ "No" }, null, null, null),
  37. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.CSEnterFight), global::BossServer.CSEnterFight.Parser, new[]{ "Zoneid", "Uid", "Name" }, null, null, null),
  38. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.SCEnterFight), global::BossServer.SCEnterFight.Parser, new[]{ "BossHp", "BossMaxHp", "UserHP", "CountDown" }, null, null, null),
  39. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.SCUpdateProperties), global::BossServer.SCUpdateProperties.Parser, new[]{ "BossHp", "BossMaxHp", "CountDown" }, null, null, null),
  40. new pbr::GeneratedClrTypeInfo(typeof(global::BossServer.SCGameOver), global::BossServer.SCGameOver.Parser, new[]{ "BossHp", "CountDown" }, null, null, null)
  41. }));
  42. }
  43. #endregion
  44. }
  45. #region Messages
  46. /// <summary>
  47. ///上报伤害输出
  48. /// </summary>
  49. public sealed partial class CSFightReportDamage : pb::IMessage<CSFightReportDamage> {
  50. private static readonly pb::MessageParser<CSFightReportDamage> _parser = new pb::MessageParser<CSFightReportDamage>(() => new CSFightReportDamage());
  51. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  52. public static pb::MessageParser<CSFightReportDamage> Parser { get { return _parser; } }
  53. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  54. public static pbr::MessageDescriptor Descriptor {
  55. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[0]; }
  56. }
  57. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  58. pbr::MessageDescriptor pb::IMessage.Descriptor {
  59. get { return Descriptor; }
  60. }
  61. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  62. public CSFightReportDamage() {
  63. OnConstruction();
  64. }
  65. partial void OnConstruction();
  66. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  67. public CSFightReportDamage(CSFightReportDamage other) : this() {
  68. damage_ = other.damage_;
  69. }
  70. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  71. public CSFightReportDamage Clone() {
  72. return new CSFightReportDamage(this);
  73. }
  74. /// <summary>Field number for the "Damage" field.</summary>
  75. public const int DamageFieldNumber = 1;
  76. private int damage_;
  77. /// <summary>
  78. /// 伤害输出
  79. /// </summary>
  80. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  81. public int Damage {
  82. get { return damage_; }
  83. set {
  84. damage_ = value;
  85. }
  86. }
  87. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  88. public override bool Equals(object other) {
  89. return Equals(other as CSFightReportDamage);
  90. }
  91. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  92. public bool Equals(CSFightReportDamage other) {
  93. if (ReferenceEquals(other, null)) {
  94. return false;
  95. }
  96. if (ReferenceEquals(other, this)) {
  97. return true;
  98. }
  99. if (Damage != other.Damage) return false;
  100. return true;
  101. }
  102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  103. public override int GetHashCode() {
  104. int hash = 1;
  105. if (Damage != 0) hash ^= Damage.GetHashCode();
  106. return hash;
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  109. public override string ToString() {
  110. return pb::JsonFormatter.ToDiagnosticString(this);
  111. }
  112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  113. public void WriteTo(pb::CodedOutputStream output) {
  114. if (Damage != 0) {
  115. output.WriteRawTag(8);
  116. output.WriteInt32(Damage);
  117. }
  118. }
  119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  120. public int CalculateSize() {
  121. int size = 0;
  122. if (Damage != 0) {
  123. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Damage);
  124. }
  125. return size;
  126. }
  127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  128. public void MergeFrom(CSFightReportDamage other) {
  129. if (other == null) {
  130. return;
  131. }
  132. if (other.Damage != 0) {
  133. Damage = other.Damage;
  134. }
  135. }
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  137. public void MergeFrom(pb::CodedInputStream input) {
  138. uint tag;
  139. while ((tag = input.ReadTag()) != 0) {
  140. switch(tag) {
  141. default:
  142. input.SkipLastField();
  143. break;
  144. case 8: {
  145. Damage = input.ReadInt32();
  146. break;
  147. }
  148. }
  149. }
  150. }
  151. }
  152. /// <summary>
  153. /// 上报玩家剩余血量
  154. /// </summary>
  155. public sealed partial class CSReportUserHP : pb::IMessage<CSReportUserHP> {
  156. private static readonly pb::MessageParser<CSReportUserHP> _parser = new pb::MessageParser<CSReportUserHP>(() => new CSReportUserHP());
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  158. public static pb::MessageParser<CSReportUserHP> Parser { get { return _parser; } }
  159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  160. public static pbr::MessageDescriptor Descriptor {
  161. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[1]; }
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  164. pbr::MessageDescriptor pb::IMessage.Descriptor {
  165. get { return Descriptor; }
  166. }
  167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  168. public CSReportUserHP() {
  169. OnConstruction();
  170. }
  171. partial void OnConstruction();
  172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  173. public CSReportUserHP(CSReportUserHP other) : this() {
  174. userHP_ = other.userHP_;
  175. }
  176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  177. public CSReportUserHP Clone() {
  178. return new CSReportUserHP(this);
  179. }
  180. /// <summary>Field number for the "UserHP" field.</summary>
  181. public const int UserHPFieldNumber = 1;
  182. private int userHP_;
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  184. public int UserHP {
  185. get { return userHP_; }
  186. set {
  187. userHP_ = value;
  188. }
  189. }
  190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  191. public override bool Equals(object other) {
  192. return Equals(other as CSReportUserHP);
  193. }
  194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  195. public bool Equals(CSReportUserHP other) {
  196. if (ReferenceEquals(other, null)) {
  197. return false;
  198. }
  199. if (ReferenceEquals(other, this)) {
  200. return true;
  201. }
  202. if (UserHP != other.UserHP) return false;
  203. return true;
  204. }
  205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  206. public override int GetHashCode() {
  207. int hash = 1;
  208. if (UserHP != 0) hash ^= UserHP.GetHashCode();
  209. return hash;
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  212. public override string ToString() {
  213. return pb::JsonFormatter.ToDiagnosticString(this);
  214. }
  215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  216. public void WriteTo(pb::CodedOutputStream output) {
  217. if (UserHP != 0) {
  218. output.WriteRawTag(8);
  219. output.WriteInt32(UserHP);
  220. }
  221. }
  222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  223. public int CalculateSize() {
  224. int size = 0;
  225. if (UserHP != 0) {
  226. size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserHP);
  227. }
  228. return size;
  229. }
  230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  231. public void MergeFrom(CSReportUserHP other) {
  232. if (other == null) {
  233. return;
  234. }
  235. if (other.UserHP != 0) {
  236. UserHP = other.UserHP;
  237. }
  238. }
  239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  240. public void MergeFrom(pb::CodedInputStream input) {
  241. uint tag;
  242. while ((tag = input.ReadTag()) != 0) {
  243. switch(tag) {
  244. default:
  245. input.SkipLastField();
  246. break;
  247. case 8: {
  248. UserHP = input.ReadInt32();
  249. break;
  250. }
  251. }
  252. }
  253. }
  254. }
  255. /// <summary>
  256. /// 结束(一般情况下是玩家血量到底主动退出)
  257. /// </summary>
  258. public sealed partial class CSLeaveFight : pb::IMessage<CSLeaveFight> {
  259. private static readonly pb::MessageParser<CSLeaveFight> _parser = new pb::MessageParser<CSLeaveFight>(() => new CSLeaveFight());
  260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  261. public static pb::MessageParser<CSLeaveFight> Parser { get { return _parser; } }
  262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  263. public static pbr::MessageDescriptor Descriptor {
  264. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[2]; }
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  267. pbr::MessageDescriptor pb::IMessage.Descriptor {
  268. get { return Descriptor; }
  269. }
  270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  271. public CSLeaveFight() {
  272. OnConstruction();
  273. }
  274. partial void OnConstruction();
  275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  276. public CSLeaveFight(CSLeaveFight other) : this() {
  277. No_ = other.No_;
  278. }
  279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  280. public CSLeaveFight Clone() {
  281. return new CSLeaveFight(this);
  282. }
  283. /// <summary>Field number for the "_no" field.</summary>
  284. public const int NoFieldNumber = 1;
  285. private int No_;
  286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  287. public int No {
  288. get { return No_; }
  289. set {
  290. No_ = value;
  291. }
  292. }
  293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  294. public override bool Equals(object other) {
  295. return Equals(other as CSLeaveFight);
  296. }
  297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  298. public bool Equals(CSLeaveFight other) {
  299. if (ReferenceEquals(other, null)) {
  300. return false;
  301. }
  302. if (ReferenceEquals(other, this)) {
  303. return true;
  304. }
  305. if (No != other.No) return false;
  306. return true;
  307. }
  308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  309. public override int GetHashCode() {
  310. int hash = 1;
  311. if (No != 0) hash ^= No.GetHashCode();
  312. return hash;
  313. }
  314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  315. public override string ToString() {
  316. return pb::JsonFormatter.ToDiagnosticString(this);
  317. }
  318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  319. public void WriteTo(pb::CodedOutputStream output) {
  320. if (No != 0) {
  321. output.WriteRawTag(8);
  322. output.WriteInt32(No);
  323. }
  324. }
  325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  326. public int CalculateSize() {
  327. int size = 0;
  328. if (No != 0) {
  329. size += 1 + pb::CodedOutputStream.ComputeInt32Size(No);
  330. }
  331. return size;
  332. }
  333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  334. public void MergeFrom(CSLeaveFight other) {
  335. if (other == null) {
  336. return;
  337. }
  338. if (other.No != 0) {
  339. No = other.No;
  340. }
  341. }
  342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  343. public void MergeFrom(pb::CodedInputStream input) {
  344. uint tag;
  345. while ((tag = input.ReadTag()) != 0) {
  346. switch(tag) {
  347. default:
  348. input.SkipLastField();
  349. break;
  350. case 8: {
  351. No = input.ReadInt32();
  352. break;
  353. }
  354. }
  355. }
  356. }
  357. }
  358. /// <summary>
  359. /// 从连接状态转入已经登陆状态(标记自己的uid和zoneid)
  360. /// </summary>
  361. public sealed partial class CSEnterFight : pb::IMessage<CSEnterFight> {
  362. private static readonly pb::MessageParser<CSEnterFight> _parser = new pb::MessageParser<CSEnterFight>(() => new CSEnterFight());
  363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  364. public static pb::MessageParser<CSEnterFight> Parser { get { return _parser; } }
  365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  366. public static pbr::MessageDescriptor Descriptor {
  367. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[3]; }
  368. }
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  370. pbr::MessageDescriptor pb::IMessage.Descriptor {
  371. get { return Descriptor; }
  372. }
  373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  374. public CSEnterFight() {
  375. OnConstruction();
  376. }
  377. partial void OnConstruction();
  378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  379. public CSEnterFight(CSEnterFight other) : this() {
  380. zoneid_ = other.zoneid_;
  381. uid_ = other.uid_;
  382. name_ = other.name_;
  383. }
  384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  385. public CSEnterFight Clone() {
  386. return new CSEnterFight(this);
  387. }
  388. /// <summary>Field number for the "Zoneid" field.</summary>
  389. public const int ZoneidFieldNumber = 1;
  390. private int zoneid_;
  391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  392. public int Zoneid {
  393. get { return zoneid_; }
  394. set {
  395. zoneid_ = value;
  396. }
  397. }
  398. /// <summary>Field number for the "Uid" field.</summary>
  399. public const int UidFieldNumber = 2;
  400. private string uid_ = "";
  401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  402. public string Uid {
  403. get { return uid_; }
  404. set {
  405. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  406. }
  407. }
  408. /// <summary>Field number for the "Name" field.</summary>
  409. public const int NameFieldNumber = 3;
  410. private string name_ = "";
  411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  412. public string Name {
  413. get { return name_; }
  414. set {
  415. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  416. }
  417. }
  418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  419. public override bool Equals(object other) {
  420. return Equals(other as CSEnterFight);
  421. }
  422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  423. public bool Equals(CSEnterFight other) {
  424. if (ReferenceEquals(other, null)) {
  425. return false;
  426. }
  427. if (ReferenceEquals(other, this)) {
  428. return true;
  429. }
  430. if (Zoneid != other.Zoneid) return false;
  431. if (Uid != other.Uid) return false;
  432. if (Name != other.Name) return false;
  433. return true;
  434. }
  435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  436. public override int GetHashCode() {
  437. int hash = 1;
  438. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  439. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  440. if (Name.Length != 0) hash ^= Name.GetHashCode();
  441. return hash;
  442. }
  443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  444. public override string ToString() {
  445. return pb::JsonFormatter.ToDiagnosticString(this);
  446. }
  447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  448. public void WriteTo(pb::CodedOutputStream output) {
  449. if (Zoneid != 0) {
  450. output.WriteRawTag(8);
  451. output.WriteInt32(Zoneid);
  452. }
  453. if (Uid.Length != 0) {
  454. output.WriteRawTag(18);
  455. output.WriteString(Uid);
  456. }
  457. if (Name.Length != 0) {
  458. output.WriteRawTag(26);
  459. output.WriteString(Name);
  460. }
  461. }
  462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  463. public int CalculateSize() {
  464. int size = 0;
  465. if (Zoneid != 0) {
  466. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  467. }
  468. if (Uid.Length != 0) {
  469. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  470. }
  471. if (Name.Length != 0) {
  472. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  473. }
  474. return size;
  475. }
  476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  477. public void MergeFrom(CSEnterFight other) {
  478. if (other == null) {
  479. return;
  480. }
  481. if (other.Zoneid != 0) {
  482. Zoneid = other.Zoneid;
  483. }
  484. if (other.Uid.Length != 0) {
  485. Uid = other.Uid;
  486. }
  487. if (other.Name.Length != 0) {
  488. Name = other.Name;
  489. }
  490. }
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  492. public void MergeFrom(pb::CodedInputStream input) {
  493. uint tag;
  494. while ((tag = input.ReadTag()) != 0) {
  495. switch(tag) {
  496. default:
  497. input.SkipLastField();
  498. break;
  499. case 8: {
  500. Zoneid = input.ReadInt32();
  501. break;
  502. }
  503. case 18: {
  504. Uid = input.ReadString();
  505. break;
  506. }
  507. case 26: {
  508. Name = input.ReadString();
  509. break;
  510. }
  511. }
  512. }
  513. }
  514. }
  515. /// <summary>
  516. /// 登陆完成
  517. /// </summary>
  518. public sealed partial class SCEnterFight : pb::IMessage<SCEnterFight> {
  519. private static readonly pb::MessageParser<SCEnterFight> _parser = new pb::MessageParser<SCEnterFight>(() => new SCEnterFight());
  520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  521. public static pb::MessageParser<SCEnterFight> Parser { get { return _parser; } }
  522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  523. public static pbr::MessageDescriptor Descriptor {
  524. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[4]; }
  525. }
  526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  527. pbr::MessageDescriptor pb::IMessage.Descriptor {
  528. get { return Descriptor; }
  529. }
  530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  531. public SCEnterFight() {
  532. OnConstruction();
  533. }
  534. partial void OnConstruction();
  535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  536. public SCEnterFight(SCEnterFight other) : this() {
  537. bossHp_ = other.bossHp_;
  538. bossMaxHp_ = other.bossMaxHp_;
  539. userHP_ = other.userHP_;
  540. countDown_ = other.countDown_;
  541. }
  542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  543. public SCEnterFight Clone() {
  544. return new SCEnterFight(this);
  545. }
  546. /// <summary>Field number for the "BossHp" field.</summary>
  547. public const int BossHpFieldNumber = 1;
  548. private int bossHp_;
  549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  550. public int BossHp {
  551. get { return bossHp_; }
  552. set {
  553. bossHp_ = value;
  554. }
  555. }
  556. /// <summary>Field number for the "BossMaxHp" field.</summary>
  557. public const int BossMaxHpFieldNumber = 2;
  558. private int bossMaxHp_;
  559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  560. public int BossMaxHp {
  561. get { return bossMaxHp_; }
  562. set {
  563. bossMaxHp_ = value;
  564. }
  565. }
  566. /// <summary>Field number for the "UserHP" field.</summary>
  567. public const int UserHPFieldNumber = 3;
  568. private int userHP_;
  569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  570. public int UserHP {
  571. get { return userHP_; }
  572. set {
  573. userHP_ = value;
  574. }
  575. }
  576. /// <summary>Field number for the "CountDown" field.</summary>
  577. public const int CountDownFieldNumber = 4;
  578. private int countDown_;
  579. /// <summary>
  580. /// 倒计时
  581. /// </summary>
  582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  583. public int CountDown {
  584. get { return countDown_; }
  585. set {
  586. countDown_ = value;
  587. }
  588. }
  589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  590. public override bool Equals(object other) {
  591. return Equals(other as SCEnterFight);
  592. }
  593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  594. public bool Equals(SCEnterFight other) {
  595. if (ReferenceEquals(other, null)) {
  596. return false;
  597. }
  598. if (ReferenceEquals(other, this)) {
  599. return true;
  600. }
  601. if (BossHp != other.BossHp) return false;
  602. if (BossMaxHp != other.BossMaxHp) return false;
  603. if (UserHP != other.UserHP) return false;
  604. if (CountDown != other.CountDown) return false;
  605. return true;
  606. }
  607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  608. public override int GetHashCode() {
  609. int hash = 1;
  610. if (BossHp != 0) hash ^= BossHp.GetHashCode();
  611. if (BossMaxHp != 0) hash ^= BossMaxHp.GetHashCode();
  612. if (UserHP != 0) hash ^= UserHP.GetHashCode();
  613. if (CountDown != 0) hash ^= CountDown.GetHashCode();
  614. return hash;
  615. }
  616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  617. public override string ToString() {
  618. return pb::JsonFormatter.ToDiagnosticString(this);
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  621. public void WriteTo(pb::CodedOutputStream output) {
  622. if (BossHp != 0) {
  623. output.WriteRawTag(8);
  624. output.WriteInt32(BossHp);
  625. }
  626. if (BossMaxHp != 0) {
  627. output.WriteRawTag(16);
  628. output.WriteInt32(BossMaxHp);
  629. }
  630. if (UserHP != 0) {
  631. output.WriteRawTag(24);
  632. output.WriteInt32(UserHP);
  633. }
  634. if (CountDown != 0) {
  635. output.WriteRawTag(32);
  636. output.WriteInt32(CountDown);
  637. }
  638. }
  639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  640. public int CalculateSize() {
  641. int size = 0;
  642. if (BossHp != 0) {
  643. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossHp);
  644. }
  645. if (BossMaxHp != 0) {
  646. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossMaxHp);
  647. }
  648. if (UserHP != 0) {
  649. size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserHP);
  650. }
  651. if (CountDown != 0) {
  652. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CountDown);
  653. }
  654. return size;
  655. }
  656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  657. public void MergeFrom(SCEnterFight other) {
  658. if (other == null) {
  659. return;
  660. }
  661. if (other.BossHp != 0) {
  662. BossHp = other.BossHp;
  663. }
  664. if (other.BossMaxHp != 0) {
  665. BossMaxHp = other.BossMaxHp;
  666. }
  667. if (other.UserHP != 0) {
  668. UserHP = other.UserHP;
  669. }
  670. if (other.CountDown != 0) {
  671. CountDown = other.CountDown;
  672. }
  673. }
  674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  675. public void MergeFrom(pb::CodedInputStream input) {
  676. uint tag;
  677. while ((tag = input.ReadTag()) != 0) {
  678. switch(tag) {
  679. default:
  680. input.SkipLastField();
  681. break;
  682. case 8: {
  683. BossHp = input.ReadInt32();
  684. break;
  685. }
  686. case 16: {
  687. BossMaxHp = input.ReadInt32();
  688. break;
  689. }
  690. case 24: {
  691. UserHP = input.ReadInt32();
  692. break;
  693. }
  694. case 32: {
  695. CountDown = input.ReadInt32();
  696. break;
  697. }
  698. }
  699. }
  700. }
  701. }
  702. /// <summary>
  703. /// 更新状态数据
  704. /// </summary>
  705. public sealed partial class SCUpdateProperties : pb::IMessage<SCUpdateProperties> {
  706. private static readonly pb::MessageParser<SCUpdateProperties> _parser = new pb::MessageParser<SCUpdateProperties>(() => new SCUpdateProperties());
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  708. public static pb::MessageParser<SCUpdateProperties> Parser { get { return _parser; } }
  709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  710. public static pbr::MessageDescriptor Descriptor {
  711. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[5]; }
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  714. pbr::MessageDescriptor pb::IMessage.Descriptor {
  715. get { return Descriptor; }
  716. }
  717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  718. public SCUpdateProperties() {
  719. OnConstruction();
  720. }
  721. partial void OnConstruction();
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  723. public SCUpdateProperties(SCUpdateProperties other) : this() {
  724. bossHp_ = other.bossHp_;
  725. bossMaxHp_ = other.bossMaxHp_;
  726. countDown_ = other.countDown_;
  727. }
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  729. public SCUpdateProperties Clone() {
  730. return new SCUpdateProperties(this);
  731. }
  732. /// <summary>Field number for the "BossHp" field.</summary>
  733. public const int BossHpFieldNumber = 1;
  734. private int bossHp_;
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  736. public int BossHp {
  737. get { return bossHp_; }
  738. set {
  739. bossHp_ = value;
  740. }
  741. }
  742. /// <summary>Field number for the "BossMaxHp" field.</summary>
  743. public const int BossMaxHpFieldNumber = 2;
  744. private int bossMaxHp_;
  745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  746. public int BossMaxHp {
  747. get { return bossMaxHp_; }
  748. set {
  749. bossMaxHp_ = value;
  750. }
  751. }
  752. /// <summary>Field number for the "CountDown" field.</summary>
  753. public const int CountDownFieldNumber = 3;
  754. private int countDown_;
  755. /// <summary>
  756. /// 倒计时
  757. /// </summary>
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  759. public int CountDown {
  760. get { return countDown_; }
  761. set {
  762. countDown_ = value;
  763. }
  764. }
  765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  766. public override bool Equals(object other) {
  767. return Equals(other as SCUpdateProperties);
  768. }
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  770. public bool Equals(SCUpdateProperties other) {
  771. if (ReferenceEquals(other, null)) {
  772. return false;
  773. }
  774. if (ReferenceEquals(other, this)) {
  775. return true;
  776. }
  777. if (BossHp != other.BossHp) return false;
  778. if (BossMaxHp != other.BossMaxHp) return false;
  779. if (CountDown != other.CountDown) return false;
  780. return true;
  781. }
  782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  783. public override int GetHashCode() {
  784. int hash = 1;
  785. if (BossHp != 0) hash ^= BossHp.GetHashCode();
  786. if (BossMaxHp != 0) hash ^= BossMaxHp.GetHashCode();
  787. if (CountDown != 0) hash ^= CountDown.GetHashCode();
  788. return hash;
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  791. public override string ToString() {
  792. return pb::JsonFormatter.ToDiagnosticString(this);
  793. }
  794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  795. public void WriteTo(pb::CodedOutputStream output) {
  796. if (BossHp != 0) {
  797. output.WriteRawTag(8);
  798. output.WriteInt32(BossHp);
  799. }
  800. if (BossMaxHp != 0) {
  801. output.WriteRawTag(16);
  802. output.WriteInt32(BossMaxHp);
  803. }
  804. if (CountDown != 0) {
  805. output.WriteRawTag(24);
  806. output.WriteInt32(CountDown);
  807. }
  808. }
  809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  810. public int CalculateSize() {
  811. int size = 0;
  812. if (BossHp != 0) {
  813. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossHp);
  814. }
  815. if (BossMaxHp != 0) {
  816. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossMaxHp);
  817. }
  818. if (CountDown != 0) {
  819. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CountDown);
  820. }
  821. return size;
  822. }
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  824. public void MergeFrom(SCUpdateProperties other) {
  825. if (other == null) {
  826. return;
  827. }
  828. if (other.BossHp != 0) {
  829. BossHp = other.BossHp;
  830. }
  831. if (other.BossMaxHp != 0) {
  832. BossMaxHp = other.BossMaxHp;
  833. }
  834. if (other.CountDown != 0) {
  835. CountDown = other.CountDown;
  836. }
  837. }
  838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  839. public void MergeFrom(pb::CodedInputStream input) {
  840. uint tag;
  841. while ((tag = input.ReadTag()) != 0) {
  842. switch(tag) {
  843. default:
  844. input.SkipLastField();
  845. break;
  846. case 8: {
  847. BossHp = input.ReadInt32();
  848. break;
  849. }
  850. case 16: {
  851. BossMaxHp = input.ReadInt32();
  852. break;
  853. }
  854. case 24: {
  855. CountDown = input.ReadInt32();
  856. break;
  857. }
  858. }
  859. }
  860. }
  861. }
  862. /// <summary>
  863. /// 战斗结束
  864. /// </summary>
  865. public sealed partial class SCGameOver : pb::IMessage<SCGameOver> {
  866. private static readonly pb::MessageParser<SCGameOver> _parser = new pb::MessageParser<SCGameOver>(() => new SCGameOver());
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  868. public static pb::MessageParser<SCGameOver> Parser { get { return _parser; } }
  869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  870. public static pbr::MessageDescriptor Descriptor {
  871. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[6]; }
  872. }
  873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  874. pbr::MessageDescriptor pb::IMessage.Descriptor {
  875. get { return Descriptor; }
  876. }
  877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  878. public SCGameOver() {
  879. OnConstruction();
  880. }
  881. partial void OnConstruction();
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  883. public SCGameOver(SCGameOver other) : this() {
  884. bossHp_ = other.bossHp_;
  885. countDown_ = other.countDown_;
  886. }
  887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  888. public SCGameOver Clone() {
  889. return new SCGameOver(this);
  890. }
  891. /// <summary>Field number for the "BossHp" field.</summary>
  892. public const int BossHpFieldNumber = 1;
  893. private int bossHp_;
  894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  895. public int BossHp {
  896. get { return bossHp_; }
  897. set {
  898. bossHp_ = value;
  899. }
  900. }
  901. /// <summary>Field number for the "CountDown" field.</summary>
  902. public const int CountDownFieldNumber = 2;
  903. private int countDown_;
  904. /// <summary>
  905. /// 倒计时
  906. /// </summary>
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  908. public int CountDown {
  909. get { return countDown_; }
  910. set {
  911. countDown_ = value;
  912. }
  913. }
  914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  915. public override bool Equals(object other) {
  916. return Equals(other as SCGameOver);
  917. }
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  919. public bool Equals(SCGameOver other) {
  920. if (ReferenceEquals(other, null)) {
  921. return false;
  922. }
  923. if (ReferenceEquals(other, this)) {
  924. return true;
  925. }
  926. if (BossHp != other.BossHp) return false;
  927. if (CountDown != other.CountDown) return false;
  928. return true;
  929. }
  930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  931. public override int GetHashCode() {
  932. int hash = 1;
  933. if (BossHp != 0) hash ^= BossHp.GetHashCode();
  934. if (CountDown != 0) hash ^= CountDown.GetHashCode();
  935. return hash;
  936. }
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  938. public override string ToString() {
  939. return pb::JsonFormatter.ToDiagnosticString(this);
  940. }
  941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  942. public void WriteTo(pb::CodedOutputStream output) {
  943. if (BossHp != 0) {
  944. output.WriteRawTag(8);
  945. output.WriteInt32(BossHp);
  946. }
  947. if (CountDown != 0) {
  948. output.WriteRawTag(16);
  949. output.WriteInt32(CountDown);
  950. }
  951. }
  952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  953. public int CalculateSize() {
  954. int size = 0;
  955. if (BossHp != 0) {
  956. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossHp);
  957. }
  958. if (CountDown != 0) {
  959. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CountDown);
  960. }
  961. return size;
  962. }
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  964. public void MergeFrom(SCGameOver other) {
  965. if (other == null) {
  966. return;
  967. }
  968. if (other.BossHp != 0) {
  969. BossHp = other.BossHp;
  970. }
  971. if (other.CountDown != 0) {
  972. CountDown = other.CountDown;
  973. }
  974. }
  975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  976. public void MergeFrom(pb::CodedInputStream input) {
  977. uint tag;
  978. while ((tag = input.ReadTag()) != 0) {
  979. switch(tag) {
  980. default:
  981. input.SkipLastField();
  982. break;
  983. case 8: {
  984. BossHp = input.ReadInt32();
  985. break;
  986. }
  987. case 16: {
  988. CountDown = input.ReadInt32();
  989. break;
  990. }
  991. }
  992. }
  993. }
  994. }
  995. #endregion
  996. }
  997. #endregion Designer generated code