using System.Reflection; namespace StardewModdingAPI.Framework.AssemblyRewriting { /// Metadata for mapping assemblies to the current . internal class PlatformAssemblyMap { /********* ** Accessors *********/ /// The target game platform. public readonly Platform TargetPlatform; /// The short assembly names to remove as assembly reference, and replace with the . These should be short names (like "Stardew Valley"). public readonly string[] RemoveNames; /// The assembly filenames to target. Equivalent types should be rewritten to use these assemblies. public readonly Assembly[] Targets; /********* ** Public methods *********/ /// Construct an instance. /// The target game platform. /// The assembly short names to remove (like Stardew Valley). /// The assemblies to target. public PlatformAssemblyMap(Platform targetPlatform, string[] removeAssemblyNames, Assembly[] targetAssemblies) { this.TargetPlatform = targetPlatform; this.RemoveNames = removeAssemblyNames; this.Targets = targetAssemblies; } } }