public override int GetHashCode() { int hash = 1; if (fortSettings_ != null) { hash ^= FortSettings.GetHashCode(); } if (mapSettings_ != null) { hash ^= MapSettings.GetHashCode(); } if (levelSettings_ != null) { hash ^= LevelSettings.GetHashCode(); } if (inventorySettings_ != null) { hash ^= InventorySettings.GetHashCode(); } if (MinimumClientVersion.Length != 0) { hash ^= MinimumClientVersion.GetHashCode(); } return(hash); }
public void MergeFrom(GlobalSettings other) { if (other == null) { return; } if (other.fortSettings_ != null) { if (fortSettings_ == null) { fortSettings_ = new global::PokemonGoDesktop.API.Proto.FortSettings(); } FortSettings.MergeFrom(other.FortSettings); } if (other.mapSettings_ != null) { if (mapSettings_ == null) { mapSettings_ = new global::PokemonGoDesktop.API.Proto.MapSettings(); } MapSettings.MergeFrom(other.MapSettings); } if (other.levelSettings_ != null) { if (levelSettings_ == null) { levelSettings_ = new global::PokemonGoDesktop.API.Proto.LevelSettings(); } LevelSettings.MergeFrom(other.LevelSettings); } if (other.inventorySettings_ != null) { if (inventorySettings_ == null) { inventorySettings_ = new global::PokemonGoDesktop.API.Proto.InventorySettings(); } InventorySettings.MergeFrom(other.InventorySettings); } if (other.MinimumClientVersion.Length != 0) { MinimumClientVersion = other.MinimumClientVersion; } }