-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from MonkeyModdingTroop/feature/add-configured…
…-monkey-interface Add an IConfiguredMonkey interface and make the ConfigSection public.
- Loading branch information
Showing
9 changed files
with
65 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using MonkeyLoader.Configuration; | ||
using MonkeyLoader.Patching; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace MonkeyLoader.Meta | ||
{ | ||
/// <summary> | ||
/// Defines the non-generic interface for all sorts of | ||
/// <see cref="ConfiguredMonkey{TMonkey, TConfigSection}">configured monkeys</see>. | ||
/// </summary> | ||
public interface IConfiguredMonkey : IMonkey | ||
{ | ||
/// <summary> | ||
/// Gets the loaded config section for this monkey after it has been run. | ||
/// </summary> | ||
public ConfigSection ConfigSection { get; } | ||
} | ||
|
||
/// <summary> | ||
/// Defines the interface for all sorts of | ||
/// <see cref="ConfiguredMonkey{TMonkey, TConfigSection}">configured monkeys</see>. | ||
/// </summary> | ||
/// <typeparam name="TConfigSection">The type of the config section loaded by this monkey.</typeparam> | ||
public interface IConfiguredMonkey<TConfigSection> : IConfiguredMonkey | ||
where TConfigSection : ConfigSection | ||
{ | ||
/// <summary> | ||
/// Gets the loaded config section for this monkey after it has been run. | ||
/// </summary> | ||
public new TConfigSection ConfigSection { get; } | ||
} | ||
} |
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
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