Map.cs 81 KB

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