Front.cs 42 KB

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