Fight.cs 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159
  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. "c2VySFAYASABKAUiGwoMQ1NMZWF2ZUZpZ2h0EgsKA19ubxgBIAEoBSJJCgxD",
  24. "U0VudGVyRmlnaHQSDgoGWm9uZWlkGAEgASgFEgsKA1VpZBgCIAEoCRIMCgRO",
  25. "YW1lGAMgASgJEg4KBkJvc3NJZBgEIAEoBSJUCgxTQ0VudGVyRmlnaHQSDgoG",
  26. "Qm9zc0hwGAEgASgFEhEKCUJvc3NNYXhIcBgCIAEoBRIOCgZVc2VySFAYAyAB",
  27. "KAUSEQoJQ291bnREb3duGAQgASgFIkoKElNDVXBkYXRlUHJvcGVydGllcxIO",
  28. "CgZCb3NzSHAYASABKAUSEQoJQm9zc01heEhwGAIgASgFEhEKCUNvdW50RG93",
  29. "bhgDIAEoBSIvCgpTQ0dhbWVPdmVyEg4KBkJvc3NIcBgBIAEoBRIRCglDb3Vu",
  30. "dERvd24YAiABKAViBnByb3RvMw=="));
  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", "BossId" }, 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. bossId_ = other.bossId_;
  384. }
  385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  386. public CSEnterFight Clone() {
  387. return new CSEnterFight(this);
  388. }
  389. /// <summary>Field number for the "Zoneid" field.</summary>
  390. public const int ZoneidFieldNumber = 1;
  391. private int zoneid_;
  392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  393. public int Zoneid {
  394. get { return zoneid_; }
  395. set {
  396. zoneid_ = value;
  397. }
  398. }
  399. /// <summary>Field number for the "Uid" field.</summary>
  400. public const int UidFieldNumber = 2;
  401. private string uid_ = "";
  402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  403. public string Uid {
  404. get { return uid_; }
  405. set {
  406. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  407. }
  408. }
  409. /// <summary>Field number for the "Name" field.</summary>
  410. public const int NameFieldNumber = 3;
  411. private string name_ = "";
  412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  413. public string Name {
  414. get { return name_; }
  415. set {
  416. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  417. }
  418. }
  419. /// <summary>Field number for the "BossId" field.</summary>
  420. public const int BossIdFieldNumber = 4;
  421. private int bossId_;
  422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  423. public int BossId {
  424. get { return bossId_; }
  425. set {
  426. bossId_ = value;
  427. }
  428. }
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  430. public override bool Equals(object other) {
  431. return Equals(other as CSEnterFight);
  432. }
  433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  434. public bool Equals(CSEnterFight other) {
  435. if (ReferenceEquals(other, null)) {
  436. return false;
  437. }
  438. if (ReferenceEquals(other, this)) {
  439. return true;
  440. }
  441. if (Zoneid != other.Zoneid) return false;
  442. if (Uid != other.Uid) return false;
  443. if (Name != other.Name) return false;
  444. if (BossId != other.BossId) return false;
  445. return true;
  446. }
  447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  448. public override int GetHashCode() {
  449. int hash = 1;
  450. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  451. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  452. if (Name.Length != 0) hash ^= Name.GetHashCode();
  453. if (BossId != 0) hash ^= BossId.GetHashCode();
  454. return hash;
  455. }
  456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  457. public override string ToString() {
  458. return pb::JsonFormatter.ToDiagnosticString(this);
  459. }
  460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  461. public void WriteTo(pb::CodedOutputStream output) {
  462. if (Zoneid != 0) {
  463. output.WriteRawTag(8);
  464. output.WriteInt32(Zoneid);
  465. }
  466. if (Uid.Length != 0) {
  467. output.WriteRawTag(18);
  468. output.WriteString(Uid);
  469. }
  470. if (Name.Length != 0) {
  471. output.WriteRawTag(26);
  472. output.WriteString(Name);
  473. }
  474. if (BossId != 0) {
  475. output.WriteRawTag(32);
  476. output.WriteInt32(BossId);
  477. }
  478. }
  479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  480. public int CalculateSize() {
  481. int size = 0;
  482. if (Zoneid != 0) {
  483. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  484. }
  485. if (Uid.Length != 0) {
  486. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  487. }
  488. if (Name.Length != 0) {
  489. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  490. }
  491. if (BossId != 0) {
  492. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossId);
  493. }
  494. return size;
  495. }
  496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  497. public void MergeFrom(CSEnterFight other) {
  498. if (other == null) {
  499. return;
  500. }
  501. if (other.Zoneid != 0) {
  502. Zoneid = other.Zoneid;
  503. }
  504. if (other.Uid.Length != 0) {
  505. Uid = other.Uid;
  506. }
  507. if (other.Name.Length != 0) {
  508. Name = other.Name;
  509. }
  510. if (other.BossId != 0) {
  511. BossId = other.BossId;
  512. }
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  515. public void MergeFrom(pb::CodedInputStream input) {
  516. uint tag;
  517. while ((tag = input.ReadTag()) != 0) {
  518. switch(tag) {
  519. default:
  520. input.SkipLastField();
  521. break;
  522. case 8: {
  523. Zoneid = input.ReadInt32();
  524. break;
  525. }
  526. case 18: {
  527. Uid = input.ReadString();
  528. break;
  529. }
  530. case 26: {
  531. Name = input.ReadString();
  532. break;
  533. }
  534. case 32: {
  535. BossId = input.ReadInt32();
  536. break;
  537. }
  538. }
  539. }
  540. }
  541. }
  542. /// <summary>
  543. /// 登陆完成
  544. /// </summary>
  545. public sealed partial class SCEnterFight : pb::IMessage<SCEnterFight> {
  546. private static readonly pb::MessageParser<SCEnterFight> _parser = new pb::MessageParser<SCEnterFight>(() => new SCEnterFight());
  547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  548. public static pb::MessageParser<SCEnterFight> Parser { get { return _parser; } }
  549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  550. public static pbr::MessageDescriptor Descriptor {
  551. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[4]; }
  552. }
  553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  554. pbr::MessageDescriptor pb::IMessage.Descriptor {
  555. get { return Descriptor; }
  556. }
  557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  558. public SCEnterFight() {
  559. OnConstruction();
  560. }
  561. partial void OnConstruction();
  562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  563. public SCEnterFight(SCEnterFight other) : this() {
  564. bossHp_ = other.bossHp_;
  565. bossMaxHp_ = other.bossMaxHp_;
  566. userHP_ = other.userHP_;
  567. countDown_ = other.countDown_;
  568. }
  569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  570. public SCEnterFight Clone() {
  571. return new SCEnterFight(this);
  572. }
  573. /// <summary>Field number for the "BossHp" field.</summary>
  574. public const int BossHpFieldNumber = 1;
  575. private int bossHp_;
  576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  577. public int BossHp {
  578. get { return bossHp_; }
  579. set {
  580. bossHp_ = value;
  581. }
  582. }
  583. /// <summary>Field number for the "BossMaxHp" field.</summary>
  584. public const int BossMaxHpFieldNumber = 2;
  585. private int bossMaxHp_;
  586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  587. public int BossMaxHp {
  588. get { return bossMaxHp_; }
  589. set {
  590. bossMaxHp_ = value;
  591. }
  592. }
  593. /// <summary>Field number for the "UserHP" field.</summary>
  594. public const int UserHPFieldNumber = 3;
  595. private int userHP_;
  596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  597. public int UserHP {
  598. get { return userHP_; }
  599. set {
  600. userHP_ = value;
  601. }
  602. }
  603. /// <summary>Field number for the "CountDown" field.</summary>
  604. public const int CountDownFieldNumber = 4;
  605. private int countDown_;
  606. /// <summary>
  607. /// 倒计时
  608. /// </summary>
  609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  610. public int CountDown {
  611. get { return countDown_; }
  612. set {
  613. countDown_ = value;
  614. }
  615. }
  616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  617. public override bool Equals(object other) {
  618. return Equals(other as SCEnterFight);
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  621. public bool Equals(SCEnterFight other) {
  622. if (ReferenceEquals(other, null)) {
  623. return false;
  624. }
  625. if (ReferenceEquals(other, this)) {
  626. return true;
  627. }
  628. if (BossHp != other.BossHp) return false;
  629. if (BossMaxHp != other.BossMaxHp) return false;
  630. if (UserHP != other.UserHP) return false;
  631. if (CountDown != other.CountDown) return false;
  632. return true;
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  635. public override int GetHashCode() {
  636. int hash = 1;
  637. if (BossHp != 0) hash ^= BossHp.GetHashCode();
  638. if (BossMaxHp != 0) hash ^= BossMaxHp.GetHashCode();
  639. if (UserHP != 0) hash ^= UserHP.GetHashCode();
  640. if (CountDown != 0) hash ^= CountDown.GetHashCode();
  641. return hash;
  642. }
  643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  644. public override string ToString() {
  645. return pb::JsonFormatter.ToDiagnosticString(this);
  646. }
  647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  648. public void WriteTo(pb::CodedOutputStream output) {
  649. if (BossHp != 0) {
  650. output.WriteRawTag(8);
  651. output.WriteInt32(BossHp);
  652. }
  653. if (BossMaxHp != 0) {
  654. output.WriteRawTag(16);
  655. output.WriteInt32(BossMaxHp);
  656. }
  657. if (UserHP != 0) {
  658. output.WriteRawTag(24);
  659. output.WriteInt32(UserHP);
  660. }
  661. if (CountDown != 0) {
  662. output.WriteRawTag(32);
  663. output.WriteInt32(CountDown);
  664. }
  665. }
  666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  667. public int CalculateSize() {
  668. int size = 0;
  669. if (BossHp != 0) {
  670. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossHp);
  671. }
  672. if (BossMaxHp != 0) {
  673. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossMaxHp);
  674. }
  675. if (UserHP != 0) {
  676. size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserHP);
  677. }
  678. if (CountDown != 0) {
  679. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CountDown);
  680. }
  681. return size;
  682. }
  683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  684. public void MergeFrom(SCEnterFight other) {
  685. if (other == null) {
  686. return;
  687. }
  688. if (other.BossHp != 0) {
  689. BossHp = other.BossHp;
  690. }
  691. if (other.BossMaxHp != 0) {
  692. BossMaxHp = other.BossMaxHp;
  693. }
  694. if (other.UserHP != 0) {
  695. UserHP = other.UserHP;
  696. }
  697. if (other.CountDown != 0) {
  698. CountDown = other.CountDown;
  699. }
  700. }
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  702. public void MergeFrom(pb::CodedInputStream input) {
  703. uint tag;
  704. while ((tag = input.ReadTag()) != 0) {
  705. switch(tag) {
  706. default:
  707. input.SkipLastField();
  708. break;
  709. case 8: {
  710. BossHp = input.ReadInt32();
  711. break;
  712. }
  713. case 16: {
  714. BossMaxHp = input.ReadInt32();
  715. break;
  716. }
  717. case 24: {
  718. UserHP = input.ReadInt32();
  719. break;
  720. }
  721. case 32: {
  722. CountDown = input.ReadInt32();
  723. break;
  724. }
  725. }
  726. }
  727. }
  728. }
  729. /// <summary>
  730. /// 更新状态数据
  731. /// </summary>
  732. public sealed partial class SCUpdateProperties : pb::IMessage<SCUpdateProperties> {
  733. private static readonly pb::MessageParser<SCUpdateProperties> _parser = new pb::MessageParser<SCUpdateProperties>(() => new SCUpdateProperties());
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  735. public static pb::MessageParser<SCUpdateProperties> Parser { get { return _parser; } }
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  737. public static pbr::MessageDescriptor Descriptor {
  738. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[5]; }
  739. }
  740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  741. pbr::MessageDescriptor pb::IMessage.Descriptor {
  742. get { return Descriptor; }
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  745. public SCUpdateProperties() {
  746. OnConstruction();
  747. }
  748. partial void OnConstruction();
  749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  750. public SCUpdateProperties(SCUpdateProperties other) : this() {
  751. bossHp_ = other.bossHp_;
  752. bossMaxHp_ = other.bossMaxHp_;
  753. countDown_ = other.countDown_;
  754. }
  755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  756. public SCUpdateProperties Clone() {
  757. return new SCUpdateProperties(this);
  758. }
  759. /// <summary>Field number for the "BossHp" field.</summary>
  760. public const int BossHpFieldNumber = 1;
  761. private int bossHp_;
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  763. public int BossHp {
  764. get { return bossHp_; }
  765. set {
  766. bossHp_ = value;
  767. }
  768. }
  769. /// <summary>Field number for the "BossMaxHp" field.</summary>
  770. public const int BossMaxHpFieldNumber = 2;
  771. private int bossMaxHp_;
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  773. public int BossMaxHp {
  774. get { return bossMaxHp_; }
  775. set {
  776. bossMaxHp_ = value;
  777. }
  778. }
  779. /// <summary>Field number for the "CountDown" field.</summary>
  780. public const int CountDownFieldNumber = 3;
  781. private int countDown_;
  782. /// <summary>
  783. /// 倒计时
  784. /// </summary>
  785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  786. public int CountDown {
  787. get { return countDown_; }
  788. set {
  789. countDown_ = value;
  790. }
  791. }
  792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  793. public override bool Equals(object other) {
  794. return Equals(other as SCUpdateProperties);
  795. }
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  797. public bool Equals(SCUpdateProperties other) {
  798. if (ReferenceEquals(other, null)) {
  799. return false;
  800. }
  801. if (ReferenceEquals(other, this)) {
  802. return true;
  803. }
  804. if (BossHp != other.BossHp) return false;
  805. if (BossMaxHp != other.BossMaxHp) return false;
  806. if (CountDown != other.CountDown) return false;
  807. return true;
  808. }
  809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  810. public override int GetHashCode() {
  811. int hash = 1;
  812. if (BossHp != 0) hash ^= BossHp.GetHashCode();
  813. if (BossMaxHp != 0) hash ^= BossMaxHp.GetHashCode();
  814. if (CountDown != 0) hash ^= CountDown.GetHashCode();
  815. return hash;
  816. }
  817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  818. public override string ToString() {
  819. return pb::JsonFormatter.ToDiagnosticString(this);
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  822. public void WriteTo(pb::CodedOutputStream output) {
  823. if (BossHp != 0) {
  824. output.WriteRawTag(8);
  825. output.WriteInt32(BossHp);
  826. }
  827. if (BossMaxHp != 0) {
  828. output.WriteRawTag(16);
  829. output.WriteInt32(BossMaxHp);
  830. }
  831. if (CountDown != 0) {
  832. output.WriteRawTag(24);
  833. output.WriteInt32(CountDown);
  834. }
  835. }
  836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  837. public int CalculateSize() {
  838. int size = 0;
  839. if (BossHp != 0) {
  840. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossHp);
  841. }
  842. if (BossMaxHp != 0) {
  843. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossMaxHp);
  844. }
  845. if (CountDown != 0) {
  846. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CountDown);
  847. }
  848. return size;
  849. }
  850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  851. public void MergeFrom(SCUpdateProperties other) {
  852. if (other == null) {
  853. return;
  854. }
  855. if (other.BossHp != 0) {
  856. BossHp = other.BossHp;
  857. }
  858. if (other.BossMaxHp != 0) {
  859. BossMaxHp = other.BossMaxHp;
  860. }
  861. if (other.CountDown != 0) {
  862. CountDown = other.CountDown;
  863. }
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  866. public void MergeFrom(pb::CodedInputStream input) {
  867. uint tag;
  868. while ((tag = input.ReadTag()) != 0) {
  869. switch(tag) {
  870. default:
  871. input.SkipLastField();
  872. break;
  873. case 8: {
  874. BossHp = input.ReadInt32();
  875. break;
  876. }
  877. case 16: {
  878. BossMaxHp = input.ReadInt32();
  879. break;
  880. }
  881. case 24: {
  882. CountDown = input.ReadInt32();
  883. break;
  884. }
  885. }
  886. }
  887. }
  888. }
  889. /// <summary>
  890. /// 战斗结束
  891. /// </summary>
  892. public sealed partial class SCGameOver : pb::IMessage<SCGameOver> {
  893. private static readonly pb::MessageParser<SCGameOver> _parser = new pb::MessageParser<SCGameOver>(() => new SCGameOver());
  894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  895. public static pb::MessageParser<SCGameOver> Parser { get { return _parser; } }
  896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  897. public static pbr::MessageDescriptor Descriptor {
  898. get { return global::BossServer.FightReflection.Descriptor.MessageTypes[6]; }
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  901. pbr::MessageDescriptor pb::IMessage.Descriptor {
  902. get { return Descriptor; }
  903. }
  904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  905. public SCGameOver() {
  906. OnConstruction();
  907. }
  908. partial void OnConstruction();
  909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  910. public SCGameOver(SCGameOver other) : this() {
  911. bossHp_ = other.bossHp_;
  912. countDown_ = other.countDown_;
  913. }
  914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  915. public SCGameOver Clone() {
  916. return new SCGameOver(this);
  917. }
  918. /// <summary>Field number for the "BossHp" field.</summary>
  919. public const int BossHpFieldNumber = 1;
  920. private int bossHp_;
  921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  922. public int BossHp {
  923. get { return bossHp_; }
  924. set {
  925. bossHp_ = value;
  926. }
  927. }
  928. /// <summary>Field number for the "CountDown" field.</summary>
  929. public const int CountDownFieldNumber = 2;
  930. private int countDown_;
  931. /// <summary>
  932. /// 倒计时
  933. /// </summary>
  934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  935. public int CountDown {
  936. get { return countDown_; }
  937. set {
  938. countDown_ = value;
  939. }
  940. }
  941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  942. public override bool Equals(object other) {
  943. return Equals(other as SCGameOver);
  944. }
  945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  946. public bool Equals(SCGameOver other) {
  947. if (ReferenceEquals(other, null)) {
  948. return false;
  949. }
  950. if (ReferenceEquals(other, this)) {
  951. return true;
  952. }
  953. if (BossHp != other.BossHp) return false;
  954. if (CountDown != other.CountDown) return false;
  955. return true;
  956. }
  957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  958. public override int GetHashCode() {
  959. int hash = 1;
  960. if (BossHp != 0) hash ^= BossHp.GetHashCode();
  961. if (CountDown != 0) hash ^= CountDown.GetHashCode();
  962. return hash;
  963. }
  964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  965. public override string ToString() {
  966. return pb::JsonFormatter.ToDiagnosticString(this);
  967. }
  968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  969. public void WriteTo(pb::CodedOutputStream output) {
  970. if (BossHp != 0) {
  971. output.WriteRawTag(8);
  972. output.WriteInt32(BossHp);
  973. }
  974. if (CountDown != 0) {
  975. output.WriteRawTag(16);
  976. output.WriteInt32(CountDown);
  977. }
  978. }
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  980. public int CalculateSize() {
  981. int size = 0;
  982. if (BossHp != 0) {
  983. size += 1 + pb::CodedOutputStream.ComputeInt32Size(BossHp);
  984. }
  985. if (CountDown != 0) {
  986. size += 1 + pb::CodedOutputStream.ComputeInt32Size(CountDown);
  987. }
  988. return size;
  989. }
  990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  991. public void MergeFrom(SCGameOver other) {
  992. if (other == null) {
  993. return;
  994. }
  995. if (other.BossHp != 0) {
  996. BossHp = other.BossHp;
  997. }
  998. if (other.CountDown != 0) {
  999. CountDown = other.CountDown;
  1000. }
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1003. public void MergeFrom(pb::CodedInputStream input) {
  1004. uint tag;
  1005. while ((tag = input.ReadTag()) != 0) {
  1006. switch(tag) {
  1007. default:
  1008. input.SkipLastField();
  1009. break;
  1010. case 8: {
  1011. BossHp = input.ReadInt32();
  1012. break;
  1013. }
  1014. case 16: {
  1015. CountDown = input.ReadInt32();
  1016. break;
  1017. }
  1018. }
  1019. }
  1020. }
  1021. }
  1022. #endregion
  1023. }
  1024. #endregion Designer generated code