Front.cs 33 KB

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