summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/AssemblyRewriting
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-26 16:10:41 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-26 16:10:41 -0500
commit4df199985558caee3275fdd65762bdc3e1d040c6 (patch)
treee7cb6e12f716629f947974da14d8922b43cfea29 /src/StardewModdingAPI/Framework/AssemblyRewriting
parent1de8dc1b0f58991f9d15fa343e849bd6a2023ecc (diff)
downloadSMAPI-4df199985558caee3275fdd65762bdc3e1d040c6.tar.gz
SMAPI-4df199985558caee3275fdd65762bdc3e1d040c6.tar.bz2
SMAPI-4df199985558caee3275fdd65762bdc3e1d040c6.zip
move cache struct into its own file (#166)
Diffstat (limited to 'src/StardewModdingAPI/Framework/AssemblyRewriting')
-rw-r--r--src/StardewModdingAPI/Framework/AssemblyRewriting/CachePaths.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Framework/AssemblyRewriting/CachePaths.cs b/src/StardewModdingAPI/Framework/AssemblyRewriting/CachePaths.cs
new file mode 100644
index 00000000..17c4d188
--- /dev/null
+++ b/src/StardewModdingAPI/Framework/AssemblyRewriting/CachePaths.cs
@@ -0,0 +1,33 @@
+namespace StardewModdingAPI.Framework.AssemblyRewriting
+{
+ /// <summary>Contains the paths for an assembly's cached data.</summary>
+ internal struct CachePaths
+ {
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>The directory path which contains the assembly.</summary>
+ public string Directory { get; }
+
+ /// <summary>The file path of the assembly file.</summary>
+ public string Assembly { get; }
+
+ /// <summary>The file path containing the MD5 hash for the assembly.</summary>
+ public string Hash { get; }
+
+
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>Construct an instance.</summary>
+ /// <param name="directory">The directory path which contains the assembly.</param>
+ /// <param name="assembly">The file path of the assembly file.</param>
+ /// <param name="hash">The file path containing the MD5 hash for the assembly.</param>
+ public CachePaths(string directory, string assembly, string hash)
+ {
+ this.Directory = directory;
+ this.Assembly = assembly;
+ this.Hash = hash;
+ }
+ }
+} \ No newline at end of file