Example #1
0
 public ModifyChanceEffectManager(IMonitor monitor, IFishingApi fishingApi)
 {
     this.monitor        = monitor ?? throw new ArgumentNullException(nameof(monitor));
     this.fishingApi     = fishingApi ?? throw new ArgumentNullException(nameof(fishingApi));
     this.appliedFarmers = new();
     this.disposables    = new();
 }
Example #2
0
 public FishingHudRenderer(
     IModHelper helper,
     IFishingApi fishingApi,
     HudConfig hudConfig,
     INamespaceRegistry namespaceRegistry
     )
 {
     this.helper            = helper ?? throw new ArgumentNullException(nameof(helper));
     this.fishingApi        = fishingApi ?? throw new ArgumentNullException(nameof(fishingApi));
     this.hudConfig         = hudConfig ?? throw new ArgumentNullException(nameof(hudConfig));
     this.namespaceRegistry = namespaceRegistry;
     this.whitePixel        = new(Game1.graphics.GraphicsDevice, 1, 1);
     this.whitePixel.SetData(new[] { Color.White });
 }
Example #3
0
 public CustomBobberBarFactory(
     IModHelper helper,
     IMonitor monitor,
     IFishingApi fishingApi,
     FishConfig fishConfig,
     TreasureConfig treasureConfig
     )
 {
     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.fishConfig     = fishConfig ?? throw new ArgumentNullException(nameof(fishConfig));
     this.treasureConfig =
         treasureConfig ?? throw new ArgumentNullException(nameof(treasureConfig));
 }
 public DefaultContentReloader(IFishingApi fishingApi, INamespaceRegistry namespaceRegistry)
 {
     this.fishingApi        = fishingApi ?? throw new ArgumentNullException(nameof(fishingApi));
     this.namespaceRegistry = namespaceRegistry ?? throw new ArgumentNullException(nameof(namespaceRegistry));
 }
Example #5
0
 public DefaultCustomEvents(IManifest manifest, IFishingApi fishingApi)
 {
     this.manifest   = manifest ?? throw new ArgumentNullException(nameof(manifest));
     this.fishingApi = fishingApi ?? throw new ArgumentNullException(nameof(fishingApi));
 }