123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140 |
- // 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",
- "B2JvbmVSb3QYDiADKAISDAoEanVtcBgPIAEoBRIMCgRkb3duGBAgASgFIs4B",
- "CgpCb3hQYWNrYWdlEhEKCWVmZmVjdF9pZBgBIAEoBRIPCgdob2xkX2lkGAIg",
- "ASgFEhIKCnBvc2l0aW9uX3gYAyABKAISEgoKcG9zaXRpb25feRgEIAEoAhIS",
- "Cgpwb3NpdGlvbl96GAUgASgCEhIKCnJvdGF0aW9uX3gYBiABKAISEgoKcm90",
- "YXRpb25feRgHIAEoAhISCgpyb3RhdGlvbl96GAggASgCEhIKCnJvdGF0aW9u",
- "X3cYCSABKAISEAoIZXh0cmFTZXQYCiABKAkiRgoMRXZlbnRQYWNrYWdlEhEK",
- "CWV2ZW50Y29kZRgBIAEoBRIOCgZpc3Nob3cYAiABKAgSEwoLZXh0cmFQYXJh",
- "bXMYAyABKAliBnByb3RvMw=="));
- 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", "ExtraSet" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Protos.EventPackage), global::Protos.EventPackage.Parser, new[]{ "Eventcode", "Isshow", "ExtraParams" }, 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_;
- 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 "extraSet" field.</summary>
- public const int ExtraSetFieldNumber = 10;
- 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 (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 (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 (ExtraSet.Length != 0) {
- output.WriteRawTag(82);
- 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 (ExtraSet.Length != 0) {
- size += 1 + 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.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 82: {
- ExtraSet = input.ReadString();
- break;
- }
- }
- }
- }
- }
- public sealed partial class EventPackage : pb::IMessage<EventPackage> {
- private static readonly pb::MessageParser<EventPackage> _parser = new pb::MessageParser<EventPackage>(() => new EventPackage());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<EventPackage> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Protos.FrontReflection.Descriptor.MessageTypes[2]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public EventPackage() {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public EventPackage(EventPackage other) : this() {
- eventcode_ = other.eventcode_;
- isshow_ = other.isshow_;
- extraParams_ = other.extraParams_;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public EventPackage Clone() {
- return new EventPackage(this);
- }
- /// <summary>Field number for the "eventcode" field.</summary>
- public const int EventcodeFieldNumber = 1;
- private int eventcode_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Eventcode {
- get { return eventcode_; }
- set {
- eventcode_ = value;
- }
- }
- /// <summary>Field number for the "isshow" field.</summary>
- public const int IsshowFieldNumber = 2;
- private bool isshow_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Isshow {
- get { return isshow_; }
- set {
- isshow_ = value;
- }
- }
- /// <summary>Field number for the "extraParams" field.</summary>
- public const int ExtraParamsFieldNumber = 3;
- private string extraParams_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string ExtraParams {
- get { return extraParams_; }
- set {
- extraParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as EventPackage);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(EventPackage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Eventcode != other.Eventcode) return false;
- if (Isshow != other.Isshow) return false;
- if (ExtraParams != other.ExtraParams) return false;
- return true;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Eventcode != 0) hash ^= Eventcode.GetHashCode();
- if (Isshow != false) hash ^= Isshow.GetHashCode();
- if (ExtraParams.Length != 0) hash ^= ExtraParams.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 (Eventcode != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Eventcode);
- }
- if (Isshow != false) {
- output.WriteRawTag(16);
- output.WriteBool(Isshow);
- }
- if (ExtraParams.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(ExtraParams);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Eventcode != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Eventcode);
- }
- if (Isshow != false) {
- size += 1 + 1;
- }
- if (ExtraParams.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(ExtraParams);
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(EventPackage other) {
- if (other == null) {
- return;
- }
- if (other.Eventcode != 0) {
- Eventcode = other.Eventcode;
- }
- if (other.Isshow != false) {
- Isshow = other.Isshow;
- }
- if (other.ExtraParams.Length != 0) {
- ExtraParams = other.ExtraParams;
- }
- }
- [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: {
- Eventcode = input.ReadInt32();
- break;
- }
- case 16: {
- Isshow = input.ReadBool();
- break;
- }
- case 26: {
- ExtraParams = input.ReadString();
- break;
- }
- }
- }
- }
- }
- #endregion
- }
- #endregion Designer generated code
|