Front.cs 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140
  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. "B2JvbmVSb3QYDiADKAISDAoEanVtcBgPIAEoBRIMCgRkb3duGBAgASgFIs4B",
  29. "CgpCb3hQYWNrYWdlEhEKCWVmZmVjdF9pZBgBIAEoBRIPCgdob2xkX2lkGAIg",
  30. "ASgFEhIKCnBvc2l0aW9uX3gYAyABKAISEgoKcG9zaXRpb25feRgEIAEoAhIS",
  31. "Cgpwb3NpdGlvbl96GAUgASgCEhIKCnJvdGF0aW9uX3gYBiABKAISEgoKcm90",
  32. "YXRpb25feRgHIAEoAhISCgpyb3RhdGlvbl96GAggASgCEhIKCnJvdGF0aW9u",
  33. "X3cYCSABKAISEAoIZXh0cmFTZXQYCiABKAkiRgoMRXZlbnRQYWNrYWdlEhEK",
  34. "CWV2ZW50Y29kZRgBIAEoBRIOCgZpc3Nob3cYAiABKAgSEwoLZXh0cmFQYXJh",
  35. "bXMYAyABKAliBnByb3RvMw=="));
  36. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  37. new pbr::FileDescriptor[] { },
  38. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  39. 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),
  40. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.BoxPackage), global::Protos.BoxPackage.Parser, new[]{ "EffectId", "HoldId", "PositionX", "PositionY", "PositionZ", "RotationX", "RotationY", "RotationZ", "RotationW", "ExtraSet" }, null, null, null),
  41. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.EventPackage), global::Protos.EventPackage.Parser, new[]{ "Eventcode", "Isshow", "ExtraParams" }, 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. extraSet_ = other.extraSet_;
  576. }
  577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  578. public BoxPackage Clone() {
  579. return new BoxPackage(this);
  580. }
  581. /// <summary>Field number for the "effect_id" field.</summary>
  582. public const int EffectIdFieldNumber = 1;
  583. private int effectId_;
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  585. public int EffectId {
  586. get { return effectId_; }
  587. set {
  588. effectId_ = value;
  589. }
  590. }
  591. /// <summary>Field number for the "hold_id" field.</summary>
  592. public const int HoldIdFieldNumber = 2;
  593. private int holdId_;
  594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  595. public int HoldId {
  596. get { return holdId_; }
  597. set {
  598. holdId_ = value;
  599. }
  600. }
  601. /// <summary>Field number for the "position_x" field.</summary>
  602. public const int PositionXFieldNumber = 3;
  603. private float positionX_;
  604. /// <summary>
  605. ///坐标
  606. /// </summary>
  607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  608. public float PositionX {
  609. get { return positionX_; }
  610. set {
  611. positionX_ = value;
  612. }
  613. }
  614. /// <summary>Field number for the "position_y" field.</summary>
  615. public const int PositionYFieldNumber = 4;
  616. private float positionY_;
  617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  618. public float PositionY {
  619. get { return positionY_; }
  620. set {
  621. positionY_ = value;
  622. }
  623. }
  624. /// <summary>Field number for the "position_z" field.</summary>
  625. public const int PositionZFieldNumber = 5;
  626. private float positionZ_;
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  628. public float PositionZ {
  629. get { return positionZ_; }
  630. set {
  631. positionZ_ = value;
  632. }
  633. }
  634. /// <summary>Field number for the "rotation_x" field.</summary>
  635. public const int RotationXFieldNumber = 6;
  636. private float rotationX_;
  637. /// <summary>
  638. ///旋转
  639. /// </summary>
  640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  641. public float RotationX {
  642. get { return rotationX_; }
  643. set {
  644. rotationX_ = value;
  645. }
  646. }
  647. /// <summary>Field number for the "rotation_y" field.</summary>
  648. public const int RotationYFieldNumber = 7;
  649. private float rotationY_;
  650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  651. public float RotationY {
  652. get { return rotationY_; }
  653. set {
  654. rotationY_ = value;
  655. }
  656. }
  657. /// <summary>Field number for the "rotation_z" field.</summary>
  658. public const int RotationZFieldNumber = 8;
  659. private float rotationZ_;
  660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  661. public float RotationZ {
  662. get { return rotationZ_; }
  663. set {
  664. rotationZ_ = value;
  665. }
  666. }
  667. /// <summary>Field number for the "rotation_w" field.</summary>
  668. public const int RotationWFieldNumber = 9;
  669. private float rotationW_;
  670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  671. public float RotationW {
  672. get { return rotationW_; }
  673. set {
  674. rotationW_ = value;
  675. }
  676. }
  677. /// <summary>Field number for the "extraSet" field.</summary>
  678. public const int ExtraSetFieldNumber = 10;
  679. private string extraSet_ = "";
  680. /// <summary>
  681. ///额外设置
  682. /// </summary>
  683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  684. public string ExtraSet {
  685. get { return extraSet_; }
  686. set {
  687. extraSet_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  688. }
  689. }
  690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  691. public override bool Equals(object other) {
  692. return Equals(other as BoxPackage);
  693. }
  694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  695. public bool Equals(BoxPackage other) {
  696. if (ReferenceEquals(other, null)) {
  697. return false;
  698. }
  699. if (ReferenceEquals(other, this)) {
  700. return true;
  701. }
  702. if (EffectId != other.EffectId) return false;
  703. if (HoldId != other.HoldId) return false;
  704. if (PositionX != other.PositionX) return false;
  705. if (PositionY != other.PositionY) return false;
  706. if (PositionZ != other.PositionZ) return false;
  707. if (RotationX != other.RotationX) return false;
  708. if (RotationY != other.RotationY) return false;
  709. if (RotationZ != other.RotationZ) return false;
  710. if (RotationW != other.RotationW) return false;
  711. if (ExtraSet != other.ExtraSet) return false;
  712. return true;
  713. }
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  715. public override int GetHashCode() {
  716. int hash = 1;
  717. if (EffectId != 0) hash ^= EffectId.GetHashCode();
  718. if (HoldId != 0) hash ^= HoldId.GetHashCode();
  719. if (PositionX != 0F) hash ^= PositionX.GetHashCode();
  720. if (PositionY != 0F) hash ^= PositionY.GetHashCode();
  721. if (PositionZ != 0F) hash ^= PositionZ.GetHashCode();
  722. if (RotationX != 0F) hash ^= RotationX.GetHashCode();
  723. if (RotationY != 0F) hash ^= RotationY.GetHashCode();
  724. if (RotationZ != 0F) hash ^= RotationZ.GetHashCode();
  725. if (RotationW != 0F) hash ^= RotationW.GetHashCode();
  726. if (ExtraSet.Length != 0) hash ^= ExtraSet.GetHashCode();
  727. return hash;
  728. }
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  730. public override string ToString() {
  731. return pb::JsonFormatter.ToDiagnosticString(this);
  732. }
  733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  734. public void WriteTo(pb::CodedOutputStream output) {
  735. if (EffectId != 0) {
  736. output.WriteRawTag(8);
  737. output.WriteInt32(EffectId);
  738. }
  739. if (HoldId != 0) {
  740. output.WriteRawTag(16);
  741. output.WriteInt32(HoldId);
  742. }
  743. if (PositionX != 0F) {
  744. output.WriteRawTag(29);
  745. output.WriteFloat(PositionX);
  746. }
  747. if (PositionY != 0F) {
  748. output.WriteRawTag(37);
  749. output.WriteFloat(PositionY);
  750. }
  751. if (PositionZ != 0F) {
  752. output.WriteRawTag(45);
  753. output.WriteFloat(PositionZ);
  754. }
  755. if (RotationX != 0F) {
  756. output.WriteRawTag(53);
  757. output.WriteFloat(RotationX);
  758. }
  759. if (RotationY != 0F) {
  760. output.WriteRawTag(61);
  761. output.WriteFloat(RotationY);
  762. }
  763. if (RotationZ != 0F) {
  764. output.WriteRawTag(69);
  765. output.WriteFloat(RotationZ);
  766. }
  767. if (RotationW != 0F) {
  768. output.WriteRawTag(77);
  769. output.WriteFloat(RotationW);
  770. }
  771. if (ExtraSet.Length != 0) {
  772. output.WriteRawTag(82);
  773. output.WriteString(ExtraSet);
  774. }
  775. }
  776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  777. public int CalculateSize() {
  778. int size = 0;
  779. if (EffectId != 0) {
  780. size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectId);
  781. }
  782. if (HoldId != 0) {
  783. size += 1 + pb::CodedOutputStream.ComputeInt32Size(HoldId);
  784. }
  785. if (PositionX != 0F) {
  786. size += 1 + 4;
  787. }
  788. if (PositionY != 0F) {
  789. size += 1 + 4;
  790. }
  791. if (PositionZ != 0F) {
  792. size += 1 + 4;
  793. }
  794. if (RotationX != 0F) {
  795. size += 1 + 4;
  796. }
  797. if (RotationY != 0F) {
  798. size += 1 + 4;
  799. }
  800. if (RotationZ != 0F) {
  801. size += 1 + 4;
  802. }
  803. if (RotationW != 0F) {
  804. size += 1 + 4;
  805. }
  806. if (ExtraSet.Length != 0) {
  807. size += 1 + pb::CodedOutputStream.ComputeStringSize(ExtraSet);
  808. }
  809. return size;
  810. }
  811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  812. public void MergeFrom(BoxPackage other) {
  813. if (other == null) {
  814. return;
  815. }
  816. if (other.EffectId != 0) {
  817. EffectId = other.EffectId;
  818. }
  819. if (other.HoldId != 0) {
  820. HoldId = other.HoldId;
  821. }
  822. if (other.PositionX != 0F) {
  823. PositionX = other.PositionX;
  824. }
  825. if (other.PositionY != 0F) {
  826. PositionY = other.PositionY;
  827. }
  828. if (other.PositionZ != 0F) {
  829. PositionZ = other.PositionZ;
  830. }
  831. if (other.RotationX != 0F) {
  832. RotationX = other.RotationX;
  833. }
  834. if (other.RotationY != 0F) {
  835. RotationY = other.RotationY;
  836. }
  837. if (other.RotationZ != 0F) {
  838. RotationZ = other.RotationZ;
  839. }
  840. if (other.RotationW != 0F) {
  841. RotationW = other.RotationW;
  842. }
  843. if (other.ExtraSet.Length != 0) {
  844. ExtraSet = other.ExtraSet;
  845. }
  846. }
  847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  848. public void MergeFrom(pb::CodedInputStream input) {
  849. uint tag;
  850. while ((tag = input.ReadTag()) != 0) {
  851. switch(tag) {
  852. default:
  853. input.SkipLastField();
  854. break;
  855. case 8: {
  856. EffectId = input.ReadInt32();
  857. break;
  858. }
  859. case 16: {
  860. HoldId = input.ReadInt32();
  861. break;
  862. }
  863. case 29: {
  864. PositionX = input.ReadFloat();
  865. break;
  866. }
  867. case 37: {
  868. PositionY = input.ReadFloat();
  869. break;
  870. }
  871. case 45: {
  872. PositionZ = input.ReadFloat();
  873. break;
  874. }
  875. case 53: {
  876. RotationX = input.ReadFloat();
  877. break;
  878. }
  879. case 61: {
  880. RotationY = input.ReadFloat();
  881. break;
  882. }
  883. case 69: {
  884. RotationZ = input.ReadFloat();
  885. break;
  886. }
  887. case 77: {
  888. RotationW = input.ReadFloat();
  889. break;
  890. }
  891. case 82: {
  892. ExtraSet = input.ReadString();
  893. break;
  894. }
  895. }
  896. }
  897. }
  898. }
  899. public sealed partial class EventPackage : pb::IMessage<EventPackage> {
  900. private static readonly pb::MessageParser<EventPackage> _parser = new pb::MessageParser<EventPackage>(() => new EventPackage());
  901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  902. public static pb::MessageParser<EventPackage> Parser { get { return _parser; } }
  903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  904. public static pbr::MessageDescriptor Descriptor {
  905. get { return global::Protos.FrontReflection.Descriptor.MessageTypes[2]; }
  906. }
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  908. pbr::MessageDescriptor pb::IMessage.Descriptor {
  909. get { return Descriptor; }
  910. }
  911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  912. public EventPackage() {
  913. OnConstruction();
  914. }
  915. partial void OnConstruction();
  916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  917. public EventPackage(EventPackage other) : this() {
  918. eventcode_ = other.eventcode_;
  919. isshow_ = other.isshow_;
  920. extraParams_ = other.extraParams_;
  921. }
  922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  923. public EventPackage Clone() {
  924. return new EventPackage(this);
  925. }
  926. /// <summary>Field number for the "eventcode" field.</summary>
  927. public const int EventcodeFieldNumber = 1;
  928. private int eventcode_;
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  930. public int Eventcode {
  931. get { return eventcode_; }
  932. set {
  933. eventcode_ = value;
  934. }
  935. }
  936. /// <summary>Field number for the "isshow" field.</summary>
  937. public const int IsshowFieldNumber = 2;
  938. private bool isshow_;
  939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  940. public bool Isshow {
  941. get { return isshow_; }
  942. set {
  943. isshow_ = value;
  944. }
  945. }
  946. /// <summary>Field number for the "extraParams" field.</summary>
  947. public const int ExtraParamsFieldNumber = 3;
  948. private string extraParams_ = "";
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  950. public string ExtraParams {
  951. get { return extraParams_; }
  952. set {
  953. extraParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  954. }
  955. }
  956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  957. public override bool Equals(object other) {
  958. return Equals(other as EventPackage);
  959. }
  960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  961. public bool Equals(EventPackage other) {
  962. if (ReferenceEquals(other, null)) {
  963. return false;
  964. }
  965. if (ReferenceEquals(other, this)) {
  966. return true;
  967. }
  968. if (Eventcode != other.Eventcode) return false;
  969. if (Isshow != other.Isshow) return false;
  970. if (ExtraParams != other.ExtraParams) return false;
  971. return true;
  972. }
  973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  974. public override int GetHashCode() {
  975. int hash = 1;
  976. if (Eventcode != 0) hash ^= Eventcode.GetHashCode();
  977. if (Isshow != false) hash ^= Isshow.GetHashCode();
  978. if (ExtraParams.Length != 0) hash ^= ExtraParams.GetHashCode();
  979. return hash;
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  982. public override string ToString() {
  983. return pb::JsonFormatter.ToDiagnosticString(this);
  984. }
  985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  986. public void WriteTo(pb::CodedOutputStream output) {
  987. if (Eventcode != 0) {
  988. output.WriteRawTag(8);
  989. output.WriteInt32(Eventcode);
  990. }
  991. if (Isshow != false) {
  992. output.WriteRawTag(16);
  993. output.WriteBool(Isshow);
  994. }
  995. if (ExtraParams.Length != 0) {
  996. output.WriteRawTag(26);
  997. output.WriteString(ExtraParams);
  998. }
  999. }
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1001. public int CalculateSize() {
  1002. int size = 0;
  1003. if (Eventcode != 0) {
  1004. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Eventcode);
  1005. }
  1006. if (Isshow != false) {
  1007. size += 1 + 1;
  1008. }
  1009. if (ExtraParams.Length != 0) {
  1010. size += 1 + pb::CodedOutputStream.ComputeStringSize(ExtraParams);
  1011. }
  1012. return size;
  1013. }
  1014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1015. public void MergeFrom(EventPackage other) {
  1016. if (other == null) {
  1017. return;
  1018. }
  1019. if (other.Eventcode != 0) {
  1020. Eventcode = other.Eventcode;
  1021. }
  1022. if (other.Isshow != false) {
  1023. Isshow = other.Isshow;
  1024. }
  1025. if (other.ExtraParams.Length != 0) {
  1026. ExtraParams = other.ExtraParams;
  1027. }
  1028. }
  1029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1030. public void MergeFrom(pb::CodedInputStream input) {
  1031. uint tag;
  1032. while ((tag = input.ReadTag()) != 0) {
  1033. switch(tag) {
  1034. default:
  1035. input.SkipLastField();
  1036. break;
  1037. case 8: {
  1038. Eventcode = input.ReadInt32();
  1039. break;
  1040. }
  1041. case 16: {
  1042. Isshow = input.ReadBool();
  1043. break;
  1044. }
  1045. case 26: {
  1046. ExtraParams = input.ReadString();
  1047. break;
  1048. }
  1049. }
  1050. }
  1051. }
  1052. }
  1053. #endregion
  1054. }
  1055. #endregion Designer generated code