コード例 #1
0
            public override string ToString()
            {
                StringBuilder __sb    = new StringBuilder("Blend_args(");
                bool          __first = true;

                if (StartPosture != null && __isset.startPosture)
                {
                    if (!__first)
                    {
                        __sb.Append(", ");
                    }
                    __first = false;
                    __sb.Append("StartPosture: ");
                    __sb.Append(StartPosture == null ? "<null>" : StartPosture.ToString());
                }
                if (TargetPosture != null && __isset.targetPosture)
                {
                    if (!__first)
                    {
                        __sb.Append(", ");
                    }
                    __first = false;
                    __sb.Append("TargetPosture: ");
                    __sb.Append(TargetPosture == null ? "<null>" : TargetPosture.ToString());
                }
                if (__isset.weight)
                {
                    if (!__first)
                    {
                        __sb.Append(", ");
                    }
                    __first = false;
                    __sb.Append("Weight: ");
                    __sb.Append(Weight);
                }
                if (Mask != null && __isset.mask)
                {
                    if (!__first)
                    {
                        __sb.Append(", ");
                    }
                    __first = false;
                    __sb.Append("Mask: ");
                    __sb.Append(Mask);
                }
                if (Properties != null && __isset.properties)
                {
                    if (!__first)
                    {
                        __sb.Append(", ");
                    }
                    __first = false;
                    __sb.Append("Properties: ");
                    __sb.Append(Properties);
                }
                __sb.Append(")");
                return(__sb.ToString());
            }
コード例 #2
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("Blend_args");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (StartPosture != null && __isset.startPosture)
         {
             field.Name = "startPosture";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             StartPosture.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (TargetPosture != null && __isset.targetPosture)
         {
             field.Name = "targetPosture";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             TargetPosture.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (__isset.weight)
         {
             field.Name = "weight";
             field.Type = TType.Double;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             oprot.WriteDouble(Weight);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
コード例 #3
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("BlendMany_args");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (StartPosture != null && __isset.startPosture)
         {
             field.Name = "startPosture";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             StartPosture.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (TargetPosture != null && __isset.targetPosture)
         {
             field.Name = "targetPosture";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             TargetPosture.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (Weights != null && __isset.weights)
         {
             field.Name = "weights";
             field.Type = TType.List;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             {
                 oprot.WriteListBegin(new TList(TType.Double, Weights.Count));
                 foreach (double _iter129 in Weights)
                 {
                     oprot.WriteDouble(_iter129);
                 }
                 oprot.WriteListEnd();
             }
             oprot.WriteFieldEnd();
         }
         if (Mask != null && __isset.mask)
         {
             field.Name = "mask";
             field.Type = TType.Map;
             field.ID   = 4;
             oprot.WriteFieldBegin(field);
             {
                 oprot.WriteMapBegin(new TMap(TType.I32, TType.Double, Mask.Count));
                 foreach (MMIStandard.MJointType _iter130 in Mask.Keys)
                 {
                     oprot.WriteI32((int)_iter130);
                     oprot.WriteDouble(Mask[_iter130]);
                 }
                 oprot.WriteMapEnd();
             }
             oprot.WriteFieldEnd();
         }
         if (Properties != null && __isset.properties)
         {
             field.Name = "properties";
             field.Type = TType.Map;
             field.ID   = 5;
             oprot.WriteFieldBegin(field);
             {
                 oprot.WriteMapBegin(new TMap(TType.String, TType.String, Properties.Count));
                 foreach (string _iter131 in Properties.Keys)
                 {
                     oprot.WriteString(_iter131);
                     oprot.WriteString(Properties[_iter131]);
                 }
                 oprot.WriteMapEnd();
             }
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }