Ejemplo n.º 1
0
 /// <summary>Construct an instance.</summary>
 /// <param name="copyFrom">A content pack to clone.</param>
 public RawContentPack(RawContentPack copyFrom)
     : this(copyFrom.ContentPack, copyFrom.Index, copyFrom.GetMigrations)
 {
     this.ContentImpl  = copyFrom.Content;
     this.MigratorImpl = copyFrom.Migrator;
 }
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <param name="contentPack">The raw content pack instance.</param>
 /// <param name="configFileHandler">Handles reading, normalizing, and saving the configuration for the content pack.</param>
 /// <param name="config">The content pack's configuration.</param>
 public LoadedContentPack(RawContentPack contentPack, ConfigFileHandler configFileHandler, InvariantDictionary <ConfigField> config)
     : base(contentPack)
 {
     this.ConfigFileHandler = configFileHandler;
     this.Config            = config;
 }