public NamespaceSetup(IModHelper helper, IAssetTracker assetTracker, INamespaceRegistry namespaceRegistry)
 {
     this.helper            = helper ?? throw new ArgumentNullException(nameof(helper));
     this.assetTracker      = assetTracker ?? throw new ArgumentNullException(nameof(assetTracker));
     this.namespaceRegistry = namespaceRegistry
                              ?? throw new ArgumentNullException(nameof(namespaceRegistry));
 }
 public MissingSecretNotesToken(
     IAssetTracker assetTracker,
     [ContentSource(ContentSource.GameContent)] IAssetProvider gameAssets
     )
     : base(assetTracker, gameAssets)
 {
 }
 public MissingJournalScrapsToken(
     IAssetTracker assetTracker,
     [ContentSource(ContentSource.GameContent)] IAssetProvider gameAssets
     )
     : base(assetTracker, gameAssets)
 {
 }
Beispiel #4
0
        protected MissingNotesToken(IAssetTracker assetTracker, IAssetProvider gameAssets)
        {
            this.assetTracker =
                assetTracker ?? throw new ArgumentNullException(nameof(assetTracker));

            this.updated     = true;
            this.SecretNotes =
                gameAssets.Load <Dictionary <int, string> >(MissingNotesToken.secretNotesAsset);
        }
Beispiel #5
0
 public BackgroundRunner(INxtServer nxtServer, ITransactionRepository transactionRepository,
                         IBalanceCalculator balanceCalculator, IWalletRepository walletRepository,
                         IContactRepository contactRepository, IAssetTracker assetTracker, IMsCurrencyTracker msCurrencyTracker)
 {
     _nxtServer             = nxtServer;
     _transactionRepository = transactionRepository;
     _balanceCalculator     = balanceCalculator;
     _walletRepository      = walletRepository;
     _contactRepository     = contactRepository;
     _assetTracker          = assetTracker;
     _msCurrencyTracker     = msCurrencyTracker;
 }
Beispiel #6
0
        public AssetModule(AssetModuleDescription description, IApplication application, IProvider <string, IAssetLoader> loaders, IProvider <string, IAssetInfo> assets, IAssetTracker tracker) : base(description, application)
        {
            Loaders = loaders ?? throw new ArgumentNullException(nameof(loaders));
            Assets  = assets ?? throw new ArgumentNullException(nameof(assets));
            Tracker = tracker ?? throw new ArgumentNullException(nameof(tracker));

            Context.Add(Application);
            Context.Add(Loaders);
            Context.Add(Assets);
        }