You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Message2Server.cs 62 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: Message2Server.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021, 8981
  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 Protobuf {
  12. /// <summary>Holder for reflection information generated from Message2Server.proto</summary>
  13. public static partial class Message2ServerReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for Message2Server.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static Message2ServerReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "ChRNZXNzYWdlMlNlcnZlci5wcm90bxIIcHJvdG9idWYaEU1lc3NhZ2VUeXBl",
  24. "LnByb3RvIrMBCglQbGF5ZXJNc2cSEQoJcGxheWVyX2lkGAEgASgDEi0KDHN0",
  25. "dWRlbnRfdHlwZRgCIAEoDjIVLnByb3RvYnVmLlN0dWRlbnRUeXBlSAASLQoM",
  26. "dHJpY2tlcl90eXBlGAMgASgOMhUucHJvdG9idWYuVHJpY2tlclR5cGVIABIp",
  27. "CgtwbGF5ZXJfdHlwZRgEIAEoDjIULnByb3RvYnVmLlBsYXllclR5cGVCCgoI",
  28. "am9iX3R5cGUiSQoHTW92ZU1zZxIRCglwbGF5ZXJfaWQYASABKAMSDQoFYW5n",
  29. "bGUYAiABKAESHAoUdGltZV9pbl9taWxsaXNlY29uZHMYAyABKAMiQwoHUHJv",
  30. "cE1zZxIRCglwbGF5ZXJfaWQYASABKAMSJQoJcHJvcF90eXBlGAIgASgOMhIu",
  31. "cHJvdG9idWYuUHJvcFR5cGUiQwoHU2VuZE1zZxIRCglwbGF5ZXJfaWQYASAB",
  32. "KAMSFAoMdG9fcGxheWVyX2lkGAIgASgDEg8KB21lc3NhZ2UYAyABKAkiLQoJ",
  33. "QXR0YWNrTXNnEhEKCXBsYXllcl9pZBgBIAEoAxINCgVhbmdsZRgCIAEoASIa",
  34. "CgVJRE1zZxIRCglwbGF5ZXJfaWQYASABKAMiLwoIU2tpbGxNc2cSEQoJcGxh",
  35. "eWVyX2lkGAEgASgDEhAKCHNraWxsX2lkGAIgASgFYgZwcm90bzM="));
  36. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  37. new pbr::FileDescriptor[] { global::Protobuf.MessageTypeReflection.Descriptor, },
  38. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  39. new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.PlayerMsg), global::Protobuf.PlayerMsg.Parser, new[]{ "PlayerId", "StudentType", "TrickerType", "PlayerType" }, new[]{ "JobType" }, null, null, null),
  40. new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.MoveMsg), global::Protobuf.MoveMsg.Parser, new[]{ "PlayerId", "Angle", "TimeInMilliseconds" }, null, null, null, null),
  41. new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.PropMsg), global::Protobuf.PropMsg.Parser, new[]{ "PlayerId", "PropType" }, null, null, null, null),
  42. new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.SendMsg), global::Protobuf.SendMsg.Parser, new[]{ "PlayerId", "ToPlayerId", "Message" }, null, null, null, null),
  43. new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.AttackMsg), global::Protobuf.AttackMsg.Parser, new[]{ "PlayerId", "Angle" }, null, null, null, null),
  44. new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.IDMsg), global::Protobuf.IDMsg.Parser, new[]{ "PlayerId" }, null, null, null, null),
  45. new pbr::GeneratedClrTypeInfo(typeof(global::Protobuf.SkillMsg), global::Protobuf.SkillMsg.Parser, new[]{ "PlayerId", "SkillId" }, null, null, null, null)
  46. }));
  47. }
  48. #endregion
  49. }
  50. #region Messages
  51. public sealed partial class PlayerMsg : pb::IMessage<PlayerMsg>
  52. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  53. , pb::IBufferMessage
  54. #endif
  55. {
  56. private static readonly pb::MessageParser<PlayerMsg> _parser = new pb::MessageParser<PlayerMsg>(() => new PlayerMsg());
  57. private pb::UnknownFieldSet _unknownFields;
  58. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  59. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  60. public static pb::MessageParser<PlayerMsg> Parser { get { return _parser; } }
  61. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  62. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  63. public static pbr::MessageDescriptor Descriptor {
  64. get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[0]; }
  65. }
  66. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  67. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  68. pbr::MessageDescriptor pb::IMessage.Descriptor {
  69. get { return Descriptor; }
  70. }
  71. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  72. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  73. public PlayerMsg() {
  74. OnConstruction();
  75. }
  76. partial void OnConstruction();
  77. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  78. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  79. public PlayerMsg(PlayerMsg other) : this() {
  80. playerId_ = other.playerId_;
  81. playerType_ = other.playerType_;
  82. switch (other.JobTypeCase) {
  83. case JobTypeOneofCase.StudentType:
  84. StudentType = other.StudentType;
  85. break;
  86. case JobTypeOneofCase.TrickerType:
  87. TrickerType = other.TrickerType;
  88. break;
  89. }
  90. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  91. }
  92. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  93. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  94. public PlayerMsg Clone() {
  95. return new PlayerMsg(this);
  96. }
  97. /// <summary>Field number for the "player_id" field.</summary>
  98. public const int PlayerIdFieldNumber = 1;
  99. private long playerId_;
  100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  101. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  102. public long PlayerId {
  103. get { return playerId_; }
  104. set {
  105. playerId_ = value;
  106. }
  107. }
  108. /// <summary>Field number for the "student_type" field.</summary>
  109. public const int StudentTypeFieldNumber = 2;
  110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  111. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  112. public global::Protobuf.StudentType StudentType {
  113. get { return jobTypeCase_ == JobTypeOneofCase.StudentType ? (global::Protobuf.StudentType) jobType_ : global::Protobuf.StudentType.NullStudentType; }
  114. set {
  115. jobType_ = value;
  116. jobTypeCase_ = JobTypeOneofCase.StudentType;
  117. }
  118. }
  119. /// <summary>Field number for the "tricker_type" field.</summary>
  120. public const int TrickerTypeFieldNumber = 3;
  121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  122. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  123. public global::Protobuf.TrickerType TrickerType {
  124. get { return jobTypeCase_ == JobTypeOneofCase.TrickerType ? (global::Protobuf.TrickerType) jobType_ : global::Protobuf.TrickerType.NullTrickerType; }
  125. set {
  126. jobType_ = value;
  127. jobTypeCase_ = JobTypeOneofCase.TrickerType;
  128. }
  129. }
  130. /// <summary>Field number for the "player_type" field.</summary>
  131. public const int PlayerTypeFieldNumber = 4;
  132. private global::Protobuf.PlayerType playerType_ = global::Protobuf.PlayerType.NullPlayerType;
  133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  134. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  135. public global::Protobuf.PlayerType PlayerType {
  136. get { return playerType_; }
  137. set {
  138. playerType_ = value;
  139. }
  140. }
  141. private object jobType_;
  142. /// <summary>Enum of possible cases for the "job_type" oneof.</summary>
  143. public enum JobTypeOneofCase {
  144. None = 0,
  145. StudentType = 2,
  146. TrickerType = 3,
  147. }
  148. private JobTypeOneofCase jobTypeCase_ = JobTypeOneofCase.None;
  149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  150. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  151. public JobTypeOneofCase JobTypeCase {
  152. get { return jobTypeCase_; }
  153. }
  154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  155. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  156. public void ClearJobType() {
  157. jobTypeCase_ = JobTypeOneofCase.None;
  158. jobType_ = null;
  159. }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  161. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  162. public override bool Equals(object other) {
  163. return Equals(other as PlayerMsg);
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  166. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  167. public bool Equals(PlayerMsg other) {
  168. if (ReferenceEquals(other, null)) {
  169. return false;
  170. }
  171. if (ReferenceEquals(other, this)) {
  172. return true;
  173. }
  174. if (PlayerId != other.PlayerId) return false;
  175. if (StudentType != other.StudentType) return false;
  176. if (TrickerType != other.TrickerType) return false;
  177. if (PlayerType != other.PlayerType) return false;
  178. if (JobTypeCase != other.JobTypeCase) return false;
  179. return Equals(_unknownFields, other._unknownFields);
  180. }
  181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  182. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  183. public override int GetHashCode() {
  184. int hash = 1;
  185. if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
  186. if (jobTypeCase_ == JobTypeOneofCase.StudentType) hash ^= StudentType.GetHashCode();
  187. if (jobTypeCase_ == JobTypeOneofCase.TrickerType) hash ^= TrickerType.GetHashCode();
  188. if (PlayerType != global::Protobuf.PlayerType.NullPlayerType) hash ^= PlayerType.GetHashCode();
  189. hash ^= (int) jobTypeCase_;
  190. if (_unknownFields != null) {
  191. hash ^= _unknownFields.GetHashCode();
  192. }
  193. return hash;
  194. }
  195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  196. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  197. public override string ToString() {
  198. return pb::JsonFormatter.ToDiagnosticString(this);
  199. }
  200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  201. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  202. public void WriteTo(pb::CodedOutputStream output) {
  203. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  204. output.WriteRawMessage(this);
  205. #else
  206. if (PlayerId != 0L) {
  207. output.WriteRawTag(8);
  208. output.WriteInt64(PlayerId);
  209. }
  210. if (jobTypeCase_ == JobTypeOneofCase.StudentType) {
  211. output.WriteRawTag(16);
  212. output.WriteEnum((int) StudentType);
  213. }
  214. if (jobTypeCase_ == JobTypeOneofCase.TrickerType) {
  215. output.WriteRawTag(24);
  216. output.WriteEnum((int) TrickerType);
  217. }
  218. if (PlayerType != global::Protobuf.PlayerType.NullPlayerType) {
  219. output.WriteRawTag(32);
  220. output.WriteEnum((int) PlayerType);
  221. }
  222. if (_unknownFields != null) {
  223. _unknownFields.WriteTo(output);
  224. }
  225. #endif
  226. }
  227. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  229. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  230. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  231. if (PlayerId != 0L) {
  232. output.WriteRawTag(8);
  233. output.WriteInt64(PlayerId);
  234. }
  235. if (jobTypeCase_ == JobTypeOneofCase.StudentType) {
  236. output.WriteRawTag(16);
  237. output.WriteEnum((int) StudentType);
  238. }
  239. if (jobTypeCase_ == JobTypeOneofCase.TrickerType) {
  240. output.WriteRawTag(24);
  241. output.WriteEnum((int) TrickerType);
  242. }
  243. if (PlayerType != global::Protobuf.PlayerType.NullPlayerType) {
  244. output.WriteRawTag(32);
  245. output.WriteEnum((int) PlayerType);
  246. }
  247. if (_unknownFields != null) {
  248. _unknownFields.WriteTo(ref output);
  249. }
  250. }
  251. #endif
  252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  253. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  254. public int CalculateSize() {
  255. int size = 0;
  256. if (PlayerId != 0L) {
  257. size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
  258. }
  259. if (jobTypeCase_ == JobTypeOneofCase.StudentType) {
  260. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StudentType);
  261. }
  262. if (jobTypeCase_ == JobTypeOneofCase.TrickerType) {
  263. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TrickerType);
  264. }
  265. if (PlayerType != global::Protobuf.PlayerType.NullPlayerType) {
  266. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayerType);
  267. }
  268. if (_unknownFields != null) {
  269. size += _unknownFields.CalculateSize();
  270. }
  271. return size;
  272. }
  273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  274. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  275. public void MergeFrom(PlayerMsg other) {
  276. if (other == null) {
  277. return;
  278. }
  279. if (other.PlayerId != 0L) {
  280. PlayerId = other.PlayerId;
  281. }
  282. if (other.PlayerType != global::Protobuf.PlayerType.NullPlayerType) {
  283. PlayerType = other.PlayerType;
  284. }
  285. switch (other.JobTypeCase) {
  286. case JobTypeOneofCase.StudentType:
  287. StudentType = other.StudentType;
  288. break;
  289. case JobTypeOneofCase.TrickerType:
  290. TrickerType = other.TrickerType;
  291. break;
  292. }
  293. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  294. }
  295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  296. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  297. public void MergeFrom(pb::CodedInputStream input) {
  298. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  299. input.ReadRawMessage(this);
  300. #else
  301. uint tag;
  302. while ((tag = input.ReadTag()) != 0) {
  303. switch(tag) {
  304. default:
  305. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  306. break;
  307. case 8: {
  308. PlayerId = input.ReadInt64();
  309. break;
  310. }
  311. case 16: {
  312. jobType_ = input.ReadEnum();
  313. jobTypeCase_ = JobTypeOneofCase.StudentType;
  314. break;
  315. }
  316. case 24: {
  317. jobType_ = input.ReadEnum();
  318. jobTypeCase_ = JobTypeOneofCase.TrickerType;
  319. break;
  320. }
  321. case 32: {
  322. PlayerType = (global::Protobuf.PlayerType) input.ReadEnum();
  323. break;
  324. }
  325. }
  326. }
  327. #endif
  328. }
  329. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  331. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  332. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  333. uint tag;
  334. while ((tag = input.ReadTag()) != 0) {
  335. switch(tag) {
  336. default:
  337. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  338. break;
  339. case 8: {
  340. PlayerId = input.ReadInt64();
  341. break;
  342. }
  343. case 16: {
  344. jobType_ = input.ReadEnum();
  345. jobTypeCase_ = JobTypeOneofCase.StudentType;
  346. break;
  347. }
  348. case 24: {
  349. jobType_ = input.ReadEnum();
  350. jobTypeCase_ = JobTypeOneofCase.TrickerType;
  351. break;
  352. }
  353. case 32: {
  354. PlayerType = (global::Protobuf.PlayerType) input.ReadEnum();
  355. break;
  356. }
  357. }
  358. }
  359. }
  360. #endif
  361. }
  362. public sealed partial class MoveMsg : pb::IMessage<MoveMsg>
  363. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  364. , pb::IBufferMessage
  365. #endif
  366. {
  367. private static readonly pb::MessageParser<MoveMsg> _parser = new pb::MessageParser<MoveMsg>(() => new MoveMsg());
  368. private pb::UnknownFieldSet _unknownFields;
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  370. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  371. public static pb::MessageParser<MoveMsg> Parser { get { return _parser; } }
  372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  373. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  374. public static pbr::MessageDescriptor Descriptor {
  375. get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[1]; }
  376. }
  377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  378. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  379. pbr::MessageDescriptor pb::IMessage.Descriptor {
  380. get { return Descriptor; }
  381. }
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  383. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  384. public MoveMsg() {
  385. OnConstruction();
  386. }
  387. partial void OnConstruction();
  388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  389. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  390. public MoveMsg(MoveMsg other) : this() {
  391. playerId_ = other.playerId_;
  392. angle_ = other.angle_;
  393. timeInMilliseconds_ = other.timeInMilliseconds_;
  394. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  395. }
  396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  397. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  398. public MoveMsg Clone() {
  399. return new MoveMsg(this);
  400. }
  401. /// <summary>Field number for the "player_id" field.</summary>
  402. public const int PlayerIdFieldNumber = 1;
  403. private long playerId_;
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  405. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  406. public long PlayerId {
  407. get { return playerId_; }
  408. set {
  409. playerId_ = value;
  410. }
  411. }
  412. /// <summary>Field number for the "angle" field.</summary>
  413. public const int AngleFieldNumber = 2;
  414. private double angle_;
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  416. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  417. public double Angle {
  418. get { return angle_; }
  419. set {
  420. angle_ = value;
  421. }
  422. }
  423. /// <summary>Field number for the "time_in_milliseconds" field.</summary>
  424. public const int TimeInMillisecondsFieldNumber = 3;
  425. private long timeInMilliseconds_;
  426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  427. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  428. public long TimeInMilliseconds {
  429. get { return timeInMilliseconds_; }
  430. set {
  431. timeInMilliseconds_ = value;
  432. }
  433. }
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  435. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  436. public override bool Equals(object other) {
  437. return Equals(other as MoveMsg);
  438. }
  439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  440. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  441. public bool Equals(MoveMsg other) {
  442. if (ReferenceEquals(other, null)) {
  443. return false;
  444. }
  445. if (ReferenceEquals(other, this)) {
  446. return true;
  447. }
  448. if (PlayerId != other.PlayerId) return false;
  449. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Angle, other.Angle)) return false;
  450. if (TimeInMilliseconds != other.TimeInMilliseconds) return false;
  451. return Equals(_unknownFields, other._unknownFields);
  452. }
  453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  454. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  455. public override int GetHashCode() {
  456. int hash = 1;
  457. if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
  458. if (Angle != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Angle);
  459. if (TimeInMilliseconds != 0L) hash ^= TimeInMilliseconds.GetHashCode();
  460. if (_unknownFields != null) {
  461. hash ^= _unknownFields.GetHashCode();
  462. }
  463. return hash;
  464. }
  465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  466. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  467. public override string ToString() {
  468. return pb::JsonFormatter.ToDiagnosticString(this);
  469. }
  470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  471. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  472. public void WriteTo(pb::CodedOutputStream output) {
  473. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  474. output.WriteRawMessage(this);
  475. #else
  476. if (PlayerId != 0L) {
  477. output.WriteRawTag(8);
  478. output.WriteInt64(PlayerId);
  479. }
  480. if (Angle != 0D) {
  481. output.WriteRawTag(17);
  482. output.WriteDouble(Angle);
  483. }
  484. if (TimeInMilliseconds != 0L) {
  485. output.WriteRawTag(24);
  486. output.WriteInt64(TimeInMilliseconds);
  487. }
  488. if (_unknownFields != null) {
  489. _unknownFields.WriteTo(output);
  490. }
  491. #endif
  492. }
  493. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  495. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  496. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  497. if (PlayerId != 0L) {
  498. output.WriteRawTag(8);
  499. output.WriteInt64(PlayerId);
  500. }
  501. if (Angle != 0D) {
  502. output.WriteRawTag(17);
  503. output.WriteDouble(Angle);
  504. }
  505. if (TimeInMilliseconds != 0L) {
  506. output.WriteRawTag(24);
  507. output.WriteInt64(TimeInMilliseconds);
  508. }
  509. if (_unknownFields != null) {
  510. _unknownFields.WriteTo(ref output);
  511. }
  512. }
  513. #endif
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  515. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  516. public int CalculateSize() {
  517. int size = 0;
  518. if (PlayerId != 0L) {
  519. size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
  520. }
  521. if (Angle != 0D) {
  522. size += 1 + 8;
  523. }
  524. if (TimeInMilliseconds != 0L) {
  525. size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeInMilliseconds);
  526. }
  527. if (_unknownFields != null) {
  528. size += _unknownFields.CalculateSize();
  529. }
  530. return size;
  531. }
  532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  533. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  534. public void MergeFrom(MoveMsg other) {
  535. if (other == null) {
  536. return;
  537. }
  538. if (other.PlayerId != 0L) {
  539. PlayerId = other.PlayerId;
  540. }
  541. if (other.Angle != 0D) {
  542. Angle = other.Angle;
  543. }
  544. if (other.TimeInMilliseconds != 0L) {
  545. TimeInMilliseconds = other.TimeInMilliseconds;
  546. }
  547. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  548. }
  549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  550. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  551. public void MergeFrom(pb::CodedInputStream input) {
  552. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  553. input.ReadRawMessage(this);
  554. #else
  555. uint tag;
  556. while ((tag = input.ReadTag()) != 0) {
  557. switch(tag) {
  558. default:
  559. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  560. break;
  561. case 8: {
  562. PlayerId = input.ReadInt64();
  563. break;
  564. }
  565. case 17: {
  566. Angle = input.ReadDouble();
  567. break;
  568. }
  569. case 24: {
  570. TimeInMilliseconds = input.ReadInt64();
  571. break;
  572. }
  573. }
  574. }
  575. #endif
  576. }
  577. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  579. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  580. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  581. uint tag;
  582. while ((tag = input.ReadTag()) != 0) {
  583. switch(tag) {
  584. default:
  585. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  586. break;
  587. case 8: {
  588. PlayerId = input.ReadInt64();
  589. break;
  590. }
  591. case 17: {
  592. Angle = input.ReadDouble();
  593. break;
  594. }
  595. case 24: {
  596. TimeInMilliseconds = input.ReadInt64();
  597. break;
  598. }
  599. }
  600. }
  601. }
  602. #endif
  603. }
  604. public sealed partial class PropMsg : pb::IMessage<PropMsg>
  605. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  606. , pb::IBufferMessage
  607. #endif
  608. {
  609. private static readonly pb::MessageParser<PropMsg> _parser = new pb::MessageParser<PropMsg>(() => new PropMsg());
  610. private pb::UnknownFieldSet _unknownFields;
  611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  612. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  613. public static pb::MessageParser<PropMsg> Parser { get { return _parser; } }
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  615. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  616. public static pbr::MessageDescriptor Descriptor {
  617. get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[2]; }
  618. }
  619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  620. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  621. pbr::MessageDescriptor pb::IMessage.Descriptor {
  622. get { return Descriptor; }
  623. }
  624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  625. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  626. public PropMsg() {
  627. OnConstruction();
  628. }
  629. partial void OnConstruction();
  630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  631. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  632. public PropMsg(PropMsg other) : this() {
  633. playerId_ = other.playerId_;
  634. propType_ = other.propType_;
  635. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  636. }
  637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  638. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  639. public PropMsg Clone() {
  640. return new PropMsg(this);
  641. }
  642. /// <summary>Field number for the "player_id" field.</summary>
  643. public const int PlayerIdFieldNumber = 1;
  644. private long playerId_;
  645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  646. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  647. public long PlayerId {
  648. get { return playerId_; }
  649. set {
  650. playerId_ = value;
  651. }
  652. }
  653. /// <summary>Field number for the "prop_type" field.</summary>
  654. public const int PropTypeFieldNumber = 2;
  655. private global::Protobuf.PropType propType_ = global::Protobuf.PropType.NullPropType;
  656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  657. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  658. public global::Protobuf.PropType PropType {
  659. get { return propType_; }
  660. set {
  661. propType_ = value;
  662. }
  663. }
  664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  665. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  666. public override bool Equals(object other) {
  667. return Equals(other as PropMsg);
  668. }
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  670. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  671. public bool Equals(PropMsg other) {
  672. if (ReferenceEquals(other, null)) {
  673. return false;
  674. }
  675. if (ReferenceEquals(other, this)) {
  676. return true;
  677. }
  678. if (PlayerId != other.PlayerId) return false;
  679. if (PropType != other.PropType) return false;
  680. return Equals(_unknownFields, other._unknownFields);
  681. }
  682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  683. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  684. public override int GetHashCode() {
  685. int hash = 1;
  686. if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
  687. if (PropType != global::Protobuf.PropType.NullPropType) hash ^= PropType.GetHashCode();
  688. if (_unknownFields != null) {
  689. hash ^= _unknownFields.GetHashCode();
  690. }
  691. return hash;
  692. }
  693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  694. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  695. public override string ToString() {
  696. return pb::JsonFormatter.ToDiagnosticString(this);
  697. }
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  699. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  700. public void WriteTo(pb::CodedOutputStream output) {
  701. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  702. output.WriteRawMessage(this);
  703. #else
  704. if (PlayerId != 0L) {
  705. output.WriteRawTag(8);
  706. output.WriteInt64(PlayerId);
  707. }
  708. if (PropType != global::Protobuf.PropType.NullPropType) {
  709. output.WriteRawTag(16);
  710. output.WriteEnum((int) PropType);
  711. }
  712. if (_unknownFields != null) {
  713. _unknownFields.WriteTo(output);
  714. }
  715. #endif
  716. }
  717. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  719. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  720. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  721. if (PlayerId != 0L) {
  722. output.WriteRawTag(8);
  723. output.WriteInt64(PlayerId);
  724. }
  725. if (PropType != global::Protobuf.PropType.NullPropType) {
  726. output.WriteRawTag(16);
  727. output.WriteEnum((int) PropType);
  728. }
  729. if (_unknownFields != null) {
  730. _unknownFields.WriteTo(ref output);
  731. }
  732. }
  733. #endif
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  735. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  736. public int CalculateSize() {
  737. int size = 0;
  738. if (PlayerId != 0L) {
  739. size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
  740. }
  741. if (PropType != global::Protobuf.PropType.NullPropType) {
  742. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PropType);
  743. }
  744. if (_unknownFields != null) {
  745. size += _unknownFields.CalculateSize();
  746. }
  747. return size;
  748. }
  749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  750. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  751. public void MergeFrom(PropMsg other) {
  752. if (other == null) {
  753. return;
  754. }
  755. if (other.PlayerId != 0L) {
  756. PlayerId = other.PlayerId;
  757. }
  758. if (other.PropType != global::Protobuf.PropType.NullPropType) {
  759. PropType = other.PropType;
  760. }
  761. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  762. }
  763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  764. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  765. public void MergeFrom(pb::CodedInputStream input) {
  766. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  767. input.ReadRawMessage(this);
  768. #else
  769. uint tag;
  770. while ((tag = input.ReadTag()) != 0) {
  771. switch(tag) {
  772. default:
  773. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  774. break;
  775. case 8: {
  776. PlayerId = input.ReadInt64();
  777. break;
  778. }
  779. case 16: {
  780. PropType = (global::Protobuf.PropType) input.ReadEnum();
  781. break;
  782. }
  783. }
  784. }
  785. #endif
  786. }
  787. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  789. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  790. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  791. uint tag;
  792. while ((tag = input.ReadTag()) != 0) {
  793. switch(tag) {
  794. default:
  795. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  796. break;
  797. case 8: {
  798. PlayerId = input.ReadInt64();
  799. break;
  800. }
  801. case 16: {
  802. PropType = (global::Protobuf.PropType) input.ReadEnum();
  803. break;
  804. }
  805. }
  806. }
  807. }
  808. #endif
  809. }
  810. public sealed partial class SendMsg : pb::IMessage<SendMsg>
  811. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  812. , pb::IBufferMessage
  813. #endif
  814. {
  815. private static readonly pb::MessageParser<SendMsg> _parser = new pb::MessageParser<SendMsg>(() => new SendMsg());
  816. private pb::UnknownFieldSet _unknownFields;
  817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  818. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  819. public static pb::MessageParser<SendMsg> Parser { get { return _parser; } }
  820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  821. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  822. public static pbr::MessageDescriptor Descriptor {
  823. get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[3]; }
  824. }
  825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  826. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  827. pbr::MessageDescriptor pb::IMessage.Descriptor {
  828. get { return Descriptor; }
  829. }
  830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  831. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  832. public SendMsg() {
  833. OnConstruction();
  834. }
  835. partial void OnConstruction();
  836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  837. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  838. public SendMsg(SendMsg other) : this() {
  839. playerId_ = other.playerId_;
  840. toPlayerId_ = other.toPlayerId_;
  841. message_ = other.message_;
  842. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  845. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  846. public SendMsg Clone() {
  847. return new SendMsg(this);
  848. }
  849. /// <summary>Field number for the "player_id" field.</summary>
  850. public const int PlayerIdFieldNumber = 1;
  851. private long playerId_;
  852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  853. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  854. public long PlayerId {
  855. get { return playerId_; }
  856. set {
  857. playerId_ = value;
  858. }
  859. }
  860. /// <summary>Field number for the "to_player_id" field.</summary>
  861. public const int ToPlayerIdFieldNumber = 2;
  862. private long toPlayerId_;
  863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  864. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  865. public long ToPlayerId {
  866. get { return toPlayerId_; }
  867. set {
  868. toPlayerId_ = value;
  869. }
  870. }
  871. /// <summary>Field number for the "message" field.</summary>
  872. public const int MessageFieldNumber = 3;
  873. private string message_ = "";
  874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  875. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  876. public string Message {
  877. get { return message_; }
  878. set {
  879. message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  880. }
  881. }
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  883. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  884. public override bool Equals(object other) {
  885. return Equals(other as SendMsg);
  886. }
  887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  888. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  889. public bool Equals(SendMsg other) {
  890. if (ReferenceEquals(other, null)) {
  891. return false;
  892. }
  893. if (ReferenceEquals(other, this)) {
  894. return true;
  895. }
  896. if (PlayerId != other.PlayerId) return false;
  897. if (ToPlayerId != other.ToPlayerId) return false;
  898. if (Message != other.Message) return false;
  899. return Equals(_unknownFields, other._unknownFields);
  900. }
  901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  902. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  903. public override int GetHashCode() {
  904. int hash = 1;
  905. if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
  906. if (ToPlayerId != 0L) hash ^= ToPlayerId.GetHashCode();
  907. if (Message.Length != 0) hash ^= Message.GetHashCode();
  908. if (_unknownFields != null) {
  909. hash ^= _unknownFields.GetHashCode();
  910. }
  911. return hash;
  912. }
  913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  914. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  915. public override string ToString() {
  916. return pb::JsonFormatter.ToDiagnosticString(this);
  917. }
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  919. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  920. public void WriteTo(pb::CodedOutputStream output) {
  921. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  922. output.WriteRawMessage(this);
  923. #else
  924. if (PlayerId != 0L) {
  925. output.WriteRawTag(8);
  926. output.WriteInt64(PlayerId);
  927. }
  928. if (ToPlayerId != 0L) {
  929. output.WriteRawTag(16);
  930. output.WriteInt64(ToPlayerId);
  931. }
  932. if (Message.Length != 0) {
  933. output.WriteRawTag(26);
  934. output.WriteString(Message);
  935. }
  936. if (_unknownFields != null) {
  937. _unknownFields.WriteTo(output);
  938. }
  939. #endif
  940. }
  941. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  943. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  944. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  945. if (PlayerId != 0L) {
  946. output.WriteRawTag(8);
  947. output.WriteInt64(PlayerId);
  948. }
  949. if (ToPlayerId != 0L) {
  950. output.WriteRawTag(16);
  951. output.WriteInt64(ToPlayerId);
  952. }
  953. if (Message.Length != 0) {
  954. output.WriteRawTag(26);
  955. output.WriteString(Message);
  956. }
  957. if (_unknownFields != null) {
  958. _unknownFields.WriteTo(ref output);
  959. }
  960. }
  961. #endif
  962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  963. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  964. public int CalculateSize() {
  965. int size = 0;
  966. if (PlayerId != 0L) {
  967. size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
  968. }
  969. if (ToPlayerId != 0L) {
  970. size += 1 + pb::CodedOutputStream.ComputeInt64Size(ToPlayerId);
  971. }
  972. if (Message.Length != 0) {
  973. size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
  974. }
  975. if (_unknownFields != null) {
  976. size += _unknownFields.CalculateSize();
  977. }
  978. return size;
  979. }
  980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  981. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  982. public void MergeFrom(SendMsg other) {
  983. if (other == null) {
  984. return;
  985. }
  986. if (other.PlayerId != 0L) {
  987. PlayerId = other.PlayerId;
  988. }
  989. if (other.ToPlayerId != 0L) {
  990. ToPlayerId = other.ToPlayerId;
  991. }
  992. if (other.Message.Length != 0) {
  993. Message = other.Message;
  994. }
  995. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  996. }
  997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  998. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  999. public void MergeFrom(pb::CodedInputStream input) {
  1000. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1001. input.ReadRawMessage(this);
  1002. #else
  1003. uint tag;
  1004. while ((tag = input.ReadTag()) != 0) {
  1005. switch(tag) {
  1006. default:
  1007. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1008. break;
  1009. case 8: {
  1010. PlayerId = input.ReadInt64();
  1011. break;
  1012. }
  1013. case 16: {
  1014. ToPlayerId = input.ReadInt64();
  1015. break;
  1016. }
  1017. case 26: {
  1018. Message = input.ReadString();
  1019. break;
  1020. }
  1021. }
  1022. }
  1023. #endif
  1024. }
  1025. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1027. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1028. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1029. uint tag;
  1030. while ((tag = input.ReadTag()) != 0) {
  1031. switch(tag) {
  1032. default:
  1033. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1034. break;
  1035. case 8: {
  1036. PlayerId = input.ReadInt64();
  1037. break;
  1038. }
  1039. case 16: {
  1040. ToPlayerId = input.ReadInt64();
  1041. break;
  1042. }
  1043. case 26: {
  1044. Message = input.ReadString();
  1045. break;
  1046. }
  1047. }
  1048. }
  1049. }
  1050. #endif
  1051. }
  1052. public sealed partial class AttackMsg : pb::IMessage<AttackMsg>
  1053. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1054. , pb::IBufferMessage
  1055. #endif
  1056. {
  1057. private static readonly pb::MessageParser<AttackMsg> _parser = new pb::MessageParser<AttackMsg>(() => new AttackMsg());
  1058. private pb::UnknownFieldSet _unknownFields;
  1059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1060. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1061. public static pb::MessageParser<AttackMsg> Parser { get { return _parser; } }
  1062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1063. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1064. public static pbr::MessageDescriptor Descriptor {
  1065. get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[4]; }
  1066. }
  1067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1068. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1069. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1070. get { return Descriptor; }
  1071. }
  1072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1073. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1074. public AttackMsg() {
  1075. OnConstruction();
  1076. }
  1077. partial void OnConstruction();
  1078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1079. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1080. public AttackMsg(AttackMsg other) : this() {
  1081. playerId_ = other.playerId_;
  1082. angle_ = other.angle_;
  1083. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1084. }
  1085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1086. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1087. public AttackMsg Clone() {
  1088. return new AttackMsg(this);
  1089. }
  1090. /// <summary>Field number for the "player_id" field.</summary>
  1091. public const int PlayerIdFieldNumber = 1;
  1092. private long playerId_;
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1094. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1095. public long PlayerId {
  1096. get { return playerId_; }
  1097. set {
  1098. playerId_ = value;
  1099. }
  1100. }
  1101. /// <summary>Field number for the "angle" field.</summary>
  1102. public const int AngleFieldNumber = 2;
  1103. private double angle_;
  1104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1105. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1106. public double Angle {
  1107. get { return angle_; }
  1108. set {
  1109. angle_ = value;
  1110. }
  1111. }
  1112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1113. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1114. public override bool Equals(object other) {
  1115. return Equals(other as AttackMsg);
  1116. }
  1117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1118. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1119. public bool Equals(AttackMsg other) {
  1120. if (ReferenceEquals(other, null)) {
  1121. return false;
  1122. }
  1123. if (ReferenceEquals(other, this)) {
  1124. return true;
  1125. }
  1126. if (PlayerId != other.PlayerId) return false;
  1127. if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Angle, other.Angle)) return false;
  1128. return Equals(_unknownFields, other._unknownFields);
  1129. }
  1130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1131. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1132. public override int GetHashCode() {
  1133. int hash = 1;
  1134. if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
  1135. if (Angle != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Angle);
  1136. if (_unknownFields != null) {
  1137. hash ^= _unknownFields.GetHashCode();
  1138. }
  1139. return hash;
  1140. }
  1141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1142. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1143. public override string ToString() {
  1144. return pb::JsonFormatter.ToDiagnosticString(this);
  1145. }
  1146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1147. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1148. public void WriteTo(pb::CodedOutputStream output) {
  1149. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1150. output.WriteRawMessage(this);
  1151. #else
  1152. if (PlayerId != 0L) {
  1153. output.WriteRawTag(8);
  1154. output.WriteInt64(PlayerId);
  1155. }
  1156. if (Angle != 0D) {
  1157. output.WriteRawTag(17);
  1158. output.WriteDouble(Angle);
  1159. }
  1160. if (_unknownFields != null) {
  1161. _unknownFields.WriteTo(output);
  1162. }
  1163. #endif
  1164. }
  1165. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1167. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1168. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1169. if (PlayerId != 0L) {
  1170. output.WriteRawTag(8);
  1171. output.WriteInt64(PlayerId);
  1172. }
  1173. if (Angle != 0D) {
  1174. output.WriteRawTag(17);
  1175. output.WriteDouble(Angle);
  1176. }
  1177. if (_unknownFields != null) {
  1178. _unknownFields.WriteTo(ref output);
  1179. }
  1180. }
  1181. #endif
  1182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1183. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1184. public int CalculateSize() {
  1185. int size = 0;
  1186. if (PlayerId != 0L) {
  1187. size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
  1188. }
  1189. if (Angle != 0D) {
  1190. size += 1 + 8;
  1191. }
  1192. if (_unknownFields != null) {
  1193. size += _unknownFields.CalculateSize();
  1194. }
  1195. return size;
  1196. }
  1197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1198. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1199. public void MergeFrom(AttackMsg other) {
  1200. if (other == null) {
  1201. return;
  1202. }
  1203. if (other.PlayerId != 0L) {
  1204. PlayerId = other.PlayerId;
  1205. }
  1206. if (other.Angle != 0D) {
  1207. Angle = other.Angle;
  1208. }
  1209. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1210. }
  1211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1212. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1213. public void MergeFrom(pb::CodedInputStream input) {
  1214. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1215. input.ReadRawMessage(this);
  1216. #else
  1217. uint tag;
  1218. while ((tag = input.ReadTag()) != 0) {
  1219. switch(tag) {
  1220. default:
  1221. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1222. break;
  1223. case 8: {
  1224. PlayerId = input.ReadInt64();
  1225. break;
  1226. }
  1227. case 17: {
  1228. Angle = input.ReadDouble();
  1229. break;
  1230. }
  1231. }
  1232. }
  1233. #endif
  1234. }
  1235. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1237. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1238. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1239. uint tag;
  1240. while ((tag = input.ReadTag()) != 0) {
  1241. switch(tag) {
  1242. default:
  1243. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1244. break;
  1245. case 8: {
  1246. PlayerId = input.ReadInt64();
  1247. break;
  1248. }
  1249. case 17: {
  1250. Angle = input.ReadDouble();
  1251. break;
  1252. }
  1253. }
  1254. }
  1255. }
  1256. #endif
  1257. }
  1258. public sealed partial class IDMsg : pb::IMessage<IDMsg>
  1259. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1260. , pb::IBufferMessage
  1261. #endif
  1262. {
  1263. private static readonly pb::MessageParser<IDMsg> _parser = new pb::MessageParser<IDMsg>(() => new IDMsg());
  1264. private pb::UnknownFieldSet _unknownFields;
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1266. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1267. public static pb::MessageParser<IDMsg> Parser { get { return _parser; } }
  1268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1269. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1270. public static pbr::MessageDescriptor Descriptor {
  1271. get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[5]; }
  1272. }
  1273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1274. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1275. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1276. get { return Descriptor; }
  1277. }
  1278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1279. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1280. public IDMsg() {
  1281. OnConstruction();
  1282. }
  1283. partial void OnConstruction();
  1284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1285. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1286. public IDMsg(IDMsg other) : this() {
  1287. playerId_ = other.playerId_;
  1288. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1289. }
  1290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1291. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1292. public IDMsg Clone() {
  1293. return new IDMsg(this);
  1294. }
  1295. /// <summary>Field number for the "player_id" field.</summary>
  1296. public const int PlayerIdFieldNumber = 1;
  1297. private long playerId_;
  1298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1299. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1300. public long PlayerId {
  1301. get { return playerId_; }
  1302. set {
  1303. playerId_ = value;
  1304. }
  1305. }
  1306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1307. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1308. public override bool Equals(object other) {
  1309. return Equals(other as IDMsg);
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1312. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1313. public bool Equals(IDMsg other) {
  1314. if (ReferenceEquals(other, null)) {
  1315. return false;
  1316. }
  1317. if (ReferenceEquals(other, this)) {
  1318. return true;
  1319. }
  1320. if (PlayerId != other.PlayerId) return false;
  1321. return Equals(_unknownFields, other._unknownFields);
  1322. }
  1323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1324. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1325. public override int GetHashCode() {
  1326. int hash = 1;
  1327. if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
  1328. if (_unknownFields != null) {
  1329. hash ^= _unknownFields.GetHashCode();
  1330. }
  1331. return hash;
  1332. }
  1333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1334. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1335. public override string ToString() {
  1336. return pb::JsonFormatter.ToDiagnosticString(this);
  1337. }
  1338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1339. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1340. public void WriteTo(pb::CodedOutputStream output) {
  1341. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1342. output.WriteRawMessage(this);
  1343. #else
  1344. if (PlayerId != 0L) {
  1345. output.WriteRawTag(8);
  1346. output.WriteInt64(PlayerId);
  1347. }
  1348. if (_unknownFields != null) {
  1349. _unknownFields.WriteTo(output);
  1350. }
  1351. #endif
  1352. }
  1353. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1355. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1356. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1357. if (PlayerId != 0L) {
  1358. output.WriteRawTag(8);
  1359. output.WriteInt64(PlayerId);
  1360. }
  1361. if (_unknownFields != null) {
  1362. _unknownFields.WriteTo(ref output);
  1363. }
  1364. }
  1365. #endif
  1366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1367. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1368. public int CalculateSize() {
  1369. int size = 0;
  1370. if (PlayerId != 0L) {
  1371. size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
  1372. }
  1373. if (_unknownFields != null) {
  1374. size += _unknownFields.CalculateSize();
  1375. }
  1376. return size;
  1377. }
  1378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1379. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1380. public void MergeFrom(IDMsg other) {
  1381. if (other == null) {
  1382. return;
  1383. }
  1384. if (other.PlayerId != 0L) {
  1385. PlayerId = other.PlayerId;
  1386. }
  1387. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1388. }
  1389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1390. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1391. public void MergeFrom(pb::CodedInputStream input) {
  1392. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1393. input.ReadRawMessage(this);
  1394. #else
  1395. uint tag;
  1396. while ((tag = input.ReadTag()) != 0) {
  1397. switch(tag) {
  1398. default:
  1399. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1400. break;
  1401. case 8: {
  1402. PlayerId = input.ReadInt64();
  1403. break;
  1404. }
  1405. }
  1406. }
  1407. #endif
  1408. }
  1409. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1411. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1412. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1413. uint tag;
  1414. while ((tag = input.ReadTag()) != 0) {
  1415. switch(tag) {
  1416. default:
  1417. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1418. break;
  1419. case 8: {
  1420. PlayerId = input.ReadInt64();
  1421. break;
  1422. }
  1423. }
  1424. }
  1425. }
  1426. #endif
  1427. }
  1428. public sealed partial class SkillMsg : pb::IMessage<SkillMsg>
  1429. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1430. , pb::IBufferMessage
  1431. #endif
  1432. {
  1433. private static readonly pb::MessageParser<SkillMsg> _parser = new pb::MessageParser<SkillMsg>(() => new SkillMsg());
  1434. private pb::UnknownFieldSet _unknownFields;
  1435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1436. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1437. public static pb::MessageParser<SkillMsg> Parser { get { return _parser; } }
  1438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1439. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1440. public static pbr::MessageDescriptor Descriptor {
  1441. get { return global::Protobuf.Message2ServerReflection.Descriptor.MessageTypes[6]; }
  1442. }
  1443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1444. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1445. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1446. get { return Descriptor; }
  1447. }
  1448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1449. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1450. public SkillMsg() {
  1451. OnConstruction();
  1452. }
  1453. partial void OnConstruction();
  1454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1455. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1456. public SkillMsg(SkillMsg other) : this() {
  1457. playerId_ = other.playerId_;
  1458. skillId_ = other.skillId_;
  1459. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  1460. }
  1461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1462. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1463. public SkillMsg Clone() {
  1464. return new SkillMsg(this);
  1465. }
  1466. /// <summary>Field number for the "player_id" field.</summary>
  1467. public const int PlayerIdFieldNumber = 1;
  1468. private long playerId_;
  1469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1470. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1471. public long PlayerId {
  1472. get { return playerId_; }
  1473. set {
  1474. playerId_ = value;
  1475. }
  1476. }
  1477. /// <summary>Field number for the "skill_id" field.</summary>
  1478. public const int SkillIdFieldNumber = 2;
  1479. private int skillId_;
  1480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1481. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1482. public int SkillId {
  1483. get { return skillId_; }
  1484. set {
  1485. skillId_ = value;
  1486. }
  1487. }
  1488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1489. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1490. public override bool Equals(object other) {
  1491. return Equals(other as SkillMsg);
  1492. }
  1493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1494. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1495. public bool Equals(SkillMsg other) {
  1496. if (ReferenceEquals(other, null)) {
  1497. return false;
  1498. }
  1499. if (ReferenceEquals(other, this)) {
  1500. return true;
  1501. }
  1502. if (PlayerId != other.PlayerId) return false;
  1503. if (SkillId != other.SkillId) return false;
  1504. return Equals(_unknownFields, other._unknownFields);
  1505. }
  1506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1507. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1508. public override int GetHashCode() {
  1509. int hash = 1;
  1510. if (PlayerId != 0L) hash ^= PlayerId.GetHashCode();
  1511. if (SkillId != 0) hash ^= SkillId.GetHashCode();
  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 (PlayerId != 0L) {
  1529. output.WriteRawTag(8);
  1530. output.WriteInt64(PlayerId);
  1531. }
  1532. if (SkillId != 0) {
  1533. output.WriteRawTag(16);
  1534. output.WriteInt32(SkillId);
  1535. }
  1536. if (_unknownFields != null) {
  1537. _unknownFields.WriteTo(output);
  1538. }
  1539. #endif
  1540. }
  1541. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1543. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1544. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  1545. if (PlayerId != 0L) {
  1546. output.WriteRawTag(8);
  1547. output.WriteInt64(PlayerId);
  1548. }
  1549. if (SkillId != 0) {
  1550. output.WriteRawTag(16);
  1551. output.WriteInt32(SkillId);
  1552. }
  1553. if (_unknownFields != null) {
  1554. _unknownFields.WriteTo(ref output);
  1555. }
  1556. }
  1557. #endif
  1558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1559. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1560. public int CalculateSize() {
  1561. int size = 0;
  1562. if (PlayerId != 0L) {
  1563. size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlayerId);
  1564. }
  1565. if (SkillId != 0) {
  1566. size += 1 + pb::CodedOutputStream.ComputeInt32Size(SkillId);
  1567. }
  1568. if (_unknownFields != null) {
  1569. size += _unknownFields.CalculateSize();
  1570. }
  1571. return size;
  1572. }
  1573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1574. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1575. public void MergeFrom(SkillMsg other) {
  1576. if (other == null) {
  1577. return;
  1578. }
  1579. if (other.PlayerId != 0L) {
  1580. PlayerId = other.PlayerId;
  1581. }
  1582. if (other.SkillId != 0) {
  1583. SkillId = other.SkillId;
  1584. }
  1585. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  1586. }
  1587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1588. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1589. public void MergeFrom(pb::CodedInputStream input) {
  1590. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1591. input.ReadRawMessage(this);
  1592. #else
  1593. uint tag;
  1594. while ((tag = input.ReadTag()) != 0) {
  1595. switch(tag) {
  1596. default:
  1597. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  1598. break;
  1599. case 8: {
  1600. PlayerId = input.ReadInt64();
  1601. break;
  1602. }
  1603. case 16: {
  1604. SkillId = input.ReadInt32();
  1605. break;
  1606. }
  1607. }
  1608. }
  1609. #endif
  1610. }
  1611. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  1612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1613. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  1614. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  1615. uint tag;
  1616. while ((tag = input.ReadTag()) != 0) {
  1617. switch(tag) {
  1618. default:
  1619. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  1620. break;
  1621. case 8: {
  1622. PlayerId = input.ReadInt64();
  1623. break;
  1624. }
  1625. case 16: {
  1626. SkillId = input.ReadInt32();
  1627. break;
  1628. }
  1629. }
  1630. }
  1631. }
  1632. #endif
  1633. }
  1634. #endregion
  1635. }
  1636. #endregion Designer generated code