Пример #1
0
 /// <summary>
 /// Construct a new mod object
 /// </summary>
 /// <param name="filename">The name of the containing configuration file, for error and log messages.</param>
 /// <param name="def">The ModDefinition deserialized from the configuration file.</param>
 /// <param name="repo">The def repo into which to apply the change</param>
 public Mod(String filename, ModDefinition def, IDefRepository repo)
 {
     this.filename = filename;
     this.def      = def;
     this.repo     = repo;
 }
Пример #2
0
 /// <summary>
 /// Unit test constructor: accepts a repo and logger object to use instead of creating
 /// ones appropriate for the game.
 /// </summary>
 /// <param name="filename"></param>
 /// <param name="repo"></param>
 /// <param name="logger"></param>
 internal ModFile(string filename, IDefRepository repo, ILogger logger)
 {
     this.fileName = filename;
     this.repo     = repo;
     this.logger   = logger;
 }