MultiDup.cs 75 KB

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