public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { cloudLevel_ = (global::POGOProtos.Map.Weather.DisplayWeather.Types.DisplayLevel)input.ReadEnum(); break; } case 16: { rainLevel_ = (global::POGOProtos.Map.Weather.DisplayWeather.Types.DisplayLevel)input.ReadEnum(); break; } case 24: { windLevel_ = (global::POGOProtos.Map.Weather.DisplayWeather.Types.DisplayLevel)input.ReadEnum(); break; } case 32: { snowLevel_ = (global::POGOProtos.Map.Weather.DisplayWeather.Types.DisplayLevel)input.ReadEnum(); break; } case 40: { fogLevel_ = (global::POGOProtos.Map.Weather.DisplayWeather.Types.DisplayLevel)input.ReadEnum(); break; } case 48: { WindDirection = input.ReadInt32(); break; } case 56: { specialEffectLevel_ = (global::POGOProtos.Map.Weather.DisplayWeather.Types.DisplayLevel)input.ReadEnum(); break; } } } }
public void MergeFrom(DisplayWeather other) { if (other == null) { return; } if (other.CloudLevel != 0) { CloudLevel = other.CloudLevel; } if (other.RainLevel != 0) { RainLevel = other.RainLevel; } if (other.WindLevel != 0) { WindLevel = other.WindLevel; } if (other.SnowLevel != 0) { SnowLevel = other.SnowLevel; } if (other.FogLevel != 0) { FogLevel = other.FogLevel; } if (other.WindDirection != 0) { WindDirection = other.WindDirection; } if (other.SpecialEffectLevel != 0) { SpecialEffectLevel = other.SpecialEffectLevel; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }