summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/IAssetEditor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/IAssetEditor.cs')
-rw-r--r--src/StardewModdingAPI/IAssetEditor.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/IAssetEditor.cs b/src/StardewModdingAPI/IAssetEditor.cs
new file mode 100644
index 00000000..d2c6f295
--- /dev/null
+++ b/src/StardewModdingAPI/IAssetEditor.cs
@@ -0,0 +1,17 @@
+namespace StardewModdingAPI
+{
+ /// <summary>Edits matching content assets.</summary>
+ public interface IAssetEditor
+ {
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>Get whether this instance can edit the given asset.</summary>
+ /// <param name="asset">Basic metadata about the asset being loaded.</param>
+ bool CanEdit<T>(IAssetInfo asset);
+
+ /// <summary>Edit a matched asset.</summary>
+ /// <param name="asset">A helper which encapsulates metadata about an asset and enables changes to it.</param>
+ void Edit<T>(IAssetData asset);
+ }
+}