12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: front.proto
- #pragma warning disable 1591, 0612, 3021
- #region Designer generated code
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using pbr = global::Google.Protobuf.Reflection;
- using scg = global::System.Collections.Generic;
- namespace Protos {
- /// <summary>Holder for reflection information generated from front.proto</summary>
- public static partial class FrontReflection {
- #region Descriptor
- /// <summary>File descriptor for front.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
- static FrontReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cgtmcm9udC5wcm90bxIGcHJvdG9zIs0CChBDaGFyYWN0ZXJQYWNrYWdlEgwK",
- "BGhhbmQYASABKAUSEAoIaGFuZEdyYWIYAiABKAUSEgoKcG9zaXRpb25feBgD",
- "IAEoAhISCgpwb3NpdGlvbl95GAQgASgCEhIKCnBvc2l0aW9uX3oYBSABKAIS",
- "EgoKcm90YXRpb25feBgGIAEoAhISCgpyb3RhdGlvbl95GAcgASgCEhIKCnJv",
- "dGF0aW9uX3oYCCABKAISEgoKcm90YXRpb25fdxgJIAEoAhIZChFsaW5lYXJf",
- "dmVsb2NpdHlfeBgKIAEoAhIZChFsaW5lYXJfdmVsb2NpdHlfeRgLIAEoAhIZ",
- "ChFsaW5lYXJfdmVsb2NpdHlfehgMIAEoAhIPCgdib25lUG9zGA0gAygCEg8K",
- "B2JvbmVSb3QYDiADKAISDAoEanVtcBgPIAEoBRIMCgRkb3duGBAgASgFIu0C",
- "CgpCb3hQYWNrYWdlEhEKCWVmZmVjdF9pZBgBIAEoBRIPCgdob2xkX2lkGAIg",
- "ASgFEhIKCnBvc2l0aW9uX3gYAyABKAISEgoKcG9zaXRpb25feRgEIAEoAhIS",
- "Cgpwb3NpdGlvbl96GAUgASgCEhIKCnJvdGF0aW9uX3gYBiABKAISEgoKcm90",
- "YXRpb25feRgHIAEoAhISCgpyb3RhdGlvbl96GAggASgCEhIKCnJvdGF0aW9u",
- "X3cYCSABKAISGQoRbGluZWFyX3ZlbG9jaXR5X3gYCiABKAISGQoRbGluZWFy",
- "X3ZlbG9jaXR5X3kYCyABKAISGQoRbGluZWFyX3ZlbG9jaXR5X3oYDCABKAIS",
- "GAoQYW5nbGVfdmVsb2NpdHlfeBgNIAEoAhIYChBhbmdsZV92ZWxvY2l0eV95",
- "GA4gASgCEhgKEGFuZ2xlX3ZlbG9jaXR5X3oYDyABKAISEAoIZXh0cmFTZXQY",
- "ECABKAliBnByb3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- 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),
- new pbr::GeneratedClrTypeInfo(typeof(global::Protos.BoxPackage), global::Protos.BoxPackage.Parser, new[]{ "EffectId", "HoldId", "PositionX", "PositionY", "PositionZ", "RotationX", "RotationY", "RotationZ", "RotationW", "LinearVelocityX", "LinearVelocityY", "LinearVelocityZ", "AngleVelocityX", "AngleVelocityY", "AngleVelocityZ", "ExtraSet" }, null, null, null)
- }));
- }
- #endregion
- }
- #region Messages
- /// <summary>
- /// 载入游戏响应
- /// </summary>
- public sealed partial class CharacterPackage : pb::IMessage<CharacterPackage> {
- private static readonly pb::MessageParser<CharacterPackage> _parser = new pb::MessageParser<CharacterPackage>(() => new CharacterPackage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<CharacterPackage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Protos.FrontReflection.Descriptor.MessageTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CharacterPackage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CharacterPackage(CharacterPackage other) : this() {
- hand_ = other.hand_;
- handGrab_ = other.handGrab_;
- positionX_ = other.positionX_;
- positionY_ = other.positionY_;
- positionZ_ = other.positionZ_;
- rotationX_ = other.rotationX_;
- rotationY_ = other.rotationY_;
- rotationZ_ = other.rotationZ_;
- rotationW_ = other.rotationW_;
- linearVelocityX_ = other.linearVelocityX_;
- linearVelocityY_ = other.linearVelocityY_;
- linearVelocityZ_ = other.linearVelocityZ_;
- bonePos_ = other.bonePos_.Clone();
- boneRot_ = other.boneRot_.Clone();
- jump_ = other.jump_;
- down_ = other.down_;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CharacterPackage Clone() {
- return new CharacterPackage(this);
- }
- /// <summary>Field number for the "hand" field.</summary>
- public const int HandFieldNumber = 1;
- private int hand_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Hand {
- get { return hand_; }
- set {
- hand_ = value;
- }
- }
- /// <summary>Field number for the "handGrab" field.</summary>
- public const int HandGrabFieldNumber = 2;
- private int handGrab_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int HandGrab {
- get { return handGrab_; }
- set {
- handGrab_ = value;
- }
- }
- /// <summary>Field number for the "position_x" field.</summary>
- public const int PositionXFieldNumber = 3;
- private float positionX_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float PositionX {
- get { return positionX_; }
- set {
- positionX_ = value;
- }
- }
- /// <summary>Field number for the "position_y" field.</summary>
- public const int PositionYFieldNumber = 4;
- private float positionY_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float PositionY {
- get { return positionY_; }
- set {
- positionY_ = value;
- }
- }
- /// <summary>Field number for the "position_z" field.</summary>
- public const int PositionZFieldNumber = 5;
- private float positionZ_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float PositionZ {
- get { return positionZ_; }
- set {
- positionZ_ = value;
- }
- }
- /// <summary>Field number for the "rotation_x" field.</summary>
- public const int RotationXFieldNumber = 6;
- private float rotationX_;
- /// <summary>
- ///旋转
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float RotationX {
- get { return rotationX_; }
- set {
- rotationX_ = value;
- }
- }
- /// <summary>Field number for the "rotation_y" field.</summary>
- public const int RotationYFieldNumber = 7;
- private float rotationY_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float RotationY {
- get { return rotationY_; }
- set {
- rotationY_ = value;
- }
- }
- /// <summary>Field number for the "rotation_z" field.</summary>
- public const int RotationZFieldNumber = 8;
- private float rotationZ_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float RotationZ {
- get { return rotationZ_; }
- set {
- rotationZ_ = value;
- }
- }
- /// <summary>Field number for the "rotation_w" field.</summary>
- public const int RotationWFieldNumber = 9;
- private float rotationW_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float RotationW {
- get { return rotationW_; }
- set {
- rotationW_ = value;
- }
- }
- /// <summary>Field number for the "linear_velocity_x" field.</summary>
- public const int LinearVelocityXFieldNumber = 10;
- private float linearVelocityX_;
- /// <summary>
- ///线速度
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float LinearVelocityX {
- get { return linearVelocityX_; }
- set {
- linearVelocityX_ = value;
- }
- }
- /// <summary>Field number for the "linear_velocity_y" field.</summary>
- public const int LinearVelocityYFieldNumber = 11;
- private float linearVelocityY_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float LinearVelocityY {
- get { return linearVelocityY_; }
- set {
- linearVelocityY_ = value;
- }
- }
- /// <summary>Field number for the "linear_velocity_z" field.</summary>
- public const int LinearVelocityZFieldNumber = 12;
- private float linearVelocityZ_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float LinearVelocityZ {
- get { return linearVelocityZ_; }
- set {
- linearVelocityZ_ = value;
- }
- }
- /// <summary>Field number for the "bonePos" field.</summary>
- public const int BonePosFieldNumber = 13;
- private static readonly pb::FieldCodec<float> _repeated_bonePos_codec
- = pb::FieldCodec.ForFloat(106);
- private readonly pbc::RepeatedField<float> bonePos_ = new pbc::RepeatedField<float>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<float> BonePos {
- get { return bonePos_; }
- }
- /// <summary>Field number for the "boneRot" field.</summary>
- public const int BoneRotFieldNumber = 14;
- private static readonly pb::FieldCodec<float> _repeated_boneRot_codec
- = pb::FieldCodec.ForFloat(114);
- private readonly pbc::RepeatedField<float> boneRot_ = new pbc::RepeatedField<float>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<float> BoneRot {
- get { return boneRot_; }
- }
- /// <summary>Field number for the "jump" field.</summary>
- public const int JumpFieldNumber = 15;
- private int jump_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Jump {
- get { return jump_; }
- set {
- jump_ = value;
- }
- }
- /// <summary>Field number for the "down" field.</summary>
- public const int DownFieldNumber = 16;
- private int down_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Down {
- get { return down_; }
- set {
- down_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as CharacterPackage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(CharacterPackage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Hand != other.Hand) return false;
- if (HandGrab != other.HandGrab) return false;
- if (PositionX != other.PositionX) return false;
- if (PositionY != other.PositionY) return false;
- if (PositionZ != other.PositionZ) return false;
- if (RotationX != other.RotationX) return false;
- if (RotationY != other.RotationY) return false;
- if (RotationZ != other.RotationZ) return false;
- if (RotationW != other.RotationW) return false;
- if (LinearVelocityX != other.LinearVelocityX) return false;
- if (LinearVelocityY != other.LinearVelocityY) return false;
- if (LinearVelocityZ != other.LinearVelocityZ) return false;
- if(!bonePos_.Equals(other.bonePos_)) return false;
- if(!boneRot_.Equals(other.boneRot_)) return false;
- if (Jump != other.Jump) return false;
- if (Down != other.Down) return false;
- return true;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Hand != 0) hash ^= Hand.GetHashCode();
- if (HandGrab != 0) hash ^= HandGrab.GetHashCode();
- if (PositionX != 0F) hash ^= PositionX.GetHashCode();
- if (PositionY != 0F) hash ^= PositionY.GetHashCode();
- if (PositionZ != 0F) hash ^= PositionZ.GetHashCode();
- if (RotationX != 0F) hash ^= RotationX.GetHashCode();
- if (RotationY != 0F) hash ^= RotationY.GetHashCode();
- if (RotationZ != 0F) hash ^= RotationZ.GetHashCode();
- if (RotationW != 0F) hash ^= RotationW.GetHashCode();
- if (LinearVelocityX != 0F) hash ^= LinearVelocityX.GetHashCode();
- if (LinearVelocityY != 0F) hash ^= LinearVelocityY.GetHashCode();
- if (LinearVelocityZ != 0F) hash ^= LinearVelocityZ.GetHashCode();
- hash ^= bonePos_.GetHashCode();
- hash ^= boneRot_.GetHashCode();
- if (Jump != 0) hash ^= Jump.GetHashCode();
- if (Down != 0) hash ^= Down.GetHashCode();
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Hand != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Hand);
- }
- if (HandGrab != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(HandGrab);
- }
- if (PositionX != 0F) {
- output.WriteRawTag(29);
- output.WriteFloat(PositionX);
- }
- if (PositionY != 0F) {
- output.WriteRawTag(37);
- output.WriteFloat(PositionY);
- }
- if (PositionZ != 0F) {
- output.WriteRawTag(45);
- output.WriteFloat(PositionZ);
- }
- if (RotationX != 0F) {
- output.WriteRawTag(53);
- output.WriteFloat(RotationX);
- }
- if (RotationY != 0F) {
- output.WriteRawTag(61);
- output.WriteFloat(RotationY);
- }
- if (RotationZ != 0F) {
- output.WriteRawTag(69);
- output.WriteFloat(RotationZ);
- }
- if (RotationW != 0F) {
- output.WriteRawTag(77);
- output.WriteFloat(RotationW);
- }
- if (LinearVelocityX != 0F) {
- output.WriteRawTag(85);
- output.WriteFloat(LinearVelocityX);
- }
- if (LinearVelocityY != 0F) {
- output.WriteRawTag(93);
- output.WriteFloat(LinearVelocityY);
- }
- if (LinearVelocityZ != 0F) {
- output.WriteRawTag(101);
- output.WriteFloat(LinearVelocityZ);
- }
- bonePos_.WriteTo(output, _repeated_bonePos_codec);
- boneRot_.WriteTo(output, _repeated_boneRot_codec);
- if (Jump != 0) {
- output.WriteRawTag(120);
- output.WriteInt32(Jump);
- }
- if (Down != 0) {
- output.WriteRawTag(128, 1);
- output.WriteInt32(Down);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Hand != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hand);
- }
- if (HandGrab != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(HandGrab);
- }
- if (PositionX != 0F) {
- size += 1 + 4;
- }
- if (PositionY != 0F) {
- size += 1 + 4;
- }
- if (PositionZ != 0F) {
- size += 1 + 4;
- }
- if (RotationX != 0F) {
- size += 1 + 4;
- }
- if (RotationY != 0F) {
- size += 1 + 4;
- }
- if (RotationZ != 0F) {
- size += 1 + 4;
- }
- if (RotationW != 0F) {
- size += 1 + 4;
- }
- if (LinearVelocityX != 0F) {
- size += 1 + 4;
- }
- if (LinearVelocityY != 0F) {
- size += 1 + 4;
- }
- if (LinearVelocityZ != 0F) {
- size += 1 + 4;
- }
- size += bonePos_.CalculateSize(_repeated_bonePos_codec);
- size += boneRot_.CalculateSize(_repeated_boneRot_codec);
- if (Jump != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Jump);
- }
- if (Down != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(Down);
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(CharacterPackage other) {
- if (other == null) {
- return;
- }
- if (other.Hand != 0) {
- Hand = other.Hand;
- }
- if (other.HandGrab != 0) {
- HandGrab = other.HandGrab;
- }
- if (other.PositionX != 0F) {
- PositionX = other.PositionX;
- }
- if (other.PositionY != 0F) {
- PositionY = other.PositionY;
- }
- if (other.PositionZ != 0F) {
- PositionZ = other.PositionZ;
- }
- if (other.RotationX != 0F) {
- RotationX = other.RotationX;
- }
- if (other.RotationY != 0F) {
- RotationY = other.RotationY;
- }
- if (other.RotationZ != 0F) {
- RotationZ = other.RotationZ;
- }
- if (other.RotationW != 0F) {
- RotationW = other.RotationW;
- }
- if (other.LinearVelocityX != 0F) {
- LinearVelocityX = other.LinearVelocityX;
- }
- if (other.LinearVelocityY != 0F) {
- LinearVelocityY = other.LinearVelocityY;
- }
- if (other.LinearVelocityZ != 0F) {
- LinearVelocityZ = other.LinearVelocityZ;
- }
- bonePos_.Add(other.bonePos_);
- boneRot_.Add(other.boneRot_);
- if (other.Jump != 0) {
- Jump = other.Jump;
- }
- if (other.Down != 0) {
- Down = other.Down;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Hand = input.ReadInt32();
- break;
- }
- case 16: {
- HandGrab = input.ReadInt32();
- break;
- }
- case 29: {
- PositionX = input.ReadFloat();
- break;
- }
- case 37: {
- PositionY = input.ReadFloat();
- break;
- }
- case 45: {
- PositionZ = input.ReadFloat();
- break;
- }
- case 53: {
- RotationX = input.ReadFloat();
- break;
- }
- case 61: {
- RotationY = input.ReadFloat();
- break;
- }
- case 69: {
- RotationZ = input.ReadFloat();
- break;
- }
- case 77: {
- RotationW = input.ReadFloat();
- break;
- }
- case 85: {
- LinearVelocityX = input.ReadFloat();
- break;
- }
- case 93: {
- LinearVelocityY = input.ReadFloat();
- break;
- }
- case 101: {
- LinearVelocityZ = input.ReadFloat();
- break;
- }
- case 106:
- case 109: {
- bonePos_.AddEntriesFrom(input, _repeated_bonePos_codec);
- break;
- }
- case 114:
- case 117: {
- boneRot_.AddEntriesFrom(input, _repeated_boneRot_codec);
- break;
- }
- case 120: {
- Jump = input.ReadInt32();
- break;
- }
- case 128: {
- Down = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- public sealed partial class BoxPackage : pb::IMessage<BoxPackage> {
- private static readonly pb::MessageParser<BoxPackage> _parser = new pb::MessageParser<BoxPackage>(() => new BoxPackage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<BoxPackage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Protos.FrontReflection.Descriptor.MessageTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BoxPackage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BoxPackage(BoxPackage other) : this() {
- effectId_ = other.effectId_;
- holdId_ = other.holdId_;
- positionX_ = other.positionX_;
- positionY_ = other.positionY_;
- positionZ_ = other.positionZ_;
- rotationX_ = other.rotationX_;
- rotationY_ = other.rotationY_;
- rotationZ_ = other.rotationZ_;
- rotationW_ = other.rotationW_;
- linearVelocityX_ = other.linearVelocityX_;
- linearVelocityY_ = other.linearVelocityY_;
- linearVelocityZ_ = other.linearVelocityZ_;
- angleVelocityX_ = other.angleVelocityX_;
- angleVelocityY_ = other.angleVelocityY_;
- angleVelocityZ_ = other.angleVelocityZ_;
- extraSet_ = other.extraSet_;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BoxPackage Clone() {
- return new BoxPackage(this);
- }
- /// <summary>Field number for the "effect_id" field.</summary>
- public const int EffectIdFieldNumber = 1;
- private int effectId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int EffectId {
- get { return effectId_; }
- set {
- effectId_ = value;
- }
- }
- /// <summary>Field number for the "hold_id" field.</summary>
- public const int HoldIdFieldNumber = 2;
- private int holdId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int HoldId {
- get { return holdId_; }
- set {
- holdId_ = value;
- }
- }
- /// <summary>Field number for the "position_x" field.</summary>
- public const int PositionXFieldNumber = 3;
- private float positionX_;
- /// <summary>
- ///坐标
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float PositionX {
- get { return positionX_; }
- set {
- positionX_ = value;
- }
- }
- /// <summary>Field number for the "position_y" field.</summary>
- public const int PositionYFieldNumber = 4;
- private float positionY_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float PositionY {
- get { return positionY_; }
- set {
- positionY_ = value;
- }
- }
- /// <summary>Field number for the "position_z" field.</summary>
- public const int PositionZFieldNumber = 5;
- private float positionZ_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float PositionZ {
- get { return positionZ_; }
- set {
- positionZ_ = value;
- }
- }
- /// <summary>Field number for the "rotation_x" field.</summary>
- public const int RotationXFieldNumber = 6;
- private float rotationX_;
- /// <summary>
- ///旋转
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float RotationX {
- get { return rotationX_; }
- set {
- rotationX_ = value;
- }
- }
- /// <summary>Field number for the "rotation_y" field.</summary>
- public const int RotationYFieldNumber = 7;
- private float rotationY_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float RotationY {
- get { return rotationY_; }
- set {
- rotationY_ = value;
- }
- }
- /// <summary>Field number for the "rotation_z" field.</summary>
- public const int RotationZFieldNumber = 8;
- private float rotationZ_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float RotationZ {
- get { return rotationZ_; }
- set {
- rotationZ_ = value;
- }
- }
- /// <summary>Field number for the "rotation_w" field.</summary>
- public const int RotationWFieldNumber = 9;
- private float rotationW_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float RotationW {
- get { return rotationW_; }
- set {
- rotationW_ = value;
- }
- }
- /// <summary>Field number for the "linear_velocity_x" field.</summary>
- public const int LinearVelocityXFieldNumber = 10;
- private float linearVelocityX_;
- /// <summary>
- ///线速度
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float LinearVelocityX {
- get { return linearVelocityX_; }
- set {
- linearVelocityX_ = value;
- }
- }
- /// <summary>Field number for the "linear_velocity_y" field.</summary>
- public const int LinearVelocityYFieldNumber = 11;
- private float linearVelocityY_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float LinearVelocityY {
- get { return linearVelocityY_; }
- set {
- linearVelocityY_ = value;
- }
- }
- /// <summary>Field number for the "linear_velocity_z" field.</summary>
- public const int LinearVelocityZFieldNumber = 12;
- private float linearVelocityZ_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float LinearVelocityZ {
- get { return linearVelocityZ_; }
- set {
- linearVelocityZ_ = value;
- }
- }
- /// <summary>Field number for the "angle_velocity_x" field.</summary>
- public const int AngleVelocityXFieldNumber = 13;
- private float angleVelocityX_;
- /// <summary>
- ///角速度
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float AngleVelocityX {
- get { return angleVelocityX_; }
- set {
- angleVelocityX_ = value;
- }
- }
- /// <summary>Field number for the "angle_velocity_y" field.</summary>
- public const int AngleVelocityYFieldNumber = 14;
- private float angleVelocityY_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float AngleVelocityY {
- get { return angleVelocityY_; }
- set {
- angleVelocityY_ = value;
- }
- }
- /// <summary>Field number for the "angle_velocity_z" field.</summary>
- public const int AngleVelocityZFieldNumber = 15;
- private float angleVelocityZ_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float AngleVelocityZ {
- get { return angleVelocityZ_; }
- set {
- angleVelocityZ_ = value;
- }
- }
- /// <summary>Field number for the "extraSet" field.</summary>
- public const int ExtraSetFieldNumber = 16;
- private string extraSet_ = "";
- /// <summary>
- ///额外设置
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string ExtraSet {
- get { return extraSet_; }
- set {
- extraSet_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as BoxPackage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(BoxPackage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (EffectId != other.EffectId) return false;
- if (HoldId != other.HoldId) return false;
- if (PositionX != other.PositionX) return false;
- if (PositionY != other.PositionY) return false;
- if (PositionZ != other.PositionZ) return false;
- if (RotationX != other.RotationX) return false;
- if (RotationY != other.RotationY) return false;
- if (RotationZ != other.RotationZ) return false;
- if (RotationW != other.RotationW) return false;
- if (LinearVelocityX != other.LinearVelocityX) return false;
- if (LinearVelocityY != other.LinearVelocityY) return false;
- if (LinearVelocityZ != other.LinearVelocityZ) return false;
- if (AngleVelocityX != other.AngleVelocityX) return false;
- if (AngleVelocityY != other.AngleVelocityY) return false;
- if (AngleVelocityZ != other.AngleVelocityZ) return false;
- if (ExtraSet != other.ExtraSet) return false;
- return true;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (EffectId != 0) hash ^= EffectId.GetHashCode();
- if (HoldId != 0) hash ^= HoldId.GetHashCode();
- if (PositionX != 0F) hash ^= PositionX.GetHashCode();
- if (PositionY != 0F) hash ^= PositionY.GetHashCode();
- if (PositionZ != 0F) hash ^= PositionZ.GetHashCode();
- if (RotationX != 0F) hash ^= RotationX.GetHashCode();
- if (RotationY != 0F) hash ^= RotationY.GetHashCode();
- if (RotationZ != 0F) hash ^= RotationZ.GetHashCode();
- if (RotationW != 0F) hash ^= RotationW.GetHashCode();
- if (LinearVelocityX != 0F) hash ^= LinearVelocityX.GetHashCode();
- if (LinearVelocityY != 0F) hash ^= LinearVelocityY.GetHashCode();
- if (LinearVelocityZ != 0F) hash ^= LinearVelocityZ.GetHashCode();
- if (AngleVelocityX != 0F) hash ^= AngleVelocityX.GetHashCode();
- if (AngleVelocityY != 0F) hash ^= AngleVelocityY.GetHashCode();
- if (AngleVelocityZ != 0F) hash ^= AngleVelocityZ.GetHashCode();
- if (ExtraSet.Length != 0) hash ^= ExtraSet.GetHashCode();
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (EffectId != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(EffectId);
- }
- if (HoldId != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(HoldId);
- }
- if (PositionX != 0F) {
- output.WriteRawTag(29);
- output.WriteFloat(PositionX);
- }
- if (PositionY != 0F) {
- output.WriteRawTag(37);
- output.WriteFloat(PositionY);
- }
- if (PositionZ != 0F) {
- output.WriteRawTag(45);
- output.WriteFloat(PositionZ);
- }
- if (RotationX != 0F) {
- output.WriteRawTag(53);
- output.WriteFloat(RotationX);
- }
- if (RotationY != 0F) {
- output.WriteRawTag(61);
- output.WriteFloat(RotationY);
- }
- if (RotationZ != 0F) {
- output.WriteRawTag(69);
- output.WriteFloat(RotationZ);
- }
- if (RotationW != 0F) {
- output.WriteRawTag(77);
- output.WriteFloat(RotationW);
- }
- if (LinearVelocityX != 0F) {
- output.WriteRawTag(85);
- output.WriteFloat(LinearVelocityX);
- }
- if (LinearVelocityY != 0F) {
- output.WriteRawTag(93);
- output.WriteFloat(LinearVelocityY);
- }
- if (LinearVelocityZ != 0F) {
- output.WriteRawTag(101);
- output.WriteFloat(LinearVelocityZ);
- }
- if (AngleVelocityX != 0F) {
- output.WriteRawTag(109);
- output.WriteFloat(AngleVelocityX);
- }
- if (AngleVelocityY != 0F) {
- output.WriteRawTag(117);
- output.WriteFloat(AngleVelocityY);
- }
- if (AngleVelocityZ != 0F) {
- output.WriteRawTag(125);
- output.WriteFloat(AngleVelocityZ);
- }
- if (ExtraSet.Length != 0) {
- output.WriteRawTag(130, 1);
- output.WriteString(ExtraSet);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (EffectId != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(EffectId);
- }
- if (HoldId != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(HoldId);
- }
- if (PositionX != 0F) {
- size += 1 + 4;
- }
- if (PositionY != 0F) {
- size += 1 + 4;
- }
- if (PositionZ != 0F) {
- size += 1 + 4;
- }
- if (RotationX != 0F) {
- size += 1 + 4;
- }
- if (RotationY != 0F) {
- size += 1 + 4;
- }
- if (RotationZ != 0F) {
- size += 1 + 4;
- }
- if (RotationW != 0F) {
- size += 1 + 4;
- }
- if (LinearVelocityX != 0F) {
- size += 1 + 4;
- }
- if (LinearVelocityY != 0F) {
- size += 1 + 4;
- }
- if (LinearVelocityZ != 0F) {
- size += 1 + 4;
- }
- if (AngleVelocityX != 0F) {
- size += 1 + 4;
- }
- if (AngleVelocityY != 0F) {
- size += 1 + 4;
- }
- if (AngleVelocityZ != 0F) {
- size += 1 + 4;
- }
- if (ExtraSet.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(ExtraSet);
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(BoxPackage other) {
- if (other == null) {
- return;
- }
- if (other.EffectId != 0) {
- EffectId = other.EffectId;
- }
- if (other.HoldId != 0) {
- HoldId = other.HoldId;
- }
- if (other.PositionX != 0F) {
- PositionX = other.PositionX;
- }
- if (other.PositionY != 0F) {
- PositionY = other.PositionY;
- }
- if (other.PositionZ != 0F) {
- PositionZ = other.PositionZ;
- }
- if (other.RotationX != 0F) {
- RotationX = other.RotationX;
- }
- if (other.RotationY != 0F) {
- RotationY = other.RotationY;
- }
- if (other.RotationZ != 0F) {
- RotationZ = other.RotationZ;
- }
- if (other.RotationW != 0F) {
- RotationW = other.RotationW;
- }
- if (other.LinearVelocityX != 0F) {
- LinearVelocityX = other.LinearVelocityX;
- }
- if (other.LinearVelocityY != 0F) {
- LinearVelocityY = other.LinearVelocityY;
- }
- if (other.LinearVelocityZ != 0F) {
- LinearVelocityZ = other.LinearVelocityZ;
- }
- if (other.AngleVelocityX != 0F) {
- AngleVelocityX = other.AngleVelocityX;
- }
- if (other.AngleVelocityY != 0F) {
- AngleVelocityY = other.AngleVelocityY;
- }
- if (other.AngleVelocityZ != 0F) {
- AngleVelocityZ = other.AngleVelocityZ;
- }
- if (other.ExtraSet.Length != 0) {
- ExtraSet = other.ExtraSet;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- EffectId = input.ReadInt32();
- break;
- }
- case 16: {
- HoldId = input.ReadInt32();
- break;
- }
- case 29: {
- PositionX = input.ReadFloat();
- break;
- }
- case 37: {
- PositionY = input.ReadFloat();
- break;
- }
- case 45: {
- PositionZ = input.ReadFloat();
- break;
- }
- case 53: {
- RotationX = input.ReadFloat();
- break;
- }
- case 61: {
- RotationY = input.ReadFloat();
- break;
- }
- case 69: {
- RotationZ = input.ReadFloat();
- break;
- }
- case 77: {
- RotationW = input.ReadFloat();
- break;
- }
- case 85: {
- LinearVelocityX = input.ReadFloat();
- break;
- }
- case 93: {
- LinearVelocityY = input.ReadFloat();
- break;
- }
- case 101: {
- LinearVelocityZ = input.ReadFloat();
- break;
- }
- case 109: {
- AngleVelocityX = input.ReadFloat();
- break;
- }
- case 117: {
- AngleVelocityY = input.ReadFloat();
- break;
- }
- case 125: {
- AngleVelocityZ = input.ReadFloat();
- break;
- }
- case 130: {
- ExtraSet = input.ReadString();
- break;
- }
- }
- }
- }
- }
- #endregion
- }
- #endregion Designer generated code
|