From 929dccb75a1405737975d76648e015a3e7c00177 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 7 Oct 2017 23:07:10 -0400 Subject: reorganise repo structure --- src/StardewModdingAPI/IAssetData.cs | 47 ------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 src/StardewModdingAPI/IAssetData.cs (limited to 'src/StardewModdingAPI/IAssetData.cs') diff --git a/src/StardewModdingAPI/IAssetData.cs b/src/StardewModdingAPI/IAssetData.cs deleted file mode 100644 index c3021144..00000000 --- a/src/StardewModdingAPI/IAssetData.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; - -namespace StardewModdingAPI -{ - /// Generic metadata and methods for a content asset being loaded. - /// The expected data type. - public interface IAssetData : IAssetInfo - { - /********* - ** Accessors - *********/ - /// The content data being read. - TValue Data { get; } - - - /********* - ** Public methods - *********/ - /// Replace the entire content value with the given value. This is generally not recommended, since it may break compatibility with other mods or different versions of the game. - /// The new content value. - /// The is null. - /// The 's type is not compatible with the loaded asset's type. - void ReplaceWith(TValue value); - } - - /// Generic metadata and methods for a content asset being loaded. - public interface IAssetData : IAssetData - { - /********* - ** Public methods - *********/ - /// Get a helper to manipulate the data as a dictionary. - /// The expected dictionary key. - /// The expected dictionary value. - /// The content being read isn't a dictionary. - IAssetDataForDictionary AsDictionary(); - - /// Get a helper to manipulate the data as an image. - /// The content being read isn't an image. - IAssetDataForImage AsImage(); - - /// Get the data as a given type. - /// The expected data type. - /// The data can't be converted to . - TData GetData(); - } -} -- cgit