MultiDup.cs 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: pb/MultiDup.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 MultiDup {
  10. /// <summary>Holder for reflection information generated from pb/MultiDup.proto</summary>
  11. public static partial class MultiDupReflection {
  12. #region Descriptor
  13. /// <summary>File descriptor for pb/MultiDup.proto</summary>
  14. public static pbr::FileDescriptor Descriptor {
  15. get { return descriptor; }
  16. }
  17. private static pbr::FileDescriptor descriptor;
  18. static MultiDupReflection() {
  19. byte[] descriptorData = global::System.Convert.FromBase64String(
  20. string.Concat(
  21. "ChFwYi9NdWx0aUR1cC5wcm90bxIITXVsdGlEdXAiLwoQQ1NfTURfRW50ZXJM",
  22. "b2JieRIOCgZab25laWQYASABKAUSCwoDVWlkGAIgASgJIj4KEENTX01EX0Ny",
  23. "ZWF0ZVJvb20SDgoGWm9uZWlkGAEgASgFEgsKA1VpZBgCIAEoCRINCgVNYXBp",
  24. "ZBgDIAEoBSIwChFDU19NRF9HZXRSb29tTGlzdBIOCgZab25laWQYASABKAUS",
  25. "CwoDVWlkGAIgASgJIj4KD0NTX01EX0VudGVyUm9vbRIOCgZab25laWQYASAB",
  26. "KAUSCwoDVWlkGAIgASgJEg4KBlJvb21JZBgDIAEoBSIuCg9DU19NRF9MZWF2",
  27. "ZVJvb20SDgoGWm9uZWlkGAEgASgFEgsKA1VpZBgCIAEoCSItCg5DU19NRF9C",
  28. "ZWdpbkR1cBIOCgZab25laWQYASABKAUSCwoDVWlkGAIgASgJIhIKEFNDX01E",
  29. "X0VudGVyTG9iYnkiTgoQU0NfTURfQ3JlYXRlUm9vbRIOCgZab25laWQYASAB",
  30. "KAUSCwoDVWlkGAIgASgJEg0KBU1hcGlkGAMgASgFEg4KBlJvb21JZBgEIAEo",
  31. "BSKhAQoRU0NfTURfR2V0Um9vbUxpc3QSNwoJUm9vbUluZm9zGAEgAygLMiQu",
  32. "TXVsdGlEdXAuU0NfTURfR2V0Um9vbUxpc3QuUm9vbUluZm8aUwoIUm9vbUlu",
  33. "Zm8SDgoGUm9vbUlkGAEgASgFEg0KBU1hcGlkGAIgASgFEhIKClBsYXllclVp",
  34. "ZHMYAyADKAkSFAoMYmF0dGxlc2VydmVyGAQgASgJImsKD1NDX01EX0VudGVy",
  35. "Um9vbRIOCgZab25laWQYASABKAUSCwoDVWlkGAIgASgJEg0KBU1hcGlkGAMg",
  36. "ASgFEgoKAklwGAQgASgJEgwKBFBvcnQYBSABKAUSEgoKUGxheWVyVWlkcxgG",
  37. "IAMoCSIuCg9TQ19NRF9MZWF2ZVJvb20SDgoGWm9uZWlkGAEgASgFEgsKA1Vp",
  38. "ZBgCIAEoCSIQCg5TQ19NRF9CZWdpbkR1cGIGcHJvdG8z"));
  39. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  40. new pbr::FileDescriptor[] { },
  41. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  42. new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.CS_MD_EnterLobby), global::MultiDup.CS_MD_EnterLobby.Parser, new[]{ "Zoneid", "Uid" }, null, null, null),
  43. new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.CS_MD_CreateRoom), global::MultiDup.CS_MD_CreateRoom.Parser, new[]{ "Zoneid", "Uid", "Mapid" }, null, null, null),
  44. new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.CS_MD_GetRoomList), global::MultiDup.CS_MD_GetRoomList.Parser, new[]{ "Zoneid", "Uid" }, null, null, null),
  45. new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.CS_MD_EnterRoom), global::MultiDup.CS_MD_EnterRoom.Parser, new[]{ "Zoneid", "Uid", "RoomId" }, null, null, null),
  46. new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.CS_MD_LeaveRoom), global::MultiDup.CS_MD_LeaveRoom.Parser, new[]{ "Zoneid", "Uid" }, null, null, null),
  47. new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.CS_MD_BeginDup), global::MultiDup.CS_MD_BeginDup.Parser, new[]{ "Zoneid", "Uid" }, null, null, null),
  48. new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.SC_MD_EnterLobby), global::MultiDup.SC_MD_EnterLobby.Parser, null, null, null, null),
  49. new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.SC_MD_CreateRoom), global::MultiDup.SC_MD_CreateRoom.Parser, new[]{ "Zoneid", "Uid", "Mapid", "RoomId" }, null, null, null),
  50. new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.SC_MD_GetRoomList), global::MultiDup.SC_MD_GetRoomList.Parser, new[]{ "RoomInfos" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.SC_MD_GetRoomList.Types.RoomInfo), global::MultiDup.SC_MD_GetRoomList.Types.RoomInfo.Parser, new[]{ "RoomId", "Mapid", "PlayerUids", "Battleserver" }, null, null, null)}),
  51. new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.SC_MD_EnterRoom), global::MultiDup.SC_MD_EnterRoom.Parser, new[]{ "Zoneid", "Uid", "Mapid", "Ip", "Port", "PlayerUids" }, null, null, null),
  52. new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.SC_MD_LeaveRoom), global::MultiDup.SC_MD_LeaveRoom.Parser, new[]{ "Zoneid", "Uid" }, null, null, null),
  53. new pbr::GeneratedClrTypeInfo(typeof(global::MultiDup.SC_MD_BeginDup), global::MultiDup.SC_MD_BeginDup.Parser, null, null, null, null)
  54. }));
  55. }
  56. #endregion
  57. }
  58. #region Messages
  59. /// <summary>
  60. ///
  61. /// 进入大厅(注册下自己的uid)
  62. /// </summary>
  63. public sealed partial class CS_MD_EnterLobby : pb::IMessage<CS_MD_EnterLobby> {
  64. private static readonly pb::MessageParser<CS_MD_EnterLobby> _parser = new pb::MessageParser<CS_MD_EnterLobby>(() => new CS_MD_EnterLobby());
  65. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  66. public static pb::MessageParser<CS_MD_EnterLobby> Parser { get { return _parser; } }
  67. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  68. public static pbr::MessageDescriptor Descriptor {
  69. get { return global::MultiDup.MultiDupReflection.Descriptor.MessageTypes[0]; }
  70. }
  71. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  72. pbr::MessageDescriptor pb::IMessage.Descriptor {
  73. get { return Descriptor; }
  74. }
  75. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  76. public CS_MD_EnterLobby() {
  77. OnConstruction();
  78. }
  79. partial void OnConstruction();
  80. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  81. public CS_MD_EnterLobby(CS_MD_EnterLobby other) : this() {
  82. zoneid_ = other.zoneid_;
  83. uid_ = other.uid_;
  84. }
  85. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  86. public CS_MD_EnterLobby Clone() {
  87. return new CS_MD_EnterLobby(this);
  88. }
  89. /// <summary>Field number for the "Zoneid" field.</summary>
  90. public const int ZoneidFieldNumber = 1;
  91. private int zoneid_;
  92. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  93. public int Zoneid {
  94. get { return zoneid_; }
  95. set {
  96. zoneid_ = value;
  97. }
  98. }
  99. /// <summary>Field number for the "Uid" field.</summary>
  100. public const int UidFieldNumber = 2;
  101. private string uid_ = "";
  102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  103. public string Uid {
  104. get { return uid_; }
  105. set {
  106. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  107. }
  108. }
  109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  110. public override bool Equals(object other) {
  111. return Equals(other as CS_MD_EnterLobby);
  112. }
  113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  114. public bool Equals(CS_MD_EnterLobby other) {
  115. if (ReferenceEquals(other, null)) {
  116. return false;
  117. }
  118. if (ReferenceEquals(other, this)) {
  119. return true;
  120. }
  121. if (Zoneid != other.Zoneid) return false;
  122. if (Uid != other.Uid) return false;
  123. return true;
  124. }
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  126. public override int GetHashCode() {
  127. int hash = 1;
  128. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  129. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  130. return hash;
  131. }
  132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  133. public override string ToString() {
  134. return pb::JsonFormatter.ToDiagnosticString(this);
  135. }
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  137. public void WriteTo(pb::CodedOutputStream output) {
  138. if (Zoneid != 0) {
  139. output.WriteRawTag(8);
  140. output.WriteInt32(Zoneid);
  141. }
  142. if (Uid.Length != 0) {
  143. output.WriteRawTag(18);
  144. output.WriteString(Uid);
  145. }
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  148. public int CalculateSize() {
  149. int size = 0;
  150. if (Zoneid != 0) {
  151. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  152. }
  153. if (Uid.Length != 0) {
  154. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  155. }
  156. return size;
  157. }
  158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  159. public void MergeFrom(CS_MD_EnterLobby other) {
  160. if (other == null) {
  161. return;
  162. }
  163. if (other.Zoneid != 0) {
  164. Zoneid = other.Zoneid;
  165. }
  166. if (other.Uid.Length != 0) {
  167. Uid = other.Uid;
  168. }
  169. }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  171. public void MergeFrom(pb::CodedInputStream input) {
  172. uint tag;
  173. while ((tag = input.ReadTag()) != 0) {
  174. switch(tag) {
  175. default:
  176. input.SkipLastField();
  177. break;
  178. case 8: {
  179. Zoneid = input.ReadInt32();
  180. break;
  181. }
  182. case 18: {
  183. Uid = input.ReadString();
  184. break;
  185. }
  186. }
  187. }
  188. }
  189. }
  190. /// <summary>
  191. /// 多人副本, 创建房间
  192. /// </summary>
  193. public sealed partial class CS_MD_CreateRoom : pb::IMessage<CS_MD_CreateRoom> {
  194. private static readonly pb::MessageParser<CS_MD_CreateRoom> _parser = new pb::MessageParser<CS_MD_CreateRoom>(() => new CS_MD_CreateRoom());
  195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  196. public static pb::MessageParser<CS_MD_CreateRoom> Parser { get { return _parser; } }
  197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  198. public static pbr::MessageDescriptor Descriptor {
  199. get { return global::MultiDup.MultiDupReflection.Descriptor.MessageTypes[1]; }
  200. }
  201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  202. pbr::MessageDescriptor pb::IMessage.Descriptor {
  203. get { return Descriptor; }
  204. }
  205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  206. public CS_MD_CreateRoom() {
  207. OnConstruction();
  208. }
  209. partial void OnConstruction();
  210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  211. public CS_MD_CreateRoom(CS_MD_CreateRoom other) : this() {
  212. zoneid_ = other.zoneid_;
  213. uid_ = other.uid_;
  214. mapid_ = other.mapid_;
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  217. public CS_MD_CreateRoom Clone() {
  218. return new CS_MD_CreateRoom(this);
  219. }
  220. /// <summary>Field number for the "Zoneid" field.</summary>
  221. public const int ZoneidFieldNumber = 1;
  222. private int zoneid_;
  223. /// <summary>
  224. /// zoneid
  225. /// </summary>
  226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  227. public int Zoneid {
  228. get { return zoneid_; }
  229. set {
  230. zoneid_ = value;
  231. }
  232. }
  233. /// <summary>Field number for the "Uid" field.</summary>
  234. public const int UidFieldNumber = 2;
  235. private string uid_ = "";
  236. /// <summary>
  237. /// 玩家id
  238. /// </summary>
  239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  240. public string Uid {
  241. get { return uid_; }
  242. set {
  243. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  244. }
  245. }
  246. /// <summary>Field number for the "Mapid" field.</summary>
  247. public const int MapidFieldNumber = 3;
  248. private int mapid_;
  249. /// <summary>
  250. /// 地图id
  251. /// </summary>
  252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  253. public int Mapid {
  254. get { return mapid_; }
  255. set {
  256. mapid_ = value;
  257. }
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  260. public override bool Equals(object other) {
  261. return Equals(other as CS_MD_CreateRoom);
  262. }
  263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  264. public bool Equals(CS_MD_CreateRoom other) {
  265. if (ReferenceEquals(other, null)) {
  266. return false;
  267. }
  268. if (ReferenceEquals(other, this)) {
  269. return true;
  270. }
  271. if (Zoneid != other.Zoneid) return false;
  272. if (Uid != other.Uid) return false;
  273. if (Mapid != other.Mapid) return false;
  274. return true;
  275. }
  276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  277. public override int GetHashCode() {
  278. int hash = 1;
  279. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  280. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  281. if (Mapid != 0) hash ^= Mapid.GetHashCode();
  282. return hash;
  283. }
  284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  285. public override string ToString() {
  286. return pb::JsonFormatter.ToDiagnosticString(this);
  287. }
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  289. public void WriteTo(pb::CodedOutputStream output) {
  290. if (Zoneid != 0) {
  291. output.WriteRawTag(8);
  292. output.WriteInt32(Zoneid);
  293. }
  294. if (Uid.Length != 0) {
  295. output.WriteRawTag(18);
  296. output.WriteString(Uid);
  297. }
  298. if (Mapid != 0) {
  299. output.WriteRawTag(24);
  300. output.WriteInt32(Mapid);
  301. }
  302. }
  303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  304. public int CalculateSize() {
  305. int size = 0;
  306. if (Zoneid != 0) {
  307. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  308. }
  309. if (Uid.Length != 0) {
  310. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  311. }
  312. if (Mapid != 0) {
  313. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mapid);
  314. }
  315. return size;
  316. }
  317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  318. public void MergeFrom(CS_MD_CreateRoom other) {
  319. if (other == null) {
  320. return;
  321. }
  322. if (other.Zoneid != 0) {
  323. Zoneid = other.Zoneid;
  324. }
  325. if (other.Uid.Length != 0) {
  326. Uid = other.Uid;
  327. }
  328. if (other.Mapid != 0) {
  329. Mapid = other.Mapid;
  330. }
  331. }
  332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  333. public void MergeFrom(pb::CodedInputStream input) {
  334. uint tag;
  335. while ((tag = input.ReadTag()) != 0) {
  336. switch(tag) {
  337. default:
  338. input.SkipLastField();
  339. break;
  340. case 8: {
  341. Zoneid = input.ReadInt32();
  342. break;
  343. }
  344. case 18: {
  345. Uid = input.ReadString();
  346. break;
  347. }
  348. case 24: {
  349. Mapid = input.ReadInt32();
  350. break;
  351. }
  352. }
  353. }
  354. }
  355. }
  356. /// <summary>
  357. /// 多人副本, 申请房间(列表)
  358. /// </summary>
  359. public sealed partial class CS_MD_GetRoomList : pb::IMessage<CS_MD_GetRoomList> {
  360. private static readonly pb::MessageParser<CS_MD_GetRoomList> _parser = new pb::MessageParser<CS_MD_GetRoomList>(() => new CS_MD_GetRoomList());
  361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  362. public static pb::MessageParser<CS_MD_GetRoomList> Parser { get { return _parser; } }
  363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  364. public static pbr::MessageDescriptor Descriptor {
  365. get { return global::MultiDup.MultiDupReflection.Descriptor.MessageTypes[2]; }
  366. }
  367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  368. pbr::MessageDescriptor pb::IMessage.Descriptor {
  369. get { return Descriptor; }
  370. }
  371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  372. public CS_MD_GetRoomList() {
  373. OnConstruction();
  374. }
  375. partial void OnConstruction();
  376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  377. public CS_MD_GetRoomList(CS_MD_GetRoomList other) : this() {
  378. zoneid_ = other.zoneid_;
  379. uid_ = other.uid_;
  380. }
  381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  382. public CS_MD_GetRoomList Clone() {
  383. return new CS_MD_GetRoomList(this);
  384. }
  385. /// <summary>Field number for the "Zoneid" field.</summary>
  386. public const int ZoneidFieldNumber = 1;
  387. private int zoneid_;
  388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  389. public int Zoneid {
  390. get { return zoneid_; }
  391. set {
  392. zoneid_ = value;
  393. }
  394. }
  395. /// <summary>Field number for the "Uid" field.</summary>
  396. public const int UidFieldNumber = 2;
  397. private string uid_ = "";
  398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  399. public string Uid {
  400. get { return uid_; }
  401. set {
  402. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  403. }
  404. }
  405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  406. public override bool Equals(object other) {
  407. return Equals(other as CS_MD_GetRoomList);
  408. }
  409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  410. public bool Equals(CS_MD_GetRoomList other) {
  411. if (ReferenceEquals(other, null)) {
  412. return false;
  413. }
  414. if (ReferenceEquals(other, this)) {
  415. return true;
  416. }
  417. if (Zoneid != other.Zoneid) return false;
  418. if (Uid != other.Uid) return false;
  419. return true;
  420. }
  421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  422. public override int GetHashCode() {
  423. int hash = 1;
  424. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  425. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  426. return hash;
  427. }
  428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  429. public override string ToString() {
  430. return pb::JsonFormatter.ToDiagnosticString(this);
  431. }
  432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  433. public void WriteTo(pb::CodedOutputStream output) {
  434. if (Zoneid != 0) {
  435. output.WriteRawTag(8);
  436. output.WriteInt32(Zoneid);
  437. }
  438. if (Uid.Length != 0) {
  439. output.WriteRawTag(18);
  440. output.WriteString(Uid);
  441. }
  442. }
  443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  444. public int CalculateSize() {
  445. int size = 0;
  446. if (Zoneid != 0) {
  447. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  448. }
  449. if (Uid.Length != 0) {
  450. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  451. }
  452. return size;
  453. }
  454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  455. public void MergeFrom(CS_MD_GetRoomList other) {
  456. if (other == null) {
  457. return;
  458. }
  459. if (other.Zoneid != 0) {
  460. Zoneid = other.Zoneid;
  461. }
  462. if (other.Uid.Length != 0) {
  463. Uid = other.Uid;
  464. }
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  467. public void MergeFrom(pb::CodedInputStream input) {
  468. uint tag;
  469. while ((tag = input.ReadTag()) != 0) {
  470. switch(tag) {
  471. default:
  472. input.SkipLastField();
  473. break;
  474. case 8: {
  475. Zoneid = input.ReadInt32();
  476. break;
  477. }
  478. case 18: {
  479. Uid = input.ReadString();
  480. break;
  481. }
  482. }
  483. }
  484. }
  485. }
  486. /// <summary>
  487. /// 多人副本, 加入房间
  488. /// </summary>
  489. public sealed partial class CS_MD_EnterRoom : pb::IMessage<CS_MD_EnterRoom> {
  490. private static readonly pb::MessageParser<CS_MD_EnterRoom> _parser = new pb::MessageParser<CS_MD_EnterRoom>(() => new CS_MD_EnterRoom());
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  492. public static pb::MessageParser<CS_MD_EnterRoom> Parser { get { return _parser; } }
  493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  494. public static pbr::MessageDescriptor Descriptor {
  495. get { return global::MultiDup.MultiDupReflection.Descriptor.MessageTypes[3]; }
  496. }
  497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  498. pbr::MessageDescriptor pb::IMessage.Descriptor {
  499. get { return Descriptor; }
  500. }
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  502. public CS_MD_EnterRoom() {
  503. OnConstruction();
  504. }
  505. partial void OnConstruction();
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  507. public CS_MD_EnterRoom(CS_MD_EnterRoom other) : this() {
  508. zoneid_ = other.zoneid_;
  509. uid_ = other.uid_;
  510. roomId_ = other.roomId_;
  511. }
  512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  513. public CS_MD_EnterRoom Clone() {
  514. return new CS_MD_EnterRoom(this);
  515. }
  516. /// <summary>Field number for the "Zoneid" field.</summary>
  517. public const int ZoneidFieldNumber = 1;
  518. private int zoneid_;
  519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  520. public int Zoneid {
  521. get { return zoneid_; }
  522. set {
  523. zoneid_ = value;
  524. }
  525. }
  526. /// <summary>Field number for the "Uid" field.</summary>
  527. public const int UidFieldNumber = 2;
  528. private string uid_ = "";
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  530. public string Uid {
  531. get { return uid_; }
  532. set {
  533. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  534. }
  535. }
  536. /// <summary>Field number for the "RoomId" field.</summary>
  537. public const int RoomIdFieldNumber = 3;
  538. private int roomId_;
  539. /// <summary>
  540. /// 房间id
  541. /// </summary>
  542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  543. public int RoomId {
  544. get { return roomId_; }
  545. set {
  546. roomId_ = value;
  547. }
  548. }
  549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  550. public override bool Equals(object other) {
  551. return Equals(other as CS_MD_EnterRoom);
  552. }
  553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  554. public bool Equals(CS_MD_EnterRoom other) {
  555. if (ReferenceEquals(other, null)) {
  556. return false;
  557. }
  558. if (ReferenceEquals(other, this)) {
  559. return true;
  560. }
  561. if (Zoneid != other.Zoneid) return false;
  562. if (Uid != other.Uid) return false;
  563. if (RoomId != other.RoomId) return false;
  564. return true;
  565. }
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  567. public override int GetHashCode() {
  568. int hash = 1;
  569. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  570. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  571. if (RoomId != 0) hash ^= RoomId.GetHashCode();
  572. return hash;
  573. }
  574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  575. public override string ToString() {
  576. return pb::JsonFormatter.ToDiagnosticString(this);
  577. }
  578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  579. public void WriteTo(pb::CodedOutputStream output) {
  580. if (Zoneid != 0) {
  581. output.WriteRawTag(8);
  582. output.WriteInt32(Zoneid);
  583. }
  584. if (Uid.Length != 0) {
  585. output.WriteRawTag(18);
  586. output.WriteString(Uid);
  587. }
  588. if (RoomId != 0) {
  589. output.WriteRawTag(24);
  590. output.WriteInt32(RoomId);
  591. }
  592. }
  593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  594. public int CalculateSize() {
  595. int size = 0;
  596. if (Zoneid != 0) {
  597. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  598. }
  599. if (Uid.Length != 0) {
  600. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  601. }
  602. if (RoomId != 0) {
  603. size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomId);
  604. }
  605. return size;
  606. }
  607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  608. public void MergeFrom(CS_MD_EnterRoom other) {
  609. if (other == null) {
  610. return;
  611. }
  612. if (other.Zoneid != 0) {
  613. Zoneid = other.Zoneid;
  614. }
  615. if (other.Uid.Length != 0) {
  616. Uid = other.Uid;
  617. }
  618. if (other.RoomId != 0) {
  619. RoomId = other.RoomId;
  620. }
  621. }
  622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  623. public void MergeFrom(pb::CodedInputStream input) {
  624. uint tag;
  625. while ((tag = input.ReadTag()) != 0) {
  626. switch(tag) {
  627. default:
  628. input.SkipLastField();
  629. break;
  630. case 8: {
  631. Zoneid = input.ReadInt32();
  632. break;
  633. }
  634. case 18: {
  635. Uid = input.ReadString();
  636. break;
  637. }
  638. case 24: {
  639. RoomId = input.ReadInt32();
  640. break;
  641. }
  642. }
  643. }
  644. }
  645. }
  646. /// <summary>
  647. /// 多人副本, 离开房间
  648. /// </summary>
  649. public sealed partial class CS_MD_LeaveRoom : pb::IMessage<CS_MD_LeaveRoom> {
  650. private static readonly pb::MessageParser<CS_MD_LeaveRoom> _parser = new pb::MessageParser<CS_MD_LeaveRoom>(() => new CS_MD_LeaveRoom());
  651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  652. public static pb::MessageParser<CS_MD_LeaveRoom> Parser { get { return _parser; } }
  653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  654. public static pbr::MessageDescriptor Descriptor {
  655. get { return global::MultiDup.MultiDupReflection.Descriptor.MessageTypes[4]; }
  656. }
  657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  658. pbr::MessageDescriptor pb::IMessage.Descriptor {
  659. get { return Descriptor; }
  660. }
  661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  662. public CS_MD_LeaveRoom() {
  663. OnConstruction();
  664. }
  665. partial void OnConstruction();
  666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  667. public CS_MD_LeaveRoom(CS_MD_LeaveRoom other) : this() {
  668. zoneid_ = other.zoneid_;
  669. uid_ = other.uid_;
  670. }
  671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  672. public CS_MD_LeaveRoom Clone() {
  673. return new CS_MD_LeaveRoom(this);
  674. }
  675. /// <summary>Field number for the "Zoneid" field.</summary>
  676. public const int ZoneidFieldNumber = 1;
  677. private int zoneid_;
  678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  679. public int Zoneid {
  680. get { return zoneid_; }
  681. set {
  682. zoneid_ = value;
  683. }
  684. }
  685. /// <summary>Field number for the "Uid" field.</summary>
  686. public const int UidFieldNumber = 2;
  687. private string uid_ = "";
  688. /// <summary>
  689. ///int32 RoomId=3; // 房间id (理论上已经处于房间中不需要此字段)
  690. /// </summary>
  691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  692. public string Uid {
  693. get { return uid_; }
  694. set {
  695. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  696. }
  697. }
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  699. public override bool Equals(object other) {
  700. return Equals(other as CS_MD_LeaveRoom);
  701. }
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  703. public bool Equals(CS_MD_LeaveRoom other) {
  704. if (ReferenceEquals(other, null)) {
  705. return false;
  706. }
  707. if (ReferenceEquals(other, this)) {
  708. return true;
  709. }
  710. if (Zoneid != other.Zoneid) return false;
  711. if (Uid != other.Uid) return false;
  712. return true;
  713. }
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  715. public override int GetHashCode() {
  716. int hash = 1;
  717. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  718. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  719. return hash;
  720. }
  721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  722. public override string ToString() {
  723. return pb::JsonFormatter.ToDiagnosticString(this);
  724. }
  725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  726. public void WriteTo(pb::CodedOutputStream output) {
  727. if (Zoneid != 0) {
  728. output.WriteRawTag(8);
  729. output.WriteInt32(Zoneid);
  730. }
  731. if (Uid.Length != 0) {
  732. output.WriteRawTag(18);
  733. output.WriteString(Uid);
  734. }
  735. }
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  737. public int CalculateSize() {
  738. int size = 0;
  739. if (Zoneid != 0) {
  740. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  741. }
  742. if (Uid.Length != 0) {
  743. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  744. }
  745. return size;
  746. }
  747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  748. public void MergeFrom(CS_MD_LeaveRoom other) {
  749. if (other == null) {
  750. return;
  751. }
  752. if (other.Zoneid != 0) {
  753. Zoneid = other.Zoneid;
  754. }
  755. if (other.Uid.Length != 0) {
  756. Uid = other.Uid;
  757. }
  758. }
  759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  760. public void MergeFrom(pb::CodedInputStream input) {
  761. uint tag;
  762. while ((tag = input.ReadTag()) != 0) {
  763. switch(tag) {
  764. default:
  765. input.SkipLastField();
  766. break;
  767. case 8: {
  768. Zoneid = input.ReadInt32();
  769. break;
  770. }
  771. case 18: {
  772. Uid = input.ReadString();
  773. break;
  774. }
  775. }
  776. }
  777. }
  778. }
  779. /// <summary>
  780. /// 多人副本, 开始游戏(创建者)
  781. /// </summary>
  782. public sealed partial class CS_MD_BeginDup : pb::IMessage<CS_MD_BeginDup> {
  783. private static readonly pb::MessageParser<CS_MD_BeginDup> _parser = new pb::MessageParser<CS_MD_BeginDup>(() => new CS_MD_BeginDup());
  784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  785. public static pb::MessageParser<CS_MD_BeginDup> Parser { get { return _parser; } }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  787. public static pbr::MessageDescriptor Descriptor {
  788. get { return global::MultiDup.MultiDupReflection.Descriptor.MessageTypes[5]; }
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  791. pbr::MessageDescriptor pb::IMessage.Descriptor {
  792. get { return Descriptor; }
  793. }
  794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  795. public CS_MD_BeginDup() {
  796. OnConstruction();
  797. }
  798. partial void OnConstruction();
  799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  800. public CS_MD_BeginDup(CS_MD_BeginDup other) : this() {
  801. zoneid_ = other.zoneid_;
  802. uid_ = other.uid_;
  803. }
  804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  805. public CS_MD_BeginDup Clone() {
  806. return new CS_MD_BeginDup(this);
  807. }
  808. /// <summary>Field number for the "Zoneid" field.</summary>
  809. public const int ZoneidFieldNumber = 1;
  810. private int zoneid_;
  811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  812. public int Zoneid {
  813. get { return zoneid_; }
  814. set {
  815. zoneid_ = value;
  816. }
  817. }
  818. /// <summary>Field number for the "Uid" field.</summary>
  819. public const int UidFieldNumber = 2;
  820. private string uid_ = "";
  821. /// <summary>
  822. ///int32 RoomId=3; // 房间id (理论上已经处于房间中不需要此字段)
  823. /// </summary>
  824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  825. public string Uid {
  826. get { return uid_; }
  827. set {
  828. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  829. }
  830. }
  831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  832. public override bool Equals(object other) {
  833. return Equals(other as CS_MD_BeginDup);
  834. }
  835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  836. public bool Equals(CS_MD_BeginDup other) {
  837. if (ReferenceEquals(other, null)) {
  838. return false;
  839. }
  840. if (ReferenceEquals(other, this)) {
  841. return true;
  842. }
  843. if (Zoneid != other.Zoneid) return false;
  844. if (Uid != other.Uid) return false;
  845. return true;
  846. }
  847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  848. public override int GetHashCode() {
  849. int hash = 1;
  850. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  851. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  852. return hash;
  853. }
  854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  855. public override string ToString() {
  856. return pb::JsonFormatter.ToDiagnosticString(this);
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  859. public void WriteTo(pb::CodedOutputStream output) {
  860. if (Zoneid != 0) {
  861. output.WriteRawTag(8);
  862. output.WriteInt32(Zoneid);
  863. }
  864. if (Uid.Length != 0) {
  865. output.WriteRawTag(18);
  866. output.WriteString(Uid);
  867. }
  868. }
  869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  870. public int CalculateSize() {
  871. int size = 0;
  872. if (Zoneid != 0) {
  873. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  874. }
  875. if (Uid.Length != 0) {
  876. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  877. }
  878. return size;
  879. }
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  881. public void MergeFrom(CS_MD_BeginDup other) {
  882. if (other == null) {
  883. return;
  884. }
  885. if (other.Zoneid != 0) {
  886. Zoneid = other.Zoneid;
  887. }
  888. if (other.Uid.Length != 0) {
  889. Uid = other.Uid;
  890. }
  891. }
  892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  893. public void MergeFrom(pb::CodedInputStream input) {
  894. uint tag;
  895. while ((tag = input.ReadTag()) != 0) {
  896. switch(tag) {
  897. default:
  898. input.SkipLastField();
  899. break;
  900. case 8: {
  901. Zoneid = input.ReadInt32();
  902. break;
  903. }
  904. case 18: {
  905. Uid = input.ReadString();
  906. break;
  907. }
  908. }
  909. }
  910. }
  911. }
  912. /// <summary>
  913. ///
  914. /// 加入房间成功
  915. /// </summary>
  916. public sealed partial class SC_MD_EnterLobby : pb::IMessage<SC_MD_EnterLobby> {
  917. private static readonly pb::MessageParser<SC_MD_EnterLobby> _parser = new pb::MessageParser<SC_MD_EnterLobby>(() => new SC_MD_EnterLobby());
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  919. public static pb::MessageParser<SC_MD_EnterLobby> Parser { get { return _parser; } }
  920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  921. public static pbr::MessageDescriptor Descriptor {
  922. get { return global::MultiDup.MultiDupReflection.Descriptor.MessageTypes[6]; }
  923. }
  924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  925. pbr::MessageDescriptor pb::IMessage.Descriptor {
  926. get { return Descriptor; }
  927. }
  928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  929. public SC_MD_EnterLobby() {
  930. OnConstruction();
  931. }
  932. partial void OnConstruction();
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  934. public SC_MD_EnterLobby(SC_MD_EnterLobby other) : this() {
  935. }
  936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  937. public SC_MD_EnterLobby Clone() {
  938. return new SC_MD_EnterLobby(this);
  939. }
  940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  941. public override bool Equals(object other) {
  942. return Equals(other as SC_MD_EnterLobby);
  943. }
  944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  945. public bool Equals(SC_MD_EnterLobby other) {
  946. if (ReferenceEquals(other, null)) {
  947. return false;
  948. }
  949. if (ReferenceEquals(other, this)) {
  950. return true;
  951. }
  952. return true;
  953. }
  954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  955. public override int GetHashCode() {
  956. int hash = 1;
  957. return hash;
  958. }
  959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  960. public override string ToString() {
  961. return pb::JsonFormatter.ToDiagnosticString(this);
  962. }
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  964. public void WriteTo(pb::CodedOutputStream output) {
  965. }
  966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  967. public int CalculateSize() {
  968. int size = 0;
  969. return size;
  970. }
  971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  972. public void MergeFrom(SC_MD_EnterLobby other) {
  973. if (other == null) {
  974. return;
  975. }
  976. }
  977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  978. public void MergeFrom(pb::CodedInputStream input) {
  979. uint tag;
  980. while ((tag = input.ReadTag()) != 0) {
  981. switch(tag) {
  982. default:
  983. input.SkipLastField();
  984. break;
  985. }
  986. }
  987. }
  988. }
  989. /// <summary>
  990. /// 多人副本, 创建房间
  991. /// </summary>
  992. public sealed partial class SC_MD_CreateRoom : pb::IMessage<SC_MD_CreateRoom> {
  993. private static readonly pb::MessageParser<SC_MD_CreateRoom> _parser = new pb::MessageParser<SC_MD_CreateRoom>(() => new SC_MD_CreateRoom());
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  995. public static pb::MessageParser<SC_MD_CreateRoom> Parser { get { return _parser; } }
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  997. public static pbr::MessageDescriptor Descriptor {
  998. get { return global::MultiDup.MultiDupReflection.Descriptor.MessageTypes[7]; }
  999. }
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1001. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1002. get { return Descriptor; }
  1003. }
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1005. public SC_MD_CreateRoom() {
  1006. OnConstruction();
  1007. }
  1008. partial void OnConstruction();
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1010. public SC_MD_CreateRoom(SC_MD_CreateRoom other) : this() {
  1011. zoneid_ = other.zoneid_;
  1012. uid_ = other.uid_;
  1013. mapid_ = other.mapid_;
  1014. roomId_ = other.roomId_;
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1017. public SC_MD_CreateRoom Clone() {
  1018. return new SC_MD_CreateRoom(this);
  1019. }
  1020. /// <summary>Field number for the "Zoneid" field.</summary>
  1021. public const int ZoneidFieldNumber = 1;
  1022. private int zoneid_;
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1024. public int Zoneid {
  1025. get { return zoneid_; }
  1026. set {
  1027. zoneid_ = value;
  1028. }
  1029. }
  1030. /// <summary>Field number for the "Uid" field.</summary>
  1031. public const int UidFieldNumber = 2;
  1032. private string uid_ = "";
  1033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1034. public string Uid {
  1035. get { return uid_; }
  1036. set {
  1037. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1038. }
  1039. }
  1040. /// <summary>Field number for the "Mapid" field.</summary>
  1041. public const int MapidFieldNumber = 3;
  1042. private int mapid_;
  1043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1044. public int Mapid {
  1045. get { return mapid_; }
  1046. set {
  1047. mapid_ = value;
  1048. }
  1049. }
  1050. /// <summary>Field number for the "RoomId" field.</summary>
  1051. public const int RoomIdFieldNumber = 4;
  1052. private int roomId_;
  1053. /// <summary>
  1054. /// 房间id (服务端分配)
  1055. /// </summary>
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1057. public int RoomId {
  1058. get { return roomId_; }
  1059. set {
  1060. roomId_ = value;
  1061. }
  1062. }
  1063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1064. public override bool Equals(object other) {
  1065. return Equals(other as SC_MD_CreateRoom);
  1066. }
  1067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1068. public bool Equals(SC_MD_CreateRoom other) {
  1069. if (ReferenceEquals(other, null)) {
  1070. return false;
  1071. }
  1072. if (ReferenceEquals(other, this)) {
  1073. return true;
  1074. }
  1075. if (Zoneid != other.Zoneid) return false;
  1076. if (Uid != other.Uid) return false;
  1077. if (Mapid != other.Mapid) return false;
  1078. if (RoomId != other.RoomId) return false;
  1079. return true;
  1080. }
  1081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1082. public override int GetHashCode() {
  1083. int hash = 1;
  1084. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  1085. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  1086. if (Mapid != 0) hash ^= Mapid.GetHashCode();
  1087. if (RoomId != 0) hash ^= RoomId.GetHashCode();
  1088. return hash;
  1089. }
  1090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1091. public override string ToString() {
  1092. return pb::JsonFormatter.ToDiagnosticString(this);
  1093. }
  1094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1095. public void WriteTo(pb::CodedOutputStream output) {
  1096. if (Zoneid != 0) {
  1097. output.WriteRawTag(8);
  1098. output.WriteInt32(Zoneid);
  1099. }
  1100. if (Uid.Length != 0) {
  1101. output.WriteRawTag(18);
  1102. output.WriteString(Uid);
  1103. }
  1104. if (Mapid != 0) {
  1105. output.WriteRawTag(24);
  1106. output.WriteInt32(Mapid);
  1107. }
  1108. if (RoomId != 0) {
  1109. output.WriteRawTag(32);
  1110. output.WriteInt32(RoomId);
  1111. }
  1112. }
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1114. public int CalculateSize() {
  1115. int size = 0;
  1116. if (Zoneid != 0) {
  1117. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  1118. }
  1119. if (Uid.Length != 0) {
  1120. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  1121. }
  1122. if (Mapid != 0) {
  1123. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mapid);
  1124. }
  1125. if (RoomId != 0) {
  1126. size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomId);
  1127. }
  1128. return size;
  1129. }
  1130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1131. public void MergeFrom(SC_MD_CreateRoom other) {
  1132. if (other == null) {
  1133. return;
  1134. }
  1135. if (other.Zoneid != 0) {
  1136. Zoneid = other.Zoneid;
  1137. }
  1138. if (other.Uid.Length != 0) {
  1139. Uid = other.Uid;
  1140. }
  1141. if (other.Mapid != 0) {
  1142. Mapid = other.Mapid;
  1143. }
  1144. if (other.RoomId != 0) {
  1145. RoomId = other.RoomId;
  1146. }
  1147. }
  1148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1149. public void MergeFrom(pb::CodedInputStream input) {
  1150. uint tag;
  1151. while ((tag = input.ReadTag()) != 0) {
  1152. switch(tag) {
  1153. default:
  1154. input.SkipLastField();
  1155. break;
  1156. case 8: {
  1157. Zoneid = input.ReadInt32();
  1158. break;
  1159. }
  1160. case 18: {
  1161. Uid = input.ReadString();
  1162. break;
  1163. }
  1164. case 24: {
  1165. Mapid = input.ReadInt32();
  1166. break;
  1167. }
  1168. case 32: {
  1169. RoomId = input.ReadInt32();
  1170. break;
  1171. }
  1172. }
  1173. }
  1174. }
  1175. }
  1176. /// <summary>
  1177. /// 多人副本, 申请房间(列表)
  1178. /// </summary>
  1179. public sealed partial class SC_MD_GetRoomList : pb::IMessage<SC_MD_GetRoomList> {
  1180. private static readonly pb::MessageParser<SC_MD_GetRoomList> _parser = new pb::MessageParser<SC_MD_GetRoomList>(() => new SC_MD_GetRoomList());
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1182. public static pb::MessageParser<SC_MD_GetRoomList> Parser { get { return _parser; } }
  1183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1184. public static pbr::MessageDescriptor Descriptor {
  1185. get { return global::MultiDup.MultiDupReflection.Descriptor.MessageTypes[8]; }
  1186. }
  1187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1188. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1189. get { return Descriptor; }
  1190. }
  1191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1192. public SC_MD_GetRoomList() {
  1193. OnConstruction();
  1194. }
  1195. partial void OnConstruction();
  1196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1197. public SC_MD_GetRoomList(SC_MD_GetRoomList other) : this() {
  1198. roomInfos_ = other.roomInfos_.Clone();
  1199. }
  1200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1201. public SC_MD_GetRoomList Clone() {
  1202. return new SC_MD_GetRoomList(this);
  1203. }
  1204. /// <summary>Field number for the "RoomInfos" field.</summary>
  1205. public const int RoomInfosFieldNumber = 1;
  1206. private static readonly pb::FieldCodec<global::MultiDup.SC_MD_GetRoomList.Types.RoomInfo> _repeated_roomInfos_codec
  1207. = pb::FieldCodec.ForMessage(10, global::MultiDup.SC_MD_GetRoomList.Types.RoomInfo.Parser);
  1208. private readonly pbc::RepeatedField<global::MultiDup.SC_MD_GetRoomList.Types.RoomInfo> roomInfos_ = new pbc::RepeatedField<global::MultiDup.SC_MD_GetRoomList.Types.RoomInfo>();
  1209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1210. public pbc::RepeatedField<global::MultiDup.SC_MD_GetRoomList.Types.RoomInfo> RoomInfos {
  1211. get { return roomInfos_; }
  1212. }
  1213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1214. public override bool Equals(object other) {
  1215. return Equals(other as SC_MD_GetRoomList);
  1216. }
  1217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1218. public bool Equals(SC_MD_GetRoomList other) {
  1219. if (ReferenceEquals(other, null)) {
  1220. return false;
  1221. }
  1222. if (ReferenceEquals(other, this)) {
  1223. return true;
  1224. }
  1225. if(!roomInfos_.Equals(other.roomInfos_)) return false;
  1226. return true;
  1227. }
  1228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1229. public override int GetHashCode() {
  1230. int hash = 1;
  1231. hash ^= roomInfos_.GetHashCode();
  1232. return hash;
  1233. }
  1234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1235. public override string ToString() {
  1236. return pb::JsonFormatter.ToDiagnosticString(this);
  1237. }
  1238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1239. public void WriteTo(pb::CodedOutputStream output) {
  1240. roomInfos_.WriteTo(output, _repeated_roomInfos_codec);
  1241. }
  1242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1243. public int CalculateSize() {
  1244. int size = 0;
  1245. size += roomInfos_.CalculateSize(_repeated_roomInfos_codec);
  1246. return size;
  1247. }
  1248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1249. public void MergeFrom(SC_MD_GetRoomList other) {
  1250. if (other == null) {
  1251. return;
  1252. }
  1253. roomInfos_.Add(other.roomInfos_);
  1254. }
  1255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1256. public void MergeFrom(pb::CodedInputStream input) {
  1257. uint tag;
  1258. while ((tag = input.ReadTag()) != 0) {
  1259. switch(tag) {
  1260. default:
  1261. input.SkipLastField();
  1262. break;
  1263. case 10: {
  1264. roomInfos_.AddEntriesFrom(input, _repeated_roomInfos_codec);
  1265. break;
  1266. }
  1267. }
  1268. }
  1269. }
  1270. #region Nested types
  1271. /// <summary>Container for nested types declared in the SC_MD_GetRoomList message type.</summary>
  1272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1273. public static partial class Types {
  1274. public sealed partial class RoomInfo : pb::IMessage<RoomInfo> {
  1275. private static readonly pb::MessageParser<RoomInfo> _parser = new pb::MessageParser<RoomInfo>(() => new RoomInfo());
  1276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1277. public static pb::MessageParser<RoomInfo> Parser { get { return _parser; } }
  1278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1279. public static pbr::MessageDescriptor Descriptor {
  1280. get { return global::MultiDup.SC_MD_GetRoomList.Descriptor.NestedTypes[0]; }
  1281. }
  1282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1283. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1284. get { return Descriptor; }
  1285. }
  1286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1287. public RoomInfo() {
  1288. OnConstruction();
  1289. }
  1290. partial void OnConstruction();
  1291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1292. public RoomInfo(RoomInfo other) : this() {
  1293. roomId_ = other.roomId_;
  1294. mapid_ = other.mapid_;
  1295. playerUids_ = other.playerUids_.Clone();
  1296. battleserver_ = other.battleserver_;
  1297. }
  1298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1299. public RoomInfo Clone() {
  1300. return new RoomInfo(this);
  1301. }
  1302. /// <summary>Field number for the "RoomId" field.</summary>
  1303. public const int RoomIdFieldNumber = 1;
  1304. private int roomId_;
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1306. public int RoomId {
  1307. get { return roomId_; }
  1308. set {
  1309. roomId_ = value;
  1310. }
  1311. }
  1312. /// <summary>Field number for the "Mapid" field.</summary>
  1313. public const int MapidFieldNumber = 2;
  1314. private int mapid_;
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1316. public int Mapid {
  1317. get { return mapid_; }
  1318. set {
  1319. mapid_ = value;
  1320. }
  1321. }
  1322. /// <summary>Field number for the "PlayerUids" field.</summary>
  1323. public const int PlayerUidsFieldNumber = 3;
  1324. private static readonly pb::FieldCodec<string> _repeated_playerUids_codec
  1325. = pb::FieldCodec.ForString(26);
  1326. private readonly pbc::RepeatedField<string> playerUids_ = new pbc::RepeatedField<string>();
  1327. /// <summary>
  1328. ///??
  1329. /// </summary>
  1330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1331. public pbc::RepeatedField<string> PlayerUids {
  1332. get { return playerUids_; }
  1333. }
  1334. /// <summary>Field number for the "battleserver" field.</summary>
  1335. public const int BattleserverFieldNumber = 4;
  1336. private string battleserver_ = "";
  1337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1338. public string Battleserver {
  1339. get { return battleserver_; }
  1340. set {
  1341. battleserver_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1342. }
  1343. }
  1344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1345. public override bool Equals(object other) {
  1346. return Equals(other as RoomInfo);
  1347. }
  1348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1349. public bool Equals(RoomInfo other) {
  1350. if (ReferenceEquals(other, null)) {
  1351. return false;
  1352. }
  1353. if (ReferenceEquals(other, this)) {
  1354. return true;
  1355. }
  1356. if (RoomId != other.RoomId) return false;
  1357. if (Mapid != other.Mapid) return false;
  1358. if(!playerUids_.Equals(other.playerUids_)) return false;
  1359. if (Battleserver != other.Battleserver) return false;
  1360. return true;
  1361. }
  1362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1363. public override int GetHashCode() {
  1364. int hash = 1;
  1365. if (RoomId != 0) hash ^= RoomId.GetHashCode();
  1366. if (Mapid != 0) hash ^= Mapid.GetHashCode();
  1367. hash ^= playerUids_.GetHashCode();
  1368. if (Battleserver.Length != 0) hash ^= Battleserver.GetHashCode();
  1369. return hash;
  1370. }
  1371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1372. public override string ToString() {
  1373. return pb::JsonFormatter.ToDiagnosticString(this);
  1374. }
  1375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1376. public void WriteTo(pb::CodedOutputStream output) {
  1377. if (RoomId != 0) {
  1378. output.WriteRawTag(8);
  1379. output.WriteInt32(RoomId);
  1380. }
  1381. if (Mapid != 0) {
  1382. output.WriteRawTag(16);
  1383. output.WriteInt32(Mapid);
  1384. }
  1385. playerUids_.WriteTo(output, _repeated_playerUids_codec);
  1386. if (Battleserver.Length != 0) {
  1387. output.WriteRawTag(34);
  1388. output.WriteString(Battleserver);
  1389. }
  1390. }
  1391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1392. public int CalculateSize() {
  1393. int size = 0;
  1394. if (RoomId != 0) {
  1395. size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomId);
  1396. }
  1397. if (Mapid != 0) {
  1398. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mapid);
  1399. }
  1400. size += playerUids_.CalculateSize(_repeated_playerUids_codec);
  1401. if (Battleserver.Length != 0) {
  1402. size += 1 + pb::CodedOutputStream.ComputeStringSize(Battleserver);
  1403. }
  1404. return size;
  1405. }
  1406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1407. public void MergeFrom(RoomInfo other) {
  1408. if (other == null) {
  1409. return;
  1410. }
  1411. if (other.RoomId != 0) {
  1412. RoomId = other.RoomId;
  1413. }
  1414. if (other.Mapid != 0) {
  1415. Mapid = other.Mapid;
  1416. }
  1417. playerUids_.Add(other.playerUids_);
  1418. if (other.Battleserver.Length != 0) {
  1419. Battleserver = other.Battleserver;
  1420. }
  1421. }
  1422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1423. public void MergeFrom(pb::CodedInputStream input) {
  1424. uint tag;
  1425. while ((tag = input.ReadTag()) != 0) {
  1426. switch(tag) {
  1427. default:
  1428. input.SkipLastField();
  1429. break;
  1430. case 8: {
  1431. RoomId = input.ReadInt32();
  1432. break;
  1433. }
  1434. case 16: {
  1435. Mapid = input.ReadInt32();
  1436. break;
  1437. }
  1438. case 26: {
  1439. playerUids_.AddEntriesFrom(input, _repeated_playerUids_codec);
  1440. break;
  1441. }
  1442. case 34: {
  1443. Battleserver = input.ReadString();
  1444. break;
  1445. }
  1446. }
  1447. }
  1448. }
  1449. }
  1450. }
  1451. #endregion
  1452. }
  1453. /// <summary>
  1454. /// 多人副本, 加入房间
  1455. /// </summary>
  1456. public sealed partial class SC_MD_EnterRoom : pb::IMessage<SC_MD_EnterRoom> {
  1457. private static readonly pb::MessageParser<SC_MD_EnterRoom> _parser = new pb::MessageParser<SC_MD_EnterRoom>(() => new SC_MD_EnterRoom());
  1458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1459. public static pb::MessageParser<SC_MD_EnterRoom> Parser { get { return _parser; } }
  1460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1461. public static pbr::MessageDescriptor Descriptor {
  1462. get { return global::MultiDup.MultiDupReflection.Descriptor.MessageTypes[9]; }
  1463. }
  1464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1465. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1466. get { return Descriptor; }
  1467. }
  1468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1469. public SC_MD_EnterRoom() {
  1470. OnConstruction();
  1471. }
  1472. partial void OnConstruction();
  1473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1474. public SC_MD_EnterRoom(SC_MD_EnterRoom other) : this() {
  1475. zoneid_ = other.zoneid_;
  1476. uid_ = other.uid_;
  1477. mapid_ = other.mapid_;
  1478. ip_ = other.ip_;
  1479. port_ = other.port_;
  1480. playerUids_ = other.playerUids_.Clone();
  1481. }
  1482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1483. public SC_MD_EnterRoom Clone() {
  1484. return new SC_MD_EnterRoom(this);
  1485. }
  1486. /// <summary>Field number for the "Zoneid" field.</summary>
  1487. public const int ZoneidFieldNumber = 1;
  1488. private int zoneid_;
  1489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1490. public int Zoneid {
  1491. get { return zoneid_; }
  1492. set {
  1493. zoneid_ = value;
  1494. }
  1495. }
  1496. /// <summary>Field number for the "Uid" field.</summary>
  1497. public const int UidFieldNumber = 2;
  1498. private string uid_ = "";
  1499. /// <summary>
  1500. /// (新进id)
  1501. /// </summary>
  1502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1503. public string Uid {
  1504. get { return uid_; }
  1505. set {
  1506. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1507. }
  1508. }
  1509. /// <summary>Field number for the "Mapid" field.</summary>
  1510. public const int MapidFieldNumber = 3;
  1511. private int mapid_;
  1512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1513. public int Mapid {
  1514. get { return mapid_; }
  1515. set {
  1516. mapid_ = value;
  1517. }
  1518. }
  1519. /// <summary>Field number for the "Ip" field.</summary>
  1520. public const int IpFieldNumber = 4;
  1521. private string ip_ = "";
  1522. /// <summary>
  1523. /// 战斗服务器ip
  1524. /// </summary>
  1525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1526. public string Ip {
  1527. get { return ip_; }
  1528. set {
  1529. ip_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1530. }
  1531. }
  1532. /// <summary>Field number for the "Port" field.</summary>
  1533. public const int PortFieldNumber = 5;
  1534. private int port_;
  1535. /// <summary>
  1536. /// 战斗服务器端口
  1537. /// </summary>
  1538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1539. public int Port {
  1540. get { return port_; }
  1541. set {
  1542. port_ = value;
  1543. }
  1544. }
  1545. /// <summary>Field number for the "PlayerUids" field.</summary>
  1546. public const int PlayerUidsFieldNumber = 6;
  1547. private static readonly pb::FieldCodec<string> _repeated_playerUids_codec
  1548. = pb::FieldCodec.ForString(50);
  1549. private readonly pbc::RepeatedField<string> playerUids_ = new pbc::RepeatedField<string>();
  1550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1551. public pbc::RepeatedField<string> PlayerUids {
  1552. get { return playerUids_; }
  1553. }
  1554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1555. public override bool Equals(object other) {
  1556. return Equals(other as SC_MD_EnterRoom);
  1557. }
  1558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1559. public bool Equals(SC_MD_EnterRoom other) {
  1560. if (ReferenceEquals(other, null)) {
  1561. return false;
  1562. }
  1563. if (ReferenceEquals(other, this)) {
  1564. return true;
  1565. }
  1566. if (Zoneid != other.Zoneid) return false;
  1567. if (Uid != other.Uid) return false;
  1568. if (Mapid != other.Mapid) return false;
  1569. if (Ip != other.Ip) return false;
  1570. if (Port != other.Port) return false;
  1571. if(!playerUids_.Equals(other.playerUids_)) return false;
  1572. return true;
  1573. }
  1574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1575. public override int GetHashCode() {
  1576. int hash = 1;
  1577. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  1578. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  1579. if (Mapid != 0) hash ^= Mapid.GetHashCode();
  1580. if (Ip.Length != 0) hash ^= Ip.GetHashCode();
  1581. if (Port != 0) hash ^= Port.GetHashCode();
  1582. hash ^= playerUids_.GetHashCode();
  1583. return hash;
  1584. }
  1585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1586. public override string ToString() {
  1587. return pb::JsonFormatter.ToDiagnosticString(this);
  1588. }
  1589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1590. public void WriteTo(pb::CodedOutputStream output) {
  1591. if (Zoneid != 0) {
  1592. output.WriteRawTag(8);
  1593. output.WriteInt32(Zoneid);
  1594. }
  1595. if (Uid.Length != 0) {
  1596. output.WriteRawTag(18);
  1597. output.WriteString(Uid);
  1598. }
  1599. if (Mapid != 0) {
  1600. output.WriteRawTag(24);
  1601. output.WriteInt32(Mapid);
  1602. }
  1603. if (Ip.Length != 0) {
  1604. output.WriteRawTag(34);
  1605. output.WriteString(Ip);
  1606. }
  1607. if (Port != 0) {
  1608. output.WriteRawTag(40);
  1609. output.WriteInt32(Port);
  1610. }
  1611. playerUids_.WriteTo(output, _repeated_playerUids_codec);
  1612. }
  1613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1614. public int CalculateSize() {
  1615. int size = 0;
  1616. if (Zoneid != 0) {
  1617. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  1618. }
  1619. if (Uid.Length != 0) {
  1620. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  1621. }
  1622. if (Mapid != 0) {
  1623. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Mapid);
  1624. }
  1625. if (Ip.Length != 0) {
  1626. size += 1 + pb::CodedOutputStream.ComputeStringSize(Ip);
  1627. }
  1628. if (Port != 0) {
  1629. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port);
  1630. }
  1631. size += playerUids_.CalculateSize(_repeated_playerUids_codec);
  1632. return size;
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1635. public void MergeFrom(SC_MD_EnterRoom other) {
  1636. if (other == null) {
  1637. return;
  1638. }
  1639. if (other.Zoneid != 0) {
  1640. Zoneid = other.Zoneid;
  1641. }
  1642. if (other.Uid.Length != 0) {
  1643. Uid = other.Uid;
  1644. }
  1645. if (other.Mapid != 0) {
  1646. Mapid = other.Mapid;
  1647. }
  1648. if (other.Ip.Length != 0) {
  1649. Ip = other.Ip;
  1650. }
  1651. if (other.Port != 0) {
  1652. Port = other.Port;
  1653. }
  1654. playerUids_.Add(other.playerUids_);
  1655. }
  1656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1657. public void MergeFrom(pb::CodedInputStream input) {
  1658. uint tag;
  1659. while ((tag = input.ReadTag()) != 0) {
  1660. switch(tag) {
  1661. default:
  1662. input.SkipLastField();
  1663. break;
  1664. case 8: {
  1665. Zoneid = input.ReadInt32();
  1666. break;
  1667. }
  1668. case 18: {
  1669. Uid = input.ReadString();
  1670. break;
  1671. }
  1672. case 24: {
  1673. Mapid = input.ReadInt32();
  1674. break;
  1675. }
  1676. case 34: {
  1677. Ip = input.ReadString();
  1678. break;
  1679. }
  1680. case 40: {
  1681. Port = input.ReadInt32();
  1682. break;
  1683. }
  1684. case 50: {
  1685. playerUids_.AddEntriesFrom(input, _repeated_playerUids_codec);
  1686. break;
  1687. }
  1688. }
  1689. }
  1690. }
  1691. }
  1692. /// <summary>
  1693. /// 多人副本, 离开房间
  1694. /// </summary>
  1695. public sealed partial class SC_MD_LeaveRoom : pb::IMessage<SC_MD_LeaveRoom> {
  1696. private static readonly pb::MessageParser<SC_MD_LeaveRoom> _parser = new pb::MessageParser<SC_MD_LeaveRoom>(() => new SC_MD_LeaveRoom());
  1697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1698. public static pb::MessageParser<SC_MD_LeaveRoom> Parser { get { return _parser; } }
  1699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1700. public static pbr::MessageDescriptor Descriptor {
  1701. get { return global::MultiDup.MultiDupReflection.Descriptor.MessageTypes[10]; }
  1702. }
  1703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1704. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1705. get { return Descriptor; }
  1706. }
  1707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1708. public SC_MD_LeaveRoom() {
  1709. OnConstruction();
  1710. }
  1711. partial void OnConstruction();
  1712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1713. public SC_MD_LeaveRoom(SC_MD_LeaveRoom other) : this() {
  1714. zoneid_ = other.zoneid_;
  1715. uid_ = other.uid_;
  1716. }
  1717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1718. public SC_MD_LeaveRoom Clone() {
  1719. return new SC_MD_LeaveRoom(this);
  1720. }
  1721. /// <summary>Field number for the "Zoneid" field.</summary>
  1722. public const int ZoneidFieldNumber = 1;
  1723. private int zoneid_;
  1724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1725. public int Zoneid {
  1726. get { return zoneid_; }
  1727. set {
  1728. zoneid_ = value;
  1729. }
  1730. }
  1731. /// <summary>Field number for the "Uid" field.</summary>
  1732. public const int UidFieldNumber = 2;
  1733. private string uid_ = "";
  1734. /// <summary>
  1735. /// (离开id)
  1736. /// </summary>
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1738. public string Uid {
  1739. get { return uid_; }
  1740. set {
  1741. uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1742. }
  1743. }
  1744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1745. public override bool Equals(object other) {
  1746. return Equals(other as SC_MD_LeaveRoom);
  1747. }
  1748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1749. public bool Equals(SC_MD_LeaveRoom other) {
  1750. if (ReferenceEquals(other, null)) {
  1751. return false;
  1752. }
  1753. if (ReferenceEquals(other, this)) {
  1754. return true;
  1755. }
  1756. if (Zoneid != other.Zoneid) return false;
  1757. if (Uid != other.Uid) return false;
  1758. return true;
  1759. }
  1760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1761. public override int GetHashCode() {
  1762. int hash = 1;
  1763. if (Zoneid != 0) hash ^= Zoneid.GetHashCode();
  1764. if (Uid.Length != 0) hash ^= Uid.GetHashCode();
  1765. return hash;
  1766. }
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1768. public override string ToString() {
  1769. return pb::JsonFormatter.ToDiagnosticString(this);
  1770. }
  1771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1772. public void WriteTo(pb::CodedOutputStream output) {
  1773. if (Zoneid != 0) {
  1774. output.WriteRawTag(8);
  1775. output.WriteInt32(Zoneid);
  1776. }
  1777. if (Uid.Length != 0) {
  1778. output.WriteRawTag(18);
  1779. output.WriteString(Uid);
  1780. }
  1781. }
  1782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1783. public int CalculateSize() {
  1784. int size = 0;
  1785. if (Zoneid != 0) {
  1786. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Zoneid);
  1787. }
  1788. if (Uid.Length != 0) {
  1789. size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
  1790. }
  1791. return size;
  1792. }
  1793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1794. public void MergeFrom(SC_MD_LeaveRoom other) {
  1795. if (other == null) {
  1796. return;
  1797. }
  1798. if (other.Zoneid != 0) {
  1799. Zoneid = other.Zoneid;
  1800. }
  1801. if (other.Uid.Length != 0) {
  1802. Uid = other.Uid;
  1803. }
  1804. }
  1805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1806. public void MergeFrom(pb::CodedInputStream input) {
  1807. uint tag;
  1808. while ((tag = input.ReadTag()) != 0) {
  1809. switch(tag) {
  1810. default:
  1811. input.SkipLastField();
  1812. break;
  1813. case 8: {
  1814. Zoneid = input.ReadInt32();
  1815. break;
  1816. }
  1817. case 18: {
  1818. Uid = input.ReadString();
  1819. break;
  1820. }
  1821. }
  1822. }
  1823. }
  1824. }
  1825. /// <summary>
  1826. /// 多人副本, 开始游戏(创建者)
  1827. /// </summary>
  1828. public sealed partial class SC_MD_BeginDup : pb::IMessage<SC_MD_BeginDup> {
  1829. private static readonly pb::MessageParser<SC_MD_BeginDup> _parser = new pb::MessageParser<SC_MD_BeginDup>(() => new SC_MD_BeginDup());
  1830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1831. public static pb::MessageParser<SC_MD_BeginDup> Parser { get { return _parser; } }
  1832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1833. public static pbr::MessageDescriptor Descriptor {
  1834. get { return global::MultiDup.MultiDupReflection.Descriptor.MessageTypes[11]; }
  1835. }
  1836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1837. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1838. get { return Descriptor; }
  1839. }
  1840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1841. public SC_MD_BeginDup() {
  1842. OnConstruction();
  1843. }
  1844. partial void OnConstruction();
  1845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1846. public SC_MD_BeginDup(SC_MD_BeginDup other) : this() {
  1847. }
  1848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1849. public SC_MD_BeginDup Clone() {
  1850. return new SC_MD_BeginDup(this);
  1851. }
  1852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1853. public override bool Equals(object other) {
  1854. return Equals(other as SC_MD_BeginDup);
  1855. }
  1856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1857. public bool Equals(SC_MD_BeginDup other) {
  1858. if (ReferenceEquals(other, null)) {
  1859. return false;
  1860. }
  1861. if (ReferenceEquals(other, this)) {
  1862. return true;
  1863. }
  1864. return true;
  1865. }
  1866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1867. public override int GetHashCode() {
  1868. int hash = 1;
  1869. return hash;
  1870. }
  1871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1872. public override string ToString() {
  1873. return pb::JsonFormatter.ToDiagnosticString(this);
  1874. }
  1875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1876. public void WriteTo(pb::CodedOutputStream output) {
  1877. }
  1878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1879. public int CalculateSize() {
  1880. int size = 0;
  1881. return size;
  1882. }
  1883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1884. public void MergeFrom(SC_MD_BeginDup other) {
  1885. if (other == null) {
  1886. return;
  1887. }
  1888. }
  1889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1890. public void MergeFrom(pb::CodedInputStream input) {
  1891. uint tag;
  1892. while ((tag = input.ReadTag()) != 0) {
  1893. switch(tag) {
  1894. default:
  1895. input.SkipLastField();
  1896. break;
  1897. }
  1898. }
  1899. }
  1900. }
  1901. #endregion
  1902. }
  1903. #endregion Designer generated code