Front.cs 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: front.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbr = global::Google.Protobuf.Reflection;
  8. using scg = global::System.Collections.Generic;
  9. namespace Protos {
  10. /// <summary>Holder for reflection information generated from front.proto</summary>
  11. public static partial class FrontReflection {
  12. #region Descriptor
  13. /// <summary>File descriptor for front.proto</summary>
  14. public static pbr::FileDescriptor Descriptor {
  15. get { return descriptor; }
  16. }
  17. private static pbr::FileDescriptor descriptor;
  18. static FrontReflection() {
  19. byte[] descriptorData = global::System.Convert.FromBase64String(
  20. string.Concat(
  21. "Cgtmcm9udC5wcm90bxIGcHJvdG9zIs0CChBDaGFyYWN0ZXJQYWNrYWdlEgwK",
  22. "BGhhbmQYASABKAUSEAoIaGFuZEdyYWIYAiABKAUSEgoKcG9zaXRpb25feBgD",
  23. "IAEoAhISCgpwb3NpdGlvbl95GAQgASgCEhIKCnBvc2l0aW9uX3oYBSABKAIS",
  24. "EgoKcm90YXRpb25feBgGIAEoAhISCgpyb3RhdGlvbl95GAcgASgCEhIKCnJv",
  25. "dGF0aW9uX3oYCCABKAISEgoKcm90YXRpb25fdxgJIAEoAhIZChFsaW5lYXJf",
  26. "dmVsb2NpdHlfeBgKIAEoAhIZChFsaW5lYXJfdmVsb2NpdHlfeRgLIAEoAhIZ",
  27. "ChFsaW5lYXJfdmVsb2NpdHlfehgMIAEoAhIPCgdib25lUG9zGA0gAygCEg8K",
  28. "B2JvbmVSb3QYDiADKAISDAoEanVtcBgPIAEoBRIMCgRkb3duGBAgASgFIu0C",
  29. "CgpCb3hQYWNrYWdlEhEKCWVmZmVjdF9pZBgBIAEoBRIPCgdob2xkX2lkGAIg",
  30. "ASgFEhIKCnBvc2l0aW9uX3gYAyABKAISEgoKcG9zaXRpb25feRgEIAEoAhIS",
  31. "Cgpwb3NpdGlvbl96GAUgASgCEhIKCnJvdGF0aW9uX3gYBiABKAISEgoKcm90",
  32. "YXRpb25feRgHIAEoAhISCgpyb3RhdGlvbl96GAggASgCEhIKCnJvdGF0aW9u",
  33. "X3cYCSABKAISGQoRbGluZWFyX3ZlbG9jaXR5X3gYCiABKAISGQoRbGluZWFy",
  34. "X3ZlbG9jaXR5X3kYCyABKAISGQoRbGluZWFyX3ZlbG9jaXR5X3oYDCABKAIS",
  35. "GAoQYW5nbGVfdmVsb2NpdHlfeBgNIAEoAhIYChBhbmdsZV92ZWxvY2l0eV95",
  36. "GA4gASgCEhgKEGFuZ2xlX3ZlbG9jaXR5X3oYDyABKAISEAoIZXh0cmFTZXQY",
  37. "ECABKAliBnByb3RvMw=="));
  38. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  39. new pbr::FileDescriptor[] { },
  40. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  41. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.CharacterPackage), global::Protos.CharacterPackage.Parser, new[]{ "Hand", "HandGrab", "PositionX", "PositionY", "PositionZ", "RotationX", "RotationY", "RotationZ", "RotationW", "LinearVelocityX", "LinearVelocityY", "LinearVelocityZ", "BonePos", "BoneRot", "Jump", "Down" }, null, null, null),
  42. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.BoxPackage), global::Protos.BoxPackage.Parser, new[]{ "EffectId", "HoldId", "PositionX", "PositionY", "PositionZ", "RotationX", "RotationY", "RotationZ", "RotationW", "LinearVelocityX", "LinearVelocityY", "LinearVelocityZ", "AngleVelocityX", "AngleVelocityY", "AngleVelocityZ", "ExtraSet" }, null, null, null)
  43. }));
  44. }
  45. #endregion
  46. }
  47. #region Messages
  48. /// <summary>
  49. /// 载入游戏响应
  50. /// </summary>
  51. public sealed partial class CharacterPackage : pb::IMessage<CharacterPackage> {
  52. private static readonly pb::MessageParser<CharacterPackage> _parser = new pb::MessageParser<CharacterPackage>(() => new CharacterPackage());
  53. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  54. public static pb::MessageParser<CharacterPackage> Parser { get { return _parser; } }
  55. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  56. public static pbr::MessageDescriptor Descriptor {
  57. get { return global::Protos.FrontReflection.Descriptor.MessageTypes[0]; }
  58. }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  60. pbr::MessageDescriptor pb::IMessage.Descriptor {
  61. get { return Descriptor; }
  62. }
  63. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  64. public CharacterPackage() {
  65. OnConstruction();
  66. }
  67. partial void OnConstruction();
  68. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  69. public CharacterPackage(CharacterPackage other) : this() {
  70. hand_ = other.hand_;
  71. handGrab_ = other.handGrab_;
  72. positionX_ = other.positionX_;
  73. positionY_ = other.positionY_;
  74. positionZ_ = other.positionZ_;
  75. rotationX_ = other.rotationX_;
  76. rotationY_ = other.rotationY_;
  77. rotationZ_ = other.rotationZ_;
  78. rotationW_ = other.rotationW_;
  79. linearVelocityX_ = other.linearVelocityX_;
  80. linearVelocityY_ = other.linearVelocityY_;
  81. linearVelocityZ_ = other.linearVelocityZ_;
  82. bonePos_ = other.bonePos_.Clone();
  83. boneRot_ = other.boneRot_.Clone();
  84. jump_ = other.jump_;
  85. down_ = other.down_;
  86. }
  87. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  88. public CharacterPackage Clone() {
  89. return new CharacterPackage(this);
  90. }
  91. /// <summary>Field number for the "hand" field.</summary>
  92. public const int HandFieldNumber = 1;
  93. private int hand_;
  94. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  95. public int Hand {
  96. get { return hand_; }
  97. set {
  98. hand_ = value;
  99. }
  100. }
  101. /// <summary>Field number for the "handGrab" field.</summary>
  102. public const int HandGrabFieldNumber = 2;
  103. private int handGrab_;
  104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  105. public int HandGrab {
  106. get { return handGrab_; }
  107. set {
  108. handGrab_ = value;
  109. }
  110. }
  111. /// <summary>Field number for the "position_x" field.</summary>
  112. public const int PositionXFieldNumber = 3;
  113. private float positionX_;
  114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  115. public float PositionX {
  116. get { return positionX_; }
  117. set {
  118. positionX_ = value;
  119. }
  120. }
  121. /// <summary>Field number for the "position_y" field.</summary>
  122. public const int PositionYFieldNumber = 4;
  123. private float positionY_;
  124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  125. public float PositionY {
  126. get { return positionY_; }
  127. set {
  128. positionY_ = value;
  129. }
  130. }
  131. /// <summary>Field number for the "position_z" field.</summary>
  132. public const int PositionZFieldNumber = 5;
  133. private float positionZ_;
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  135. public float PositionZ {
  136. get { return positionZ_; }
  137. set {
  138. positionZ_ = value;
  139. }
  140. }
  141. /// <summary>Field number for the "rotation_x" field.</summary>
  142. public const int RotationXFieldNumber = 6;
  143. private float rotationX_;
  144. /// <summary>
  145. ///旋转
  146. /// </summary>
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  148. public float RotationX {
  149. get { return rotationX_; }
  150. set {
  151. rotationX_ = value;
  152. }
  153. }
  154. /// <summary>Field number for the "rotation_y" field.</summary>
  155. public const int RotationYFieldNumber = 7;
  156. private float rotationY_;
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  158. public float RotationY {
  159. get { return rotationY_; }
  160. set {
  161. rotationY_ = value;
  162. }
  163. }
  164. /// <summary>Field number for the "rotation_z" field.</summary>
  165. public const int RotationZFieldNumber = 8;
  166. private float rotationZ_;
  167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  168. public float RotationZ {
  169. get { return rotationZ_; }
  170. set {
  171. rotationZ_ = value;
  172. }
  173. }
  174. /// <summary>Field number for the "rotation_w" field.</summary>
  175. public const int RotationWFieldNumber = 9;
  176. private float rotationW_;
  177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  178. public float RotationW {
  179. get { return rotationW_; }
  180. set {
  181. rotationW_ = value;
  182. }
  183. }
  184. /// <summary>Field number for the "linear_velocity_x" field.</summary>
  185. public const int LinearVelocityXFieldNumber = 10;
  186. private float linearVelocityX_;
  187. /// <summary>
  188. ///线速度
  189. /// </summary>
  190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  191. public float LinearVelocityX {
  192. get { return linearVelocityX_; }
  193. set {
  194. linearVelocityX_ = value;
  195. }
  196. }
  197. /// <summary>Field number for the "linear_velocity_y" field.</summary>
  198. public const int LinearVelocityYFieldNumber = 11;
  199. private float linearVelocityY_;
  200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  201. public float LinearVelocityY {
  202. get { return linearVelocityY_; }
  203. set {
  204. linearVelocityY_ = value;
  205. }
  206. }
  207. /// <summary>Field number for the "linear_velocity_z" field.</summary>
  208. public const int LinearVelocityZFieldNumber = 12;
  209. private float linearVelocityZ_;
  210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  211. public float LinearVelocityZ {
  212. get { return linearVelocityZ_; }
  213. set {
  214. linearVelocityZ_ = value;
  215. }
  216. }
  217. /// <summary>Field number for the "bonePos" field.</summary>
  218. public const int BonePosFieldNumber = 13;
  219. private static readonly pb::FieldCodec<float> _repeated_bonePos_codec
  220. = pb::FieldCodec.ForFloat(106);
  221. private readonly pbc::RepeatedField<float> bonePos_ = new pbc::RepeatedField<float>();
  222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  223. public pbc::RepeatedField<float> BonePos {
  224. get { return bonePos_; }
  225. }
  226. /// <summary>Field number for the "boneRot" field.</summary>
  227. public const int BoneRotFieldNumber = 14;
  228. private static readonly pb::FieldCodec<float> _repeated_boneRot_codec
  229. = pb::FieldCodec.ForFloat(114);
  230. private readonly pbc::RepeatedField<float> boneRot_ = new pbc::RepeatedField<float>();
  231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  232. public pbc::RepeatedField<float> BoneRot {
  233. get { return boneRot_; }
  234. }
  235. /// <summary>Field number for the "jump" field.</summary>
  236. public const int JumpFieldNumber = 15;
  237. private int jump_;
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  239. public int Jump {
  240. get { return jump_; }
  241. set {
  242. jump_ = value;
  243. }
  244. }
  245. /// <summary>Field number for the "down" field.</summary>
  246. public const int DownFieldNumber = 16;
  247. private int down_;
  248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  249. public int Down {
  250. get { return down_; }
  251. set {
  252. down_ = value;
  253. }
  254. }
  255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  256. public override bool Equals(object other) {
  257. return Equals(other as CharacterPackage);
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  260. public bool Equals(CharacterPackage other) {
  261. if (ReferenceEquals(other, null)) {
  262. return false;
  263. }
  264. if (ReferenceEquals(other, this)) {
  265. return true;
  266. }
  267. if (Hand != other.Hand) return false;
  268. if (HandGrab != other.HandGrab) return false;
  269. if (PositionX != other.PositionX) return false;
  270. if (PositionY != other.PositionY) return false;
  271. if (PositionZ != other.PositionZ) return false;
  272. if (RotationX != other.RotationX) return false;
  273. if (RotationY != other.RotationY) return false;
  274. if (RotationZ != other.RotationZ) return false;
  275. if (RotationW != other.RotationW) return false;
  276. if (LinearVelocityX != other.LinearVelocityX) return false;
  277. if (LinearVelocityY != other.LinearVelocityY) return false;
  278. if (LinearVelocityZ != other.LinearVelocityZ) return false;
  279. if(!bonePos_.Equals(other.bonePos_)) return false;
  280. if(!boneRot_.Equals(other.boneRot_)) return false;
  281. if (Jump != other.Jump) return false;
  282. if (Down != other.Down) return false;
  283. return true;
  284. }
  285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  286. public override int GetHashCode() {
  287. int hash = 1;
  288. if (Hand != 0) hash ^= Hand.GetHashCode();
  289. if (HandGrab != 0) hash ^= HandGrab.GetHashCode();
  290. if (PositionX != 0F) hash ^= PositionX.GetHashCode();
  291. if (PositionY != 0F) hash ^= PositionY.GetHashCode();
  292. if (PositionZ != 0F) hash ^= PositionZ.GetHashCode();
  293. if (RotationX != 0F) hash ^= RotationX.GetHashCode();
  294. if (RotationY != 0F) hash ^= RotationY.GetHashCode();
  295. if (RotationZ != 0F) hash ^= RotationZ.GetHashCode();
  296. if (RotationW != 0F) hash ^= RotationW.GetHashCode();
  297. if (LinearVelocityX != 0F) hash ^= LinearVelocityX.GetHashCode();
  298. if (LinearVelocityY != 0F) hash ^= LinearVelocityY.GetHashCode();
  299. if (LinearVelocityZ != 0F) hash ^= LinearVelocityZ.GetHashCode();
  300. hash ^= bonePos_.GetHashCode();
  301. hash ^= boneRot_.GetHashCode();
  302. if (Jump != 0) hash ^= Jump.GetHashCode();
  303. if (Down != 0) hash ^= Down.GetHashCode();
  304. return hash;
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  307. public override string ToString() {
  308. return pb::JsonFormatter.ToDiagnosticString(this);
  309. }
  310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  311. public void WriteTo(pb::CodedOutputStream output) {
  312. if (Hand != 0) {
  313. output.WriteRawTag(8);
  314. output.WriteInt32(Hand);
  315. }
  316. if (HandGrab != 0) {
  317. output.WriteRawTag(16);
  318. output.WriteInt32(HandGrab);
  319. }
  320. if (PositionX != 0F) {
  321. output.WriteRawTag(29);
  322. output.WriteFloat(PositionX);
  323. }
  324. if (PositionY != 0F) {
  325. output.WriteRawTag(37);
  326. output.WriteFloat(PositionY);
  327. }
  328. if (PositionZ != 0F) {
  329. output.WriteRawTag(45);
  330. output.WriteFloat(PositionZ);
  331. }
  332. if (RotationX != 0F) {
  333. output.WriteRawTag(53);
  334. output.WriteFloat(RotationX);
  335. }
  336. if (RotationY != 0F) {
  337. output.WriteRawTag(61);
  338. output.WriteFloat(RotationY);
  339. }
  340. if (RotationZ != 0F) {
  341. output.WriteRawTag(69);
  342. output.WriteFloat(RotationZ);
  343. }
  344. if (RotationW != 0F) {
  345. output.WriteRawTag(77);
  346. output.WriteFloat(RotationW);
  347. }
  348. if (LinearVelocityX != 0F) {
  349. output.WriteRawTag(85);
  350. output.WriteFloat(LinearVelocityX);
  351. }
  352. if (LinearVelocityY != 0F) {
  353. output.WriteRawTag(93);
  354. output.WriteFloat(LinearVelocityY);
  355. }
  356. if (LinearVelocityZ != 0F) {
  357. output.WriteRawTag(101);
  358. output.WriteFloat(LinearVelocityZ);
  359. }
  360. bonePos_.WriteTo(output, _repeated_bonePos_codec);
  361. boneRot_.WriteTo(output, _repeated_boneRot_codec);
  362. if (Jump != 0) {
  363. output.WriteRawTag(120);
  364. output.WriteInt32(Jump);
  365. }
  366. if (Down != 0) {
  367. output.WriteRawTag(128, 1);
  368. output.WriteInt32(Down);
  369. }
  370. }
  371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  372. public int CalculateSize() {
  373. int size = 0;
  374. if (Hand != 0) {
  375. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hand);
  376. }
  377. if (HandGrab != 0) {
  378. size += 1 + pb::CodedOutputStream.ComputeInt32Size(HandGrab);
  379. }
  380. if (PositionX != 0F) {
  381. size += 1 + 4;
  382. }
  383. if (PositionY != 0F) {
  384. size += 1 + 4;
  385. }
  386. if (PositionZ != 0F) {
  387. size += 1 + 4;
  388. }
  389. if (RotationX != 0F) {
  390. size += 1 + 4;
  391. }
  392. if (RotationY != 0F) {
  393. size += 1 + 4;
  394. }
  395. if (RotationZ != 0F) {
  396. size += 1 + 4;
  397. }
  398. if (RotationW != 0F) {
  399. size += 1 + 4;
  400. }
  401. if (LinearVelocityX != 0F) {
  402. size += 1 + 4;
  403. }
  404. if (LinearVelocityY != 0F) {
  405. size += 1 + 4;
  406. }
  407. if (LinearVelocityZ != 0F) {
  408. size += 1 + 4;
  409. }
  410. size += bonePos_.CalculateSize(_repeated_bonePos_codec);
  411. size += boneRot_.CalculateSize(_repeated_boneRot_codec);
  412. if (Jump != 0) {
  413. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Jump);
  414. }
  415. if (Down != 0) {
  416. size += 2 + pb::CodedOutputStream.ComputeInt32Size(Down);
  417. }
  418. return size;
  419. }
  420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  421. public void MergeFrom(CharacterPackage other) {
  422. if (other == null) {
  423. return;
  424. }
  425. if (other.Hand != 0) {
  426. Hand = other.Hand;
  427. }
  428. if (other.HandGrab != 0) {
  429. HandGrab = other.HandGrab;
  430. }
  431. if (other.PositionX != 0F) {
  432. PositionX = other.PositionX;
  433. }
  434. if (other.PositionY != 0F) {
  435. PositionY = other.PositionY;
  436. }
  437. if (other.PositionZ != 0F) {
  438. PositionZ = other.PositionZ;
  439. }
  440. if (other.RotationX != 0F) {
  441. RotationX = other.RotationX;
  442. }
  443. if (other.RotationY != 0F) {
  444. RotationY = other.RotationY;
  445. }
  446. if (other.RotationZ != 0F) {
  447. RotationZ = other.RotationZ;
  448. }
  449. if (other.RotationW != 0F) {
  450. RotationW = other.RotationW;
  451. }
  452. if (other.LinearVelocityX != 0F) {
  453. LinearVelocityX = other.LinearVelocityX;
  454. }
  455. if (other.LinearVelocityY != 0F) {
  456. LinearVelocityY = other.LinearVelocityY;
  457. }
  458. if (other.LinearVelocityZ != 0F) {
  459. LinearVelocityZ = other.LinearVelocityZ;
  460. }
  461. bonePos_.Add(other.bonePos_);
  462. boneRot_.Add(other.boneRot_);
  463. if (other.Jump != 0) {
  464. Jump = other.Jump;
  465. }
  466. if (other.Down != 0) {
  467. Down = other.Down;
  468. }
  469. }
  470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  471. public void MergeFrom(pb::CodedInputStream input) {
  472. uint tag;
  473. while ((tag = input.ReadTag()) != 0) {
  474. switch(tag) {
  475. default:
  476. input.SkipLastField();
  477. break;
  478. case 8: {
  479. Hand = input.ReadInt32();
  480. break;
  481. }
  482. case 16: {
  483. HandGrab = input.ReadInt32();
  484. break;
  485. }
  486. case 29: {
  487. PositionX = input.ReadFloat();
  488. break;
  489. }
  490. case 37: {
  491. PositionY = input.ReadFloat();
  492. break;
  493. }
  494. case 45: {
  495. PositionZ = input.ReadFloat();
  496. break;
  497. }
  498. case 53: {
  499. RotationX = input.ReadFloat();
  500. break;
  501. }
  502. case 61: {
  503. RotationY = input.ReadFloat();
  504. break;
  505. }
  506. case 69: {
  507. RotationZ = input.ReadFloat();
  508. break;
  509. }
  510. case 77: {
  511. RotationW = input.ReadFloat();
  512. break;
  513. }
  514. case 85: {
  515. LinearVelocityX = input.ReadFloat();
  516. break;
  517. }
  518. case 93: {
  519. LinearVelocityY = input.ReadFloat();
  520. break;
  521. }
  522. case 101: {
  523. LinearVelocityZ = input.ReadFloat();
  524. break;
  525. }
  526. case 106:
  527. case 109: {
  528. bonePos_.AddEntriesFrom(input, _repeated_bonePos_codec);
  529. break;
  530. }
  531. case 114:
  532. case 117: {
  533. boneRot_.AddEntriesFrom(input, _repeated_boneRot_codec);
  534. break;
  535. }
  536. case 120: {
  537. Jump = input.ReadInt32();
  538. break;
  539. }
  540. case 128: {
  541. Down = input.ReadInt32();
  542. break;
  543. }
  544. }
  545. }
  546. }
  547. }
  548. public sealed partial class BoxPackage : pb::IMessage<BoxPackage> {
  549. private static readonly pb::MessageParser<BoxPackage> _parser = new pb::MessageParser<BoxPackage>(() => new BoxPackage());
  550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  551. public static pb::MessageParser<BoxPackage> Parser { get { return _parser; } }
  552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  553. public static pbr::MessageDescriptor Descriptor {
  554. get { return global::Protos.FrontReflection.Descriptor.MessageTypes[1]; }
  555. }
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  557. pbr::MessageDescriptor pb::IMessage.Descriptor {
  558. get { return Descriptor; }
  559. }
  560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  561. public BoxPackage() {
  562. OnConstruction();
  563. }
  564. partial void OnConstruction();
  565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  566. public BoxPackage(BoxPackage other) : this() {
  567. effectId_ = other.effectId_;
  568. holdId_ = other.holdId_;
  569. positionX_ = other.positionX_;
  570. positionY_ = other.positionY_;
  571. positionZ_ = other.positionZ_;
  572. rotationX_ = other.rotationX_;
  573. rotationY_ = other.rotationY_;
  574. rotationZ_ = other.rotationZ_;
  575. rotationW_ = other.rotationW_;
  576. linearVelocityX_ = other.linearVelocityX_;
  577. linearVelocityY_ = other.linearVelocityY_;
  578. linearVelocityZ_ = other.linearVelocityZ_;
  579. angleVelocityX_ = other.angleVelocityX_;
  580. angleVelocityY_ = other.angleVelocityY_;
  581. angleVelocityZ_ = other.angleVelocityZ_;
  582. extraSet_ = other.extraSet_;
  583. }
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  585. public BoxPackage Clone() {
  586. return new BoxPackage(this);
  587. }
  588. /// <summary>Field number for the "effect_id" field.</summary>
  589. public const int EffectIdFieldNumber = 1;
  590. private int effectId_;
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  592. public int EffectId {
  593. get { return effectId_; }
  594. set {
  595. effectId_ = value;
  596. }
  597. }
  598. /// <summary>Field number for the "hold_id" field.</summary>
  599. public const int HoldIdFieldNumber = 2;
  600. private int holdId_;
  601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  602. public int HoldId {
  603. get { return holdId_; }
  604. set {
  605. holdId_ = value;
  606. }
  607. }
  608. /// <summary>Field number for the "position_x" field.</summary>
  609. public const int PositionXFieldNumber = 3;
  610. private float positionX_;
  611. /// <summary>
  612. ///坐标
  613. /// </summary>
  614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  615. public float PositionX {
  616. get { return positionX_; }
  617. set {
  618. positionX_ = value;
  619. }
  620. }
  621. /// <summary>Field number for the "position_y" field.</summary>
  622. public const int PositionYFieldNumber = 4;
  623. private float positionY_;
  624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  625. public float PositionY {
  626. get { return positionY_; }
  627. set {
  628. positionY_ = value;
  629. }
  630. }
  631. /// <summary>Field number for the "position_z" field.</summary>
  632. public const int PositionZFieldNumber = 5;
  633. private float positionZ_;
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  635. public float PositionZ {
  636. get { return positionZ_; }
  637. set {
  638. positionZ_ = value;
  639. }
  640. }
  641. /// <summary>Field number for the "rotation_x" field.</summary>
  642. public const int RotationXFieldNumber = 6;
  643. private float rotationX_;
  644. /// <summary>
  645. ///旋转
  646. /// </summary>
  647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  648. public float RotationX {
  649. get { return rotationX_; }
  650. set {
  651. rotationX_ = value;
  652. }
  653. }
  654. /// <summary>Field number for the "rotation_y" field.</summary>
  655. public const int RotationYFieldNumber = 7;
  656. private float rotationY_;
  657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  658. public float RotationY {
  659. get { return rotationY_; }
  660. set {
  661. rotationY_ = value;
  662. }
  663. }
  664. /// <summary>Field number for the "rotation_z" field.</summary>
  665. public const int RotationZFieldNumber = 8;
  666. private float rotationZ_;
  667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  668. public float RotationZ {
  669. get { return rotationZ_; }
  670. set {
  671. rotationZ_ = value;
  672. }
  673. }
  674. /// <summary>Field number for the "rotation_w" field.</summary>
  675. public const int RotationWFieldNumber = 9;
  676. private float rotationW_;
  677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  678. public float RotationW {
  679. get { return rotationW_; }
  680. set {
  681. rotationW_ = value;
  682. }
  683. }
  684. /// <summary>Field number for the "linear_velocity_x" field.</summary>
  685. public const int LinearVelocityXFieldNumber = 10;
  686. private float linearVelocityX_;
  687. /// <summary>
  688. ///线速度
  689. /// </summary>
  690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  691. public float LinearVelocityX {
  692. get { return linearVelocityX_; }
  693. set {
  694. linearVelocityX_ = value;
  695. }
  696. }
  697. /// <summary>Field number for the "linear_velocity_y" field.</summary>
  698. public const int LinearVelocityYFieldNumber = 11;
  699. private float linearVelocityY_;
  700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  701. public float LinearVelocityY {
  702. get { return linearVelocityY_; }
  703. set {
  704. linearVelocityY_ = value;
  705. }
  706. }
  707. /// <summary>Field number for the "linear_velocity_z" field.</summary>
  708. public const int LinearVelocityZFieldNumber = 12;
  709. private float linearVelocityZ_;
  710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  711. public float LinearVelocityZ {
  712. get { return linearVelocityZ_; }
  713. set {
  714. linearVelocityZ_ = value;
  715. }
  716. }
  717. /// <summary>Field number for the "angle_velocity_x" field.</summary>
  718. public const int AngleVelocityXFieldNumber = 13;
  719. private float angleVelocityX_;
  720. /// <summary>
  721. ///角速度
  722. /// </summary>
  723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  724. public float AngleVelocityX {
  725. get { return angleVelocityX_; }
  726. set {
  727. angleVelocityX_ = value;
  728. }
  729. }
  730. /// <summary>Field number for the "angle_velocity_y" field.</summary>
  731. public const int AngleVelocityYFieldNumber = 14;
  732. private float angleVelocityY_;
  733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  734. public float AngleVelocityY {
  735. get { return angleVelocityY_; }
  736. set {
  737. angleVelocityY_ = value;
  738. }
  739. }
  740. /// <summary>Field number for the "angle_velocity_z" field.</summary>
  741. public const int AngleVelocityZFieldNumber = 15;
  742. private float angleVelocityZ_;
  743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  744. public float AngleVelocityZ {
  745. get { return angleVelocityZ_; }
  746. set {
  747. angleVelocityZ_ = value;
  748. }
  749. }
  750. /// <summary>Field number for the "extraSet" field.</summary>
  751. public const int ExtraSetFieldNumber = 16;
  752. private string extraSet_ = "";
  753. /// <summary>
  754. ///额外设置
  755. /// </summary>
  756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  757. public string ExtraSet {
  758. get { return extraSet_; }
  759. set {
  760. extraSet_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  761. }
  762. }
  763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  764. public override bool Equals(object other) {
  765. return Equals(other as BoxPackage);
  766. }
  767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  768. public bool Equals(BoxPackage other) {
  769. if (ReferenceEquals(other, null)) {
  770. return false;
  771. }
  772. if (ReferenceEquals(other, this)) {
  773. return true;
  774. }
  775. if (EffectId != other.EffectId) return false;
  776. if (HoldId != other.HoldId) return false;
  777. if (PositionX != other.PositionX) return false;
  778. if (PositionY != other.PositionY) return false;
  779. if (PositionZ != other.PositionZ) return false;
  780. if (RotationX != other.RotationX) return false;
  781. if (RotationY != other.RotationY) return false;
  782. if (RotationZ != other.RotationZ) return false;
  783. if (RotationW != other.RotationW) return false;
  784. if (LinearVelocityX != other.LinearVelocityX) return false;
  785. if (LinearVelocityY != other.LinearVelocityY) return false;
  786. if (LinearVelocityZ != other.LinearVelocityZ) return false;
  787. if (AngleVelocityX != other.AngleVelocityX) return false;
  788. if (AngleVelocityY != other.AngleVelocityY) return false;
  789. if (AngleVelocityZ != other.AngleVelocityZ) return false;
  790. if (ExtraSet != other.ExtraSet) return false;
  791. return true;
  792. }
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  794. public override int GetHashCode() {
  795. int hash = 1;
  796. if (EffectId != 0) hash ^= EffectId.GetHashCode();
  797. if (HoldId != 0) hash ^= HoldId.GetHashCode();
  798. if (PositionX != 0F) hash ^= PositionX.GetHashCode();
  799. if (PositionY != 0F) hash ^= PositionY.GetHashCode();
  800. if (PositionZ != 0F) hash ^= PositionZ.GetHashCode();
  801. if (RotationX != 0F) hash ^= RotationX.GetHashCode();
  802. if (RotationY != 0F) hash ^= RotationY.GetHashCode();
  803. if (RotationZ != 0F) hash ^= RotationZ.GetHashCode();
  804. if (RotationW != 0F) hash ^= RotationW.GetHashCode();
  805. if (LinearVelocityX != 0F) hash ^= LinearVelocityX.GetHashCode();
  806. if (LinearVelocityY != 0F) hash ^= LinearVelocityY.GetHashCode();
  807. if (LinearVelocityZ != 0F) hash ^= LinearVelocityZ.GetHashCode();
  808. if (AngleVelocityX != 0F) hash ^= AngleVelocityX.GetHashCode();
  809. if (AngleVelocityY != 0F) hash ^= AngleVelocityY.GetHashCode();
  810. if (AngleVelocityZ != 0F) hash ^= AngleVelocityZ.GetHashCode();
  811. if (ExtraSet.Length != 0) hash ^= ExtraSet.GetHashCode();
  812. return hash;
  813. }
  814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  815. public override string ToString() {
  816. return pb::JsonFormatter.ToDiagnosticString(this);
  817. }
  818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  819. public void WriteTo(pb::CodedOutputStream output) {
  820. if (EffectId != 0) {
  821. output.WriteRawTag(8);
  822. output.WriteInt32(EffectId);
  823. }
  824. if (HoldId != 0) {
  825. output.WriteRawTag(16);
  826. output.WriteInt32(HoldId);
  827. }
  828. if (PositionX != 0F) {
  829. output.WriteRawTag(29);
  830. output.WriteFloat(PositionX);
  831. }
  832. if (PositionY != 0F) {
  833. output.WriteRawTag(37);
  834. output.WriteFloat(PositionY);
  835. }
  836. if (PositionZ != 0F) {
  837. output.WriteRawTag(45);
  838. output.WriteFloat(PositionZ);
  839. }
  840. if (RotationX != 0F) {
  841. output.WriteRawTag(53);
  842. output.WriteFloat(RotationX);
  843. }
  844. if (RotationY != 0F) {
  845. output.WriteRawTag(61);
  846. output.WriteFloat(RotationY);
  847. }
  848. if (RotationZ != 0F) {
  849. output.WriteRawTag(69);
  850. output.WriteFloat(RotationZ);
  851. }
  852. if (RotationW != 0F) {
  853. output.WriteRawTag(77);
  854. output.WriteFloat(RotationW);
  855. }
  856. if (LinearVelocityX != 0F) {
  857. output.WriteRawTag(85);
  858. output.WriteFloat(LinearVelocityX);
  859. }
  860. if (LinearVelocityY != 0F) {
  861. output.WriteRawTag(93);
  862. output.WriteFloat(LinearVelocityY);
  863. }
  864. if (LinearVelocityZ != 0F) {
  865. output.WriteRawTag(101);
  866. output.WriteFloat(LinearVelocityZ);
  867. }
  868. if (AngleVelocityX != 0F) {
  869. output.WriteRawTag(109);
  870. output.WriteFloat(AngleVelocityX);
  871. }
  872. if (AngleVelocityY != 0F) {
  873. output.WriteRawTag(117);
  874. output.WriteFloat(AngleVelocityY);
  875. }
  876. if (AngleVelocityZ != 0F) {
  877. output.WriteRawTag(125);
  878. output.WriteFloat(AngleVelocityZ);
  879. }
  880. if (ExtraSet.Length != 0) {
  881. output.WriteRawTag(130, 1);
  882. output.WriteString(ExtraSet);
  883. }
  884. }
  885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  886. public int CalculateSize() {
  887. int size = 0;
  888. if (EffectId != 0) {
  889. size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectId);
  890. }
  891. if (HoldId != 0) {
  892. size += 1 + pb::CodedOutputStream.ComputeInt32Size(HoldId);
  893. }
  894. if (PositionX != 0F) {
  895. size += 1 + 4;
  896. }
  897. if (PositionY != 0F) {
  898. size += 1 + 4;
  899. }
  900. if (PositionZ != 0F) {
  901. size += 1 + 4;
  902. }
  903. if (RotationX != 0F) {
  904. size += 1 + 4;
  905. }
  906. if (RotationY != 0F) {
  907. size += 1 + 4;
  908. }
  909. if (RotationZ != 0F) {
  910. size += 1 + 4;
  911. }
  912. if (RotationW != 0F) {
  913. size += 1 + 4;
  914. }
  915. if (LinearVelocityX != 0F) {
  916. size += 1 + 4;
  917. }
  918. if (LinearVelocityY != 0F) {
  919. size += 1 + 4;
  920. }
  921. if (LinearVelocityZ != 0F) {
  922. size += 1 + 4;
  923. }
  924. if (AngleVelocityX != 0F) {
  925. size += 1 + 4;
  926. }
  927. if (AngleVelocityY != 0F) {
  928. size += 1 + 4;
  929. }
  930. if (AngleVelocityZ != 0F) {
  931. size += 1 + 4;
  932. }
  933. if (ExtraSet.Length != 0) {
  934. size += 2 + pb::CodedOutputStream.ComputeStringSize(ExtraSet);
  935. }
  936. return size;
  937. }
  938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  939. public void MergeFrom(BoxPackage other) {
  940. if (other == null) {
  941. return;
  942. }
  943. if (other.EffectId != 0) {
  944. EffectId = other.EffectId;
  945. }
  946. if (other.HoldId != 0) {
  947. HoldId = other.HoldId;
  948. }
  949. if (other.PositionX != 0F) {
  950. PositionX = other.PositionX;
  951. }
  952. if (other.PositionY != 0F) {
  953. PositionY = other.PositionY;
  954. }
  955. if (other.PositionZ != 0F) {
  956. PositionZ = other.PositionZ;
  957. }
  958. if (other.RotationX != 0F) {
  959. RotationX = other.RotationX;
  960. }
  961. if (other.RotationY != 0F) {
  962. RotationY = other.RotationY;
  963. }
  964. if (other.RotationZ != 0F) {
  965. RotationZ = other.RotationZ;
  966. }
  967. if (other.RotationW != 0F) {
  968. RotationW = other.RotationW;
  969. }
  970. if (other.LinearVelocityX != 0F) {
  971. LinearVelocityX = other.LinearVelocityX;
  972. }
  973. if (other.LinearVelocityY != 0F) {
  974. LinearVelocityY = other.LinearVelocityY;
  975. }
  976. if (other.LinearVelocityZ != 0F) {
  977. LinearVelocityZ = other.LinearVelocityZ;
  978. }
  979. if (other.AngleVelocityX != 0F) {
  980. AngleVelocityX = other.AngleVelocityX;
  981. }
  982. if (other.AngleVelocityY != 0F) {
  983. AngleVelocityY = other.AngleVelocityY;
  984. }
  985. if (other.AngleVelocityZ != 0F) {
  986. AngleVelocityZ = other.AngleVelocityZ;
  987. }
  988. if (other.ExtraSet.Length != 0) {
  989. ExtraSet = other.ExtraSet;
  990. }
  991. }
  992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  993. public void MergeFrom(pb::CodedInputStream input) {
  994. uint tag;
  995. while ((tag = input.ReadTag()) != 0) {
  996. switch(tag) {
  997. default:
  998. input.SkipLastField();
  999. break;
  1000. case 8: {
  1001. EffectId = input.ReadInt32();
  1002. break;
  1003. }
  1004. case 16: {
  1005. HoldId = input.ReadInt32();
  1006. break;
  1007. }
  1008. case 29: {
  1009. PositionX = input.ReadFloat();
  1010. break;
  1011. }
  1012. case 37: {
  1013. PositionY = input.ReadFloat();
  1014. break;
  1015. }
  1016. case 45: {
  1017. PositionZ = input.ReadFloat();
  1018. break;
  1019. }
  1020. case 53: {
  1021. RotationX = input.ReadFloat();
  1022. break;
  1023. }
  1024. case 61: {
  1025. RotationY = input.ReadFloat();
  1026. break;
  1027. }
  1028. case 69: {
  1029. RotationZ = input.ReadFloat();
  1030. break;
  1031. }
  1032. case 77: {
  1033. RotationW = input.ReadFloat();
  1034. break;
  1035. }
  1036. case 85: {
  1037. LinearVelocityX = input.ReadFloat();
  1038. break;
  1039. }
  1040. case 93: {
  1041. LinearVelocityY = input.ReadFloat();
  1042. break;
  1043. }
  1044. case 101: {
  1045. LinearVelocityZ = input.ReadFloat();
  1046. break;
  1047. }
  1048. case 109: {
  1049. AngleVelocityX = input.ReadFloat();
  1050. break;
  1051. }
  1052. case 117: {
  1053. AngleVelocityY = input.ReadFloat();
  1054. break;
  1055. }
  1056. case 125: {
  1057. AngleVelocityZ = input.ReadFloat();
  1058. break;
  1059. }
  1060. case 130: {
  1061. ExtraSet = input.ReadString();
  1062. break;
  1063. }
  1064. }
  1065. }
  1066. }
  1067. }
  1068. #endregion
  1069. }
  1070. #endregion Designer generated code