Front.cs 34 KB

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