Exemplo n.º 1
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: {
                    Id = input.ReadString();
                    break;
                }

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

                case 26: {
                    Icon = input.ReadString();
                    break;
                }

                case 34: {
                    Description = input.ReadString();
                    break;
                }

                case 42: {
                    EffectSprite = input.ReadString();
                    break;
                }

                case 50: {
                    StatusIcon = input.ReadString();
                    break;
                }

                case 56: {
                    Slot = input.ReadInt32();
                    break;
                }

                case 66: {
                    EffectPrefab = input.ReadString();
                    break;
                }

                case 72: {
                    Rule = (global::WUProtos.Data.Client.ClientMapAbility.Types.AdditionalSelectionRule)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(ClientMapAbility other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Icon.Length != 0)
     {
         Icon = other.Icon;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.EffectSprite.Length != 0)
     {
         EffectSprite = other.EffectSprite;
     }
     if (other.StatusIcon.Length != 0)
     {
         StatusIcon = other.StatusIcon;
     }
     if (other.Slot != 0)
     {
         Slot = other.Slot;
     }
     if (other.EffectPrefab.Length != 0)
     {
         EffectPrefab = other.EffectPrefab;
     }
     if (other.Rule != 0)
     {
         Rule = other.Rule;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }