diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-04-27 16:30:41 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-04-27 16:30:41 -0400 |
commit | df6e745c6b842290338317ed1d3e969ee222998c (patch) | |
tree | 4b8b28ddd7d8b9fe381bc7902f7c19187a61d4be /src/SMAPI/IAssetDataForMap.cs | |
parent | d0dad43e243864eb8bfdf46c853c5c7fba7c55ed (diff) | |
parent | f44151dbb47b82250955be7c25145d1774bec705 (diff) | |
download | SMAPI-df6e745c6b842290338317ed1d3e969ee222998c.tar.gz SMAPI-df6e745c6b842290338317ed1d3e969ee222998c.tar.bz2 SMAPI-df6e745c6b842290338317ed1d3e969ee222998c.zip |
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/IAssetDataForMap.cs')
-rw-r--r-- | src/SMAPI/IAssetDataForMap.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/SMAPI/IAssetDataForMap.cs b/src/SMAPI/IAssetDataForMap.cs new file mode 100644 index 00000000..769ca07c --- /dev/null +++ b/src/SMAPI/IAssetDataForMap.cs @@ -0,0 +1,18 @@ +using Microsoft.Xna.Framework; +using xTile; + +namespace StardewModdingAPI +{ + /// <summary>Encapsulates access and changes to map content being read from a data file.</summary> + public interface IAssetDataForMap : IAssetData<Map> + { + /********* + ** Public methods + *********/ + /// <summary>Copy layers, tiles, and tilesheets from another map onto the asset.</summary> + /// <param name="source">The map from which to copy.</param> + /// <param name="sourceArea">The tile area within the source map to copy, or <c>null</c> for the entire source map size. This must be within the bounds of the <paramref name="source"/> map.</param> + /// <param name="targetArea">The tile area within the target map to overwrite, or <c>null</c> to patch the whole map. The original content within this area will be erased. This must be within the bounds of the existing map.</param> + public void PatchMap(Map source, Rectangle? sourceArea = null, Rectangle? targetArea = null); + } +} |