예제 #1
0
 public ConsoleCommandsSetup(
     IModHelper helper,
     IMonitor monitor,
     FishingApi fishingApi,
     IJsonProvider jsonProvider,
     [ContentSource(ContentSource.ModFolder)] IAssetProvider assetProvider
     )
 {
     this.helper       = helper ?? throw new ArgumentNullException(nameof(helper));
     this.monitor      = monitor ?? throw new ArgumentNullException(nameof(monitor));
     this.fishingApi   = fishingApi ?? throw new ArgumentNullException(nameof(fishingApi));
     this.jsonProvider =
         jsonProvider ?? throw new ArgumentNullException(nameof(jsonProvider));
     this.assetProvider =
         assetProvider ?? throw new ArgumentNullException(nameof(assetProvider));
 }
예제 #2
0
 public FishingEffectApplier(IModHelper helper, FishingApi fishingApi)
 {
     this.helper     = helper ?? throw new ArgumentNullException(nameof(helper));
     this.fishingApi = fishingApi ?? throw new ArgumentNullException(nameof(fishingApi));
 }
예제 #3
0
 public ConsoleCommandsSetup(IModHelper helper, IMonitor monitor, FishingApi fishingApi)
 {
     this.helper     = helper ?? throw new ArgumentNullException(nameof(helper));
     this.monitor    = monitor ?? throw new ArgumentNullException(nameof(monitor));
     this.fishingApi = fishingApi ?? throw new ArgumentNullException(nameof(fishingApi));
 }