-
-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverted unneeded changes, cleaned some usings, and updated comments
- Loading branch information
Showing
4 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
using Pathoschild.Stardew.TractorMod.Framework.Config; | ||
using StardewModdingAPI; | ||
using StardewValley; | ||
|
||
namespace Pathoschild.Stardew.TractorMod.Framework | ||
{ | ||
/// <summary>The base class for attachments that can operate over a larger area. | ||
/// </summary> | ||
/// <typeparam name="TConfig">The type of the config file.</typeparam> | ||
internal abstract class ExtendedDistanceAttachment<TConfig> : BaseAttachment | ||
where TConfig : IExtendedDistanceConfig | ||
|
||
{ | ||
/// <summary>Construct an instance.</summary> | ||
/// <param name="config">The mod configuration.</param> | ||
/// <param name="config">The configuration for the attachment.</param> | ||
protected ExtendedDistanceAttachment(TConfig config, IModRegistry modRegistry, IReflectionHelper reflection, int rateLimit = 0) | ||
: base(modRegistry, reflection, rateLimit) | ||
{ | ||
this.Config = config; | ||
} | ||
|
||
/// <summary>The configuration for the attachment.</summary> | ||
protected TConfig Config { get; } | ||
|
||
/// <summary>If true, the attachment's area of affect should be expanded by a tile.</summary> | ||
public override bool IsDistanceExtended => this.Config.IncreaseDistance; | ||
} | ||
} |