/// <summary> /// Copy constructor. /// </summary> /// <param name="blueprintManager">Object to copy.</param> public BlueprintManager(BlueprintManager blueprintManager) { if (blueprintManager.blueprints != null) { this.AddBlueprints(blueprintManager); } }
/// <summary> /// Adds all blueprints of the passed manager to this one. /// </summary> /// <param name="blueprintManager">Manager to add all blueprints of.</param> public void AddBlueprints(BlueprintManager blueprintManager) { foreach (KeyValuePair <string, Blueprint> blueprintPair in blueprintManager.blueprints) { this.AddBlueprint(blueprintPair.Key, new Blueprint(blueprintPair.Value)); } this.OnBlueprintsChanged(); }
private bool Equals(BlueprintManager other) { return(CollectionUtils.SequenceEqual(this.blueprints, other.blueprints)); }