Пример #1
0
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <param name="monitor">Encapsulates monitoring and logging.</param>
 /// <param name="tokenManager">Manages the available contextual tokens.</param>
 public PatchManager(IMonitor monitor, TokenManager tokenManager)
 {
     this.Monitor      = monitor;
     this.TokenManager = tokenManager;
 }
Пример #2
0
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <param name="monitor">Encapsulates monitoring and logging.</param>
 /// <param name="tokenManager">Manages the available contextual tokens.</param>
 /// <param name="assetValidators">Handle special validation logic on loaded or edited assets.</param>
 public PatchManager(IMonitor monitor, TokenManager tokenManager, IAssetValidator[] assetValidators)
 {
     this.Monitor         = monitor;
     this.TokenManager    = tokenManager;
     this.AssetValidators = assetValidators;
 }
Пример #3
0
 /*********
 ** Public methods
 *********/
 /****
 ** Token management
 ****/
 /// <summary>Construct an instance.</summary>
 /// <param name="tokenManager">Manages the available global tokens.</param>
 public ModTokenContext(TokenManager tokenManager)
 {
     this.GlobalContext = tokenManager;
     this.Contexts      = new[] { this.GlobalContext, this.StandardContext, this.DynamicContext };
 }