예제 #1
0
 /// <summary>
 ///   Copy constructor.
 /// </summary>
 /// <param name="blueprintManager">Object to copy.</param>
 public BlueprintManager(BlueprintManager blueprintManager)
 {
     if (blueprintManager.blueprints != null)
     {
         this.AddBlueprints(blueprintManager);
     }
 }
예제 #2
0
 /// <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();
 }
예제 #3
0
 private bool Equals(BlueprintManager other)
 {
     return(CollectionUtils.SequenceEqual(this.blueprints, other.blueprints));
 }