qianzhuqing 3 年 前
コミット
4390d530f5
2 ファイル変更70 行追加11 行削除
  1. 67 11
      cs/Front.cs
  2. 3 0
      protos/front.proto

+ 67 - 11
cs/Front.cs

@@ -22,26 +22,26 @@ namespace Protos {
     static FrontReflection() {
       byte[] descriptorData = global::System.Convert.FromBase64String(
           string.Concat(
-            "Cgtmcm9udC5wcm90bxIGcHJvdG9zIrECChBDaGFyYWN0ZXJQYWNrYWdlEgwK",
+            "Cgtmcm9udC5wcm90bxIGcHJvdG9zIs0CChBDaGFyYWN0ZXJQYWNrYWdlEgwK",
             "BGhhbmQYASABKAUSEAoIaGFuZEdyYWIYAiABKAUSEgoKcG9zaXRpb25feBgD",
             "IAEoAhISCgpwb3NpdGlvbl95GAQgASgCEhIKCnBvc2l0aW9uX3oYBSABKAIS",
             "EgoKcm90YXRpb25feBgGIAEoAhISCgpyb3RhdGlvbl95GAcgASgCEhIKCnJv",
             "dGF0aW9uX3oYCCABKAISEgoKcm90YXRpb25fdxgJIAEoAhIZChFsaW5lYXJf",
             "dmVsb2NpdHlfeBgKIAEoAhIZChFsaW5lYXJfdmVsb2NpdHlfeRgLIAEoAhIZ",
             "ChFsaW5lYXJfdmVsb2NpdHlfehgMIAEoAhIPCgdib25lUG9zGA0gAygCEg8K",
-            "B2JvbmVSb3QYDiADKAIi2wIKCkJveFBhY2thZ2USEQoJZWZmZWN0X2lkGAEg",
-            "ASgFEg8KB2hvbGRfaWQYAiABKAUSEgoKcG9zaXRpb25feBgDIAEoAhISCgpw",
-            "b3NpdGlvbl95GAQgASgCEhIKCnBvc2l0aW9uX3oYBSABKAISEgoKcm90YXRp",
-            "b25feBgGIAEoAhISCgpyb3RhdGlvbl95GAcgASgCEhIKCnJvdGF0aW9uX3oY",
-            "CCABKAISEgoKcm90YXRpb25fdxgJIAEoAhIZChFsaW5lYXJfdmVsb2NpdHlf",
-            "eBgKIAEoAhIZChFsaW5lYXJfdmVsb2NpdHlfeRgLIAEoAhIZChFsaW5lYXJf",
-            "dmVsb2NpdHlfehgMIAEoAhIYChBhbmdsZV92ZWxvY2l0eV94GA0gASgCEhgK",
-            "EGFuZ2xlX3ZlbG9jaXR5X3kYDiABKAISGAoQYW5nbGVfdmVsb2NpdHlfehgP",
-            "IAEoAmIGcHJvdG8z"));
+            "B2JvbmVSb3QYDiADKAISDAoEanVtcBgPIAEoBRIMCgRkb3duGBAgASgFItsC",
+            "CgpCb3hQYWNrYWdlEhEKCWVmZmVjdF9pZBgBIAEoBRIPCgdob2xkX2lkGAIg",
+            "ASgFEhIKCnBvc2l0aW9uX3gYAyABKAISEgoKcG9zaXRpb25feRgEIAEoAhIS",
+            "Cgpwb3NpdGlvbl96GAUgASgCEhIKCnJvdGF0aW9uX3gYBiABKAISEgoKcm90",
+            "YXRpb25feRgHIAEoAhISCgpyb3RhdGlvbl96GAggASgCEhIKCnJvdGF0aW9u",
+            "X3cYCSABKAISGQoRbGluZWFyX3ZlbG9jaXR5X3gYCiABKAISGQoRbGluZWFy",
+            "X3ZlbG9jaXR5X3kYCyABKAISGQoRbGluZWFyX3ZlbG9jaXR5X3oYDCABKAIS",
+            "GAoQYW5nbGVfdmVsb2NpdHlfeBgNIAEoAhIYChBhbmdsZV92ZWxvY2l0eV95",
+            "GA4gASgCEhgKEGFuZ2xlX3ZlbG9jaXR5X3oYDyABKAJiBnByb3RvMw=="));
       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" }, null, null, null),
+            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" }, null, null, null)
           }));
     }
@@ -90,6 +90,8 @@ namespace Protos {
       linearVelocityZ_ = other.linearVelocityZ_;
       bonePos_ = other.bonePos_.Clone();
       boneRot_ = other.boneRot_.Clone();
+      jump_ = other.jump_;
+      down_ = other.down_;
     }
 
     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -255,6 +257,28 @@ namespace Protos {
       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);
@@ -282,6 +306,8 @@ namespace Protos {
       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;
     }
 
@@ -302,6 +328,8 @@ namespace Protos {
       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;
     }
 
@@ -362,6 +390,14 @@ namespace Protos {
       }
       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]
@@ -405,6 +441,12 @@ namespace Protos {
       }
       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;
     }
 
@@ -451,6 +493,12 @@ namespace Protos {
       }
       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]
@@ -519,6 +567,14 @@ namespace Protos {
             boneRot_.AddEntriesFrom(input, _repeated_boneRot_codec);
             break;
           }
+          case 120: {
+            Jump = input.ReadInt32();
+            break;
+          }
+          case 128: {
+            Down = input.ReadInt32();
+            break;
+          }
         }
       }
     }

+ 3 - 0
protos/front.proto

@@ -22,6 +22,9 @@ message  CharacterPackage{
 
         repeated float bonePos=13;
         repeated float boneRot=14;
+
+int32 jump=15;
+int32 down=16;
 }
 message BoxPackage {
   int32 effect_id=1;