コード例 #1
0
 public void MergeFrom(BuffCountCondition other)
 {
     if (other == null)
     {
         return;
     }
     if (other.TargetType.Length != 0)
     {
         TargetType = other.TargetType;
     }
     if (other.ComparisonOperator != 0)
     {
         ComparisonOperator = other.ComparisonOperator;
     }
     if (other.TargetComparisonValue != 0)
     {
         TargetComparisonValue = other.TargetComparisonValue;
     }
     if (other.LookForBuffs != false)
     {
         LookForBuffs = other.LookForBuffs;
     }
     if (other.ConditionTargetType != 0)
     {
         ConditionTargetType = other.ConditionTargetType;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #2
0
 public void MergeFrom(StatsTagCondition other)
 {
     if (other == null)
     {
         return;
     }
     if (other.TargetType.Length != 0)
     {
         TargetType = other.TargetType;
     }
     if (other.TargetStat.Length != 0)
     {
         TargetStat = other.TargetStat;
     }
     if (other.ComparisonOperator != 0)
     {
         ComparisonOperator = other.ComparisonOperator;
     }
     if (other.TargetComparisonValue != 0L)
     {
         TargetComparisonValue = other.TargetComparisonValue;
     }
     if (other.TargetStatIsPercentage != false)
     {
         TargetStatIsPercentage = other.TargetStatIsPercentage;
     }
     if (other.ConditionTargetType != 0)
     {
         ConditionTargetType = other.ConditionTargetType;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    TargetType = input.ReadString();
                    break;
                }

                case 18: {
                    TargetStat = input.ReadString();
                    break;
                }

                case 24: {
                    ComparisonOperator = (global::WUProtos.Enums.ComparisonOperator)input.ReadEnum();
                    break;
                }

                case 32: {
                    TargetComparisonValue = input.ReadInt64();
                    break;
                }

                case 40: {
                    TargetStatIsPercentage = input.ReadBool();
                    break;
                }

                case 48: {
                    ConditionTargetType = (global::WUProtos.Enums.ConditionTargetType)input.ReadEnum();
                    break;
                }
                }
            }
        }