public void MergeFrom(ClientWeather other) { if (other == null) { return; } if (other.S2CellId != 0L) { S2CellId = other.S2CellId; } if (other.displayWeather_ != null) { if (displayWeather_ == null) { DisplayWeather = new global::WUProtos.Data.DisplayWeather(); } DisplayWeather.MergeFrom(other.DisplayWeather); } if (other.gameplayWeather_ != null) { if (gameplayWeather_ == null) { GameplayWeather = new global::WUProtos.Data.GameplayWeather(); } GameplayWeather.MergeFrom(other.GameplayWeather); } alerts_.Add(other.alerts_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (S2CellId != 0L) { hash ^= S2CellId.GetHashCode(); } if (displayWeather_ != null) { hash ^= DisplayWeather.GetHashCode(); } if (gameplayWeather_ != null) { hash ^= GameplayWeather.GetHashCode(); } hash ^= alerts_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
private void Awake() { Instance = this; }