diff --git a/AdvancedLocationLoader/AdvancedLocationLoader.csproj b/AdvancedLocationLoader/AdvancedLocationLoader.csproj index 2fdfe86..a560e89 100644 --- a/AdvancedLocationLoader/AdvancedLocationLoader.csproj +++ b/AdvancedLocationLoader/AdvancedLocationLoader.csproj @@ -1,102 +1,23 @@ - - - + + - Debug - x86 - {9EA06249-2096-43E0-B616-DDD3FE731147} - Library - Properties - Entoarox.AdvancedLocationLoader AdvancedLocationLoader - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - 7.1 - - - true - full - true - bin\Release\ - TRACE - prompt - 4 - x86 - 7.1 + Entoarox.AdvancedLocationLoader + 1.5.0 + net452 + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - {174275e7-3ae4-41a6-9884-9e08a07d1101} - EntoaroxFramework - False + false - - - - - - \ No newline at end of file + + + + diff --git a/AdvancedLocationLoader/ModEntry.cs b/AdvancedLocationLoader/ModEntry.cs index af9d1ae..bae1244 100644 --- a/AdvancedLocationLoader/ModEntry.cs +++ b/AdvancedLocationLoader/ModEntry.cs @@ -18,6 +18,7 @@ namespace Entoarox.AdvancedLocationLoader { + /// The mod entry class. internal class ModEntry : Mod { /********* @@ -46,6 +47,7 @@ public override void Entry(IModHelper helper) ModEntry.Strings = helper.Translation; MoreEvents.ActionTriggered += this.OnActionTriggered; + helper.Events.GameLoop.GameLaunched += this.OnGameLaunched; helper.Events.Specialised.UnvalidatedUpdateTicked += this.OnUnvalidatedUpdateTick; helper.Events.Player.Warped += this.OnWarped; helper.Events.Player.Warped += this.DrawFarBack; @@ -54,10 +56,6 @@ public override void Entry(IModHelper helper) this.Helper.Content.RegisterSerializerType(); this.Helper.Content.RegisterSerializerType(); this.Helper.Content.RegisterSerializerType(); - - // load content packs - ContentPackData[] contentPacks = this.LoadContentPackData().ToArray(); - this.Patcher = new Patcher(this.Monitor, this.Helper.Content, contentPacks); } internal static void UpdateConditionalEdits() @@ -97,6 +95,16 @@ internal static void UpdateTilesheets() /********* ** Private methods *********/ + /// Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations. + /// The event sender. + /// The event data. + private void OnGameLaunched(object sender, GameLaunchedEventArgs e) + { + // load content packs + ContentPackData[] contentPacks = this.LoadContentPackData().ToArray(); + this.Patcher = new Patcher(this.Monitor, this.Helper.Content, contentPacks); + } + /// Load the data from each available content pack. private IEnumerable LoadContentPackData() { diff --git a/AdvancedLocationLoader/Properties/AssemblyInfo.cs b/AdvancedLocationLoader/Properties/AssemblyInfo.cs deleted file mode 100644 index 0d75211..0000000 --- a/AdvancedLocationLoader/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("AdvancedLocationLoader")] -[assembly: AssemblyDescription("Add new content to stardew valley without needing to learn C#!")] -[assembly: AssemblyVersion("1.4.6")] -[assembly: AssemblyFileVersion("1.4.6")] diff --git a/AdvancedLocationLoader2/ALLModEntry.cs b/AdvancedLocationLoader2/ALLModEntry.cs index f056d0f..0a784cb 100644 --- a/AdvancedLocationLoader2/ALLModEntry.cs +++ b/AdvancedLocationLoader2/ALLModEntry.cs @@ -1,23 +1,36 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - using StardewModdingAPI; +using StardewModdingAPI.Events; namespace Entoarox.AdvancedLocationLoader2 { + /// The mod entry class. public class ALLModEntry : Mod { + /********* + ** Public methods + *********/ + /// The mod entry point, called after the mod is first loaded. + /// Provides simplified APIs for writing mods. public override void Entry(IModHelper helper) + { + helper.Events.GameLoop.GameLaunched += this.OnGameLaunched; + } + + + /********* + ** Private methods + *********/ + /// Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations. + /// The event sender. + /// The event data. + private void OnGameLaunched(object sender, GameLaunchedEventArgs e) { this.LoadContent(); } private void LoadContent() { - foreach(var pack in this.Helper.ContentPacks.GetOwned()) + foreach (var pack in this.Helper.ContentPacks.GetOwned()) { } diff --git a/AdvancedLocationLoader2/AdvancedLocationLoader2.csproj b/AdvancedLocationLoader2/AdvancedLocationLoader2.csproj index 755e231..1a42cff 100644 --- a/AdvancedLocationLoader2/AdvancedLocationLoader2.csproj +++ b/AdvancedLocationLoader2/AdvancedLocationLoader2.csproj @@ -1,76 +1,23 @@ - - - + + - Debug - AnyCPU - {3E6083A5-7122-4E40-B720-D4436CD816B5} - Library - Properties - Entoarox.AdvancedLocationLoader2 AdvancedLocationLoader2 - v4.5 - 512 - true - - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 + Entoarox.AdvancedLocationLoader2 + 1.5.0 + net452 + - - ..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + + false + - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - \ No newline at end of file + + + + diff --git a/AdvancedLocationLoader2/Properties/AssemblyInfo.cs b/AdvancedLocationLoader2/Properties/AssemblyInfo.cs deleted file mode 100644 index 9f7ca8f..0000000 --- a/AdvancedLocationLoader2/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("AdvancedLocationLoader2")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("AdvancedLocationLoader2")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("3e6083a5-7122-4e40-b720-d4436cd816b5")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AdvancedLocationLoader2/packages.config b/AdvancedLocationLoader2/packages.config deleted file mode 100644 index 611c7bb..0000000 --- a/AdvancedLocationLoader2/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/CustomBooks/CustomBooks.csproj b/CustomBooks/CustomBooks.csproj index ba155f2..fb3d7bc 100644 --- a/CustomBooks/CustomBooks.csproj +++ b/CustomBooks/CustomBooks.csproj @@ -1,103 +1,23 @@ - - - + + - Debug - x86 - {AE56920C-7F17-4E17-B703-6586B190EF04} - Library - Properties - Entoarox.CustomBooks CustomBooks - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - 7.1 - - - true - full - true - bin\Release\ - TRACE - prompt - 4 - x86 - 7.1 + Entoarox.CustomBooks + 0.1.0 + net452 + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - {174275e7-3ae4-41a6-9884-9e08a07d1101} - EntoaroxFramework + false - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - \ No newline at end of file + + + + diff --git a/CustomBooks/ModEntry.cs b/CustomBooks/ModEntry.cs index ed4c175..1367b2a 100644 --- a/CustomBooks/ModEntry.cs +++ b/CustomBooks/ModEntry.cs @@ -9,6 +9,7 @@ namespace Entoarox.CustomBooks { + /// The mod entry class. internal class ModEntry : Mod { /********* diff --git a/CustomBooks/Properties/AssemblyInfo.cs b/CustomBooks/Properties/AssemblyInfo.cs deleted file mode 100644 index f87ac81..0000000 --- a/CustomBooks/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("CustomBooks")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyFileVersion("1.0.0")] diff --git a/CustomPaths/CustomPaths.csproj b/CustomPaths/CustomPaths.csproj index 0359c80..221d7eb 100644 --- a/CustomPaths/CustomPaths.csproj +++ b/CustomPaths/CustomPaths.csproj @@ -1,73 +1,23 @@ - - - + + - Debug - AnyCPU - {19A8DB34-7A24-4576-B50F-7EB02D09E465} - Library - Properties - Entoarox.CustomPaths CustomPaths - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - x86 - 7.1 - prompt - MinimumRecommendedRules.ruleset - - - true - full - true - bin\Release\ - TRACE - x86 - prompt - MinimumRecommendedRules.ruleset - 7.1 + Entoarox.CustomPaths + 1.1.2 + net452 + - - - - - - - - - - - - - - - - - - - - - - - - - + + - {174275e7-3ae4-41a6-9884-9e08a07d1101} - EntoaroxFramework - False + false - - \ No newline at end of file + + + + diff --git a/CustomPaths/CustomPathsMod.cs b/CustomPaths/CustomPathsMod.cs index 21b2566..7229c39 100644 --- a/CustomPaths/CustomPathsMod.cs +++ b/CustomPaths/CustomPathsMod.cs @@ -11,14 +11,27 @@ namespace Entoarox.CustomPaths { + /// The mod entry class. public class CustomPathsMod : Mod { public static Dictionary Map = new Dictionary(); private static readonly string[] Seasons = { "spring", "summer", "fall", "winter" }; private PlayerModifier Modifier; + /// The mod entry point, called after the mod is first loaded. + /// Provides simplified APIs for writing mods. public override void Entry(IModHelper helper) { + helper.Events.GameLoop.GameLaunched += this.OnGameLaunched; + } + + /// Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations. + /// The event sender. + /// The event data. + private void OnGameLaunched(object sender, GameLaunchedEventArgs e) + { + var helper = this.Helper; + foreach (IContentPack pack in helper.ContentPacks.GetOwned()) { foreach (CustomPathConfig path in pack.ReadJsonFile>("paths.json")) diff --git a/CustomPaths/Properties/AssemblyInfo.cs b/CustomPaths/Properties/AssemblyInfo.cs deleted file mode 100644 index 4e49201..0000000 --- a/CustomPaths/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("CustomPaths")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyVersion("1.1.2")] -[assembly: AssemblyFileVersion("1.1.2")] diff --git a/DialogueFramework/DialogueFramework.csproj b/DialogueFramework/DialogueFramework.csproj index fa75de7..e326065 100644 --- a/DialogueFramework/DialogueFramework.csproj +++ b/DialogueFramework/DialogueFramework.csproj @@ -1,74 +1,18 @@ - - - + + - Debug - AnyCPU - {1ADC0DCB-5229-4DB7-B4B1-B58F9281F1A3} - Library - Properties - DialogueFramework DialogueFramework - v4.5 - 512 - true - - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - 7.1 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - x86 - 7.1 + DialogueFramework + 1.0.0 + net452 + + true + - - E:\SteamGames\steamapps\common\Stardew Valley\smapi-internal\0Harmony.dll - - - - - - - - - - - - - - - - - - - - - - - + - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - \ No newline at end of file + + + + diff --git a/DialogueFramework/DialogueFrameworkMod.cs b/DialogueFramework/DialogueFrameworkMod.cs index f5d1ef8..35338cc 100644 --- a/DialogueFramework/DialogueFrameworkMod.cs +++ b/DialogueFramework/DialogueFrameworkMod.cs @@ -8,13 +8,19 @@ namespace DialogueFramework { + /// The mod entry class. public class DialogueFrameworkMod : Mod { internal static ModApi Api; + + /// The mod entry point, called after the mod is first loaded. + /// Provides simplified APIs for writing mods. public override void Entry(IModHelper helper) { Api = new ModApi(); } + + /// Get an API that other mods can access. This is always called after . public override object GetApi() { return Api; diff --git a/DialogueFramework/Properties/AssemblyInfo.cs b/DialogueFramework/Properties/AssemblyInfo.cs deleted file mode 100644 index 0327f25..0000000 --- a/DialogueFramework/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("DialogueFramework")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("DialogueFramework")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("1adc0dcb-5229-4db7-b4b1-b58f9281f1a3")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/DialogueFramework/packages.config b/DialogueFramework/packages.config deleted file mode 100644 index af793ad..0000000 --- a/DialogueFramework/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/DynamicDungeons/DynamicDungeons.csproj b/DynamicDungeons/DynamicDungeons.csproj index 77e3f15..32fefb4 100644 --- a/DynamicDungeons/DynamicDungeons.csproj +++ b/DynamicDungeons/DynamicDungeons.csproj @@ -1,149 +1,16 @@ - - - + + - Debug - x86 - {AE355745-73FE-45C6-BA17-DE56744BB3D6} - Library - Properties - Entoarox.DynamicDungeons DynamicDungeons - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - latest - - - true - full - true - bin\Release\ - TRACE - prompt - 4 - x86 - latest + Entoarox.DynamicDungeons + 0.1.16 + net452 + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Always - - - - - - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - - PreserveNewest - - - PreserveNewest - + - - \ No newline at end of file + + + + diff --git a/DynamicDungeons/ModEntry.cs b/DynamicDungeons/ModEntry.cs index 306b3de..38d7c56 100644 --- a/DynamicDungeons/ModEntry.cs +++ b/DynamicDungeons/ModEntry.cs @@ -14,6 +14,7 @@ namespace Entoarox.DynamicDungeons { + /// The mod entry class. internal class ModEntry : Mod { /********* @@ -34,12 +35,23 @@ internal class ModEntry : Mod /********* ** Public methods *********/ + /// The mod entry point, called after the mod is first loaded. + /// Provides simplified APIs for writing mods. public override void Entry(IModHelper helper) { ModEntry.SMonitor = this.Monitor; ModEntry.SHelper = this.Helper; helper.Events.GameLoop.UpdateTicked+= this.GameEvents_UpdateTick; + helper.Events.GameLoop.GameLaunched += this.OnGameLaunched; helper.ConsoleCommands.Add("dd_fromseed", "dd_fromseed | Generate a dungeon from a specific seed", this.Command_Fromseed); + } + + /// Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations. + /// The event sender. + /// The event data. + private void OnGameLaunched(object sender, GameLaunchedEventArgs e) + { + var helper = this.Helper; this.InfoBook = new BookMenu(new List { new TitlePage(helper.Translation.Get("Book_Title"), helper.Translation.Get("Book_Subtitle"), helper.Translation.Get("Book_Introduction")), diff --git a/DynamicDungeons/Properties/AssemblyInfo.cs b/DynamicDungeons/Properties/AssemblyInfo.cs deleted file mode 100644 index cb59c62..0000000 --- a/DynamicDungeons/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("DynamicDungeons")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyFileVersion("1.0.0")] diff --git a/ExtendedMinecart/ExtendedMinecart.csproj b/ExtendedMinecart/ExtendedMinecart.csproj index 7f64ba5..c9c0cf0 100644 --- a/ExtendedMinecart/ExtendedMinecart.csproj +++ b/ExtendedMinecart/ExtendedMinecart.csproj @@ -1,62 +1,22 @@ - - - + + - Debug - x86 - {CA467BEA-932F-4133-ACA0-D634670C2488} - Library - Properties - Entoarox.ExtendedMinecart ExtendedMinecart - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - 7.1 - - - true - full - true - bin\Release\ - TRACE - prompt - 4 - x86 - 7.1 + Entoarox.ExtendedMinecart + 1.8.2 + net452 + - - - - - - - - - + + - {174275e7-3ae4-41a6-9884-9e08a07d1101} - EntoaroxFramework - False + false - - - - - - - - \ No newline at end of file + + + + diff --git a/ExtendedMinecart/ModEntry.cs b/ExtendedMinecart/ModEntry.cs index 1488fdc..1d15201 100644 --- a/ExtendedMinecart/ModEntry.cs +++ b/ExtendedMinecart/ModEntry.cs @@ -16,6 +16,7 @@ */ namespace Entoarox.ExtendedMinecart { + /// The mod entry class. internal class ModEntry : Mod { /********* diff --git a/ExtendedMinecart/Properties/AssemblyInfo.cs b/ExtendedMinecart/Properties/AssemblyInfo.cs deleted file mode 100644 index 8f6de21..0000000 --- a/ExtendedMinecart/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("ExtendedMinecart")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyVersion("1.8.0")] -[assembly: AssemblyFileVersion("1.8.0")] diff --git a/FasterPaths/FasterPaths.csproj b/FasterPaths/FasterPaths.csproj index a4b9c81..438f2ab 100644 --- a/FasterPaths/FasterPaths.csproj +++ b/FasterPaths/FasterPaths.csproj @@ -1,62 +1,22 @@ - - - + + - Debug - x86 - {B9CDF893-2243-46D1-8CB6-CE48B8973023} - Library - Properties - Entoarox.FasterPaths FasterPaths - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - 7.1 - - - true - full - true - bin\Release\ - TRACE - prompt - 4 - x86 - 7.1 + Entoarox.FasterPaths + 1.3.5 + net452 + - - - - - - - - - - + + - {174275e7-3ae4-41a6-9884-9e08a07d1101} - EntoaroxFramework - False + false - - - - - - - \ No newline at end of file + + + + diff --git a/FasterPaths/ModEntry.cs b/FasterPaths/ModEntry.cs index 830e3d3..66eb88a 100644 --- a/FasterPaths/ModEntry.cs +++ b/FasterPaths/ModEntry.cs @@ -3,11 +3,13 @@ using Entoarox.Framework; using Microsoft.Xna.Framework; using StardewModdingAPI; +using StardewModdingAPI.Events; using StardewValley; using StardewValley.TerrainFeatures; namespace Entoarox.FasterPaths { + /// The mod entry class. [SuppressMessage("ReSharper", "UnusedMember.Global", Justification = "Used by SMAPI.")] internal class ModEntry : Mod { @@ -28,8 +30,21 @@ public override void Entry(IModHelper helper) { this.Config = this.Helper.ReadConfig(); + helper.Events.GameLoop.GameLaunched += this.OnGameLaunched; helper.Events.GameLoop.UpdateTicked += this.OnUpdateTicked; + helper.ConsoleCommands.Add("fp_info", "Gives info about the path you are currently standing on", this.CommandInfo); + } + + + /********* + ** Protected methods + *********/ + /// Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations. + /// The event sender. + /// The event data. + private void OnGameLaunched(object sender, GameLaunchedEventArgs e) + { this.Modifiers = new[] { new PlayerModifier { WalkSpeedModifier = this.Config.WoodFloorBoost, RunSpeedModifier = this.Config.WoodFloorBoost }, @@ -46,10 +61,6 @@ public override void Entry(IModHelper helper) this.Helper.Player().Modifiers.Add(new PlayerModifier { WalkSpeedModifier = this.Config.WalkSpeedBoost, RunSpeedModifier = this.Config.RunSpeedBoost }); } - - /********* - ** Protected methods - *********/ /// Raised after the game state is updated (≈60 times per second). /// The event sender. /// The event arguments. diff --git a/FasterPaths/Properties/AssemblyInfo.cs b/FasterPaths/Properties/AssemblyInfo.cs deleted file mode 100644 index d2d1bb4..0000000 --- a/FasterPaths/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("FasterPaths")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyVersion("1.3.5")] -[assembly: AssemblyFileVersion("1.3.5")] diff --git a/Framework/Core/EntoaroxFrameworkMod.cs b/Framework/Core/EntoaroxFrameworkMod.cs index b647363..14d7f70 100644 --- a/Framework/Core/EntoaroxFrameworkMod.cs +++ b/Framework/Core/EntoaroxFrameworkMod.cs @@ -26,6 +26,7 @@ namespace Entoarox.Framework.Core { + /// The mod entry class. internal class EntoaroxFrameworkMod : Mod { /********* @@ -157,6 +158,7 @@ public override void Entry(IModHelper helper) helper.Events.Input.ButtonReleased += this.OnButtonReleased; } + /// Get an API that other mods can access. This is always called after . public override object GetApi() { return new EntoaroxFrameworkAPI(); @@ -551,15 +553,14 @@ private void OnSaving(object sender, SavingEventArgs e) } Game1.player.Items = this.Serialize(data, Game1.player.Items.ToList()); var house = (Game1.getLocationFromName("FarmHouse") as FarmHouse); - if (house.fridge.Value != null) - house.fridge.Value.items.Set(this.Serialize(data, house.fridge.Value.items.ToList())); + house.fridge.Value?.items.Set(this.Serialize(data, house.fridge.Value.items.ToList())); this.Monitor.Log("Found and serialized [" + data.Count + "] Item instances", LogLevel.Trace); this.Monitor.Log("Found and serialized [" + features.Count + "] TerrainFeature instances", LogLevel.Trace); this.Monitor.Log("Found and serialized [" + locations.Count + "] GameLocation instances", LogLevel.Trace); string path = Path.Combine(Constants.CurrentSavePath, "Entoarox.Framework"); - this.Helper.WriteJsonFile(Path.Combine(path, "CustomItems.json"), data); - this.Helper.WriteJsonFile(Path.Combine(path, "CustomTerrain.json"), features); - this.Helper.WriteJsonFile(Path.Combine(path, "CustomLocations.json"), locations); + this.Helper.Data.WriteJsonFile(Path.Combine(path, "CustomItems.json"), data); + this.Helper.Data.WriteJsonFile(Path.Combine(path, "CustomTerrain.json"), features); + this.Helper.Data.WriteJsonFile(Path.Combine(path, "CustomLocations.json"), locations); ItemEvents.FireAfterSerialize(); this.Monitor.Log("Packing complete", LogLevel.Trace); /* diff --git a/Framework/Core/UpdateInfo.cs b/Framework/Core/UpdateInfo.cs deleted file mode 100644 index 74e6ddb..0000000 --- a/Framework/Core/UpdateInfo.cs +++ /dev/null @@ -1,137 +0,0 @@ -using System; -using System.IO; -using System.Net; -using System.Threading.Tasks; -using System.Collections.Generic; - -using StardewModdingAPI; - -using Newtonsoft.Json; - -using StardewValley; - -namespace Entoarox.Framework.Core -{ - internal class UpdateInfo - { - public string Latest; - public string Recommended; - public string Minimum; - - public static Dictionary Map = new Dictionary(); - - private static void HandleError(string name,WebException err) - { - switch (err.Status) - { - case WebExceptionStatus.ConnectFailure: - ModEntry.Logger.Log("[UpdateChecker] The `" + name + "` mod failed to check for updates, connection failed.", LogLevel.Error); - break; - case WebExceptionStatus.NameResolutionFailure: - ModEntry.Logger.Log("[UpdateChecker] The `" + name + "` mod failed to check for updates, DNS resolution failed", LogLevel.Error); - break; - case WebExceptionStatus.SecureChannelFailure: - ModEntry.Logger.Log("[UpdateChecker] The `" + name + "` mod failed to check for updates, SSL handshake failed", LogLevel.Error); - break; - case WebExceptionStatus.Timeout: - ModEntry.Logger.Log("[UpdateChecker] The `" + name + "` mod failed to check for updates, Connection timed out", LogLevel.Error); - break; - case WebExceptionStatus.TrustFailure: - ModEntry.Logger.Log("[UpdateChecker] The `" + name + "` mod failed to check for updates, SSL certificate cannot be validated", LogLevel.Error); - break; - case WebExceptionStatus.ProtocolError: - HttpWebResponse response = (HttpWebResponse)err.Response; - ModEntry.Logger.Log($"[UpdateChecker] The `{name}` mod failed to check for updates, Server protocol error.\n\t[{response.StatusCode}]: {response.StatusDescription}", LogLevel.Error); - break; - default: - ModEntry.Logger.Log("[UpdateChecker] The `" + name + "` mod failed to check for updates, a unknown error occured." + Environment.NewLine + err.ToString(), LogLevel.Error); - break; - } - } - public static void DoUpdateChecks() - { - try - { - string version = typeof(Game1).Assembly.GetName().Version.ToString(2); - bool Connected; - try - { - using (WebClient client = new WebClient()) - using (Stream stream = client.OpenRead("http://www.google.com")) - Connected = true; - } - catch - { - Connected = false; - } - if(Connected) - Parallel.ForEach(Map, (pair) => - { - try - { - WebClient Client = new WebClient(); - Uri uri = new Uri(pair.Value); - SemanticVersion modVersion = (SemanticVersion)pair.Key.Version; - try - { - Client.DownloadStringCompleted += (sender, evt) => - { - try - { - if (evt.Error != null) - { - HandleError(pair.Key.Name, (WebException)evt.Error); - return; - } - Dictionary Data = JsonConvert.DeserializeObject>(evt.Result); - UpdateInfo info = null; - if (Data.ContainsKey(version)) - info = Data[version]; - else if (Data.ContainsKey("Default")) - info = Data["Default"]; - else - ModEntry.Logger.ExitGameImmediately("[UpdateChecker] The `" + pair.Key.Name + "` mod does not support the current version of SDV."); - if (info != null) - { - SemanticVersion min = new SemanticVersion(info.Minimum); - SemanticVersion rec = new SemanticVersion(info.Recommended); - SemanticVersion max = new SemanticVersion(info.Latest); - if (min.IsNewerThan(modVersion)) - ModEntry.Logger.ExitGameImmediately("[UpdateChecker] The `" + pair.Key.Name + "` mod is too old, a newer version is required."); - if (rec.IsNewerThan(modVersion)) - ModEntry.Logger.Log("[UpdateChecker] The `" + pair.Key.Name + "` mod has a new version available, it is recommended you update now.", LogLevel.Alert); - if (modVersion.IsBetween(rec, max)) - ModEntry.Logger.Log("[UpdateChecker] The `" + pair.Key.Name + "` mod has a new version available.", LogLevel.Info); - } - } - catch (WebException err) - { - HandleError(pair.Key.Name, err); - } - catch (Exception err) - { - ModEntry.Logger.Log("[UpdateChecker] The `" + pair.Key.Name + "` mod failed to check for updates, unexpected error occured while reading result." + Environment.NewLine + err.ToString(), LogLevel.Error); - } - }; - Client.DownloadStringAsync(uri); - } - catch (WebException err) - { - HandleError(pair.Key.Name, err); - } - } - catch(Exception err) - { - ModEntry.Logger.Log("[UpdateChecker] The `" + pair.Key.Name + "` mod failed to check for updates, unexpected error occured." + Environment.NewLine + err.ToString(), LogLevel.Error); - } - }); - else - ModEntry.Logger.Log("[UpdateChecker] No internet connection, skipping update checks.", LogLevel.Debug); - } - catch(Exception err) - { - ModEntry.Logger.Log("[UpdateChecker] Unexpected failure, unexpected error occured."+Environment.NewLine+err.ToString(), LogLevel.Error); - } - } - } -} \ No newline at end of file diff --git a/Framework/EntoaroxFramework.csproj b/Framework/EntoaroxFramework.csproj index 8fcf6ba..2f45558 100644 --- a/Framework/EntoaroxFramework.csproj +++ b/Framework/EntoaroxFramework.csproj @@ -1,214 +1,25 @@ - - - + + - Debug - x86 - {174275E7-3AE4-41A6-9884-9E08A07D1101} - Library - Properties - Entoarox.Framework EntoaroxFramework - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - 1024 - 7.1 - - - true - full - true - bin\Release\ - TRACE - prompt - 4 - x86 - CS0618 - 7.1 + Entoarox.Framework + 2.4.2 + net452 + + true + - - - - - False - ..\Harmony.dll - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - Always - - \ No newline at end of file + + + + diff --git a/Framework/IContentHelper.cs b/Framework/IContentHelper.cs deleted file mode 100644 index 51d3824..0000000 --- a/Framework/IContentHelper.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Collections.Generic; - -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; - -using StardewModdingAPI; - -namespace Entoarox.Framework -{ - public interface IContentHelper// : IContentHelper - { - /// Load content from the game folder or mod folder (if not already cached), and return it. - /// The expected data type. The main supported types are and dictionaries; other types may be supported by the game's content pipeline. - /// The asset key to fetch (if the is ), or the local path to a content file relative to the mod folder. - /// Where to search for a matching content asset. - /// The is empty or contains invalid characters. - /// The content asset couldn't be loaded (e.g. because it doesn't exist). - T Load(string key, ContentSource source = ContentSource.ModFolder); - /// Get the underlying key in the game's content cache for an asset. This can be used to load custom map tilesheets, but should be avoided when you can use the content API instead. This does not validate whether the asset exists. - /// The asset key to fetch (if the is ), or the local path to a content file relative to the mod folder. - /// Where to search for a matching content asset. - /// The is empty or contains invalid characters. - string GetActualAssetKey(string key, ContentSource source = ContentSource.ModFolder); - void RegisterContentHandler(IContentHandler handler); - void RegisterTexturePatch(string assetName, string patchAssetName, Rectangle? destination = null, Rectangle? source = null); - void RegisterTexturePatch(string assetName, Texture2D patchAsset, Rectangle? destination = null, Rectangle? source = null); - void RegisterDictionaryPatch(string assetName, string patchAssetName); - void RegisterDictionaryPatch(string assetName, Dictionary patchAsset); - void RegisterXnbReplacement(string assetName, string replacementAssetName); - void RegisterLoader(string assetName, AssetLoader assetLoader); - void RegisterLoader(AssetLoader assetLoader); - void RegisterInjector(string assetName, AssetInjector assetInjector); - void RegisterInjector(AssetInjector assetInjector); - } -} diff --git a/Framework/Properties/AssemblyInfo.cs b/Framework/Properties/AssemblyInfo.cs deleted file mode 100644 index 140a99e..0000000 --- a/Framework/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("EntoaroxFramework")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyVersion("2.4.2")] -[assembly: AssemblyFileVersion("2.4.2")] diff --git a/Framework/UI/Utility.cs b/Framework/UI/Utility.cs deleted file mode 100644 index 1b7dc36..0000000 --- a/Framework/UI/Utility.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Entoarox.Framework.UI -{ - class Utility - { - } -} diff --git a/FurnitureAnywhere/FurnitureAnywhere.csproj b/FurnitureAnywhere/FurnitureAnywhere.csproj index 3c4c560..fe22b01 100644 --- a/FurnitureAnywhere/FurnitureAnywhere.csproj +++ b/FurnitureAnywhere/FurnitureAnywhere.csproj @@ -1,66 +1,26 @@ - - - + + - Debug - x86 - {753CFB03-2CC1-478E-AA3D-9F42CD724709} - Library - Properties - Entoarox.FurnitureAnywhere FurnitureAnywhere - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - 7.1 - - - true - full - true - bin\Release\ - TRACE - prompt - 4 - x86 - 7.1 + Entoarox.FurnitureAnywhere + 1.1.7 + net452 + + true + - - - - - E:\SteamGames\steamapps\common\Stardew Valley\smapi-internal\0Harmony.dll - - - - - - - - + + + - {174275e7-3ae4-41a6-9884-9e08a07d1101} - EntoaroxFramework - False + false - - - - - - - \ No newline at end of file + + + + diff --git a/FurnitureAnywhere/ModEntry.cs b/FurnitureAnywhere/ModEntry.cs index badfb14..cfade9c 100644 --- a/FurnitureAnywhere/ModEntry.cs +++ b/FurnitureAnywhere/ModEntry.cs @@ -14,6 +14,7 @@ namespace Entoarox.FurnitureAnywhere { + /// The mod entry class. [SuppressMessage("ReSharper", "UnusedMember.Global", Justification = "Used by SMAPI.")] internal class ModEntry : Mod { diff --git a/FurnitureAnywhere/Properties/AssemblyInfo.cs b/FurnitureAnywhere/Properties/AssemblyInfo.cs deleted file mode 100644 index c18665d..0000000 --- a/FurnitureAnywhere/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("FurnitureAnywhere")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyVersion("1.1.7")] -[assembly: AssemblyFileVersion("1.1.7")] diff --git a/Harmony.dll b/Harmony.dll deleted file mode 100644 index a95b6df..0000000 Binary files a/Harmony.dll and /dev/null differ diff --git a/LanguagePatcher/LanguagePatcher.csproj b/LanguagePatcher/LanguagePatcher.csproj index a09b9f4..7eb650c 100644 --- a/LanguagePatcher/LanguagePatcher.csproj +++ b/LanguagePatcher/LanguagePatcher.csproj @@ -1,70 +1,17 @@ - - - + + - Debug - AnyCPU - {64EAD78D-04D6-4D96-B1B2-350865064344} - Exe - LanguagePatcher LanguagePatcher - v4.5 - 512 - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - 7.1 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - 7.1 + LanguagePatcher + 1.0.0 + net452 + Exe + - - ..\packages\Mono.Cecil.0.10.3\lib\net40\Mono.Cecil.dll - False - - - ..\packages\Mono.Cecil.0.10.3\lib\net40\Mono.Cecil.Mdb.dll - False - - - ..\packages\Mono.Cecil.0.10.3\lib\net40\Mono.Cecil.Pdb.dll - False - - - ..\packages\Mono.Cecil.0.10.3\lib\net40\Mono.Cecil.Rocks.dll - False - - - - - - - - - - - - - - - - - + - - \ No newline at end of file + + + + diff --git a/LanguagePatcher/Properties/AssemblyInfo.cs b/LanguagePatcher/Properties/AssemblyInfo.cs deleted file mode 100644 index 5ffc527..0000000 --- a/LanguagePatcher/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("LanguagePatcher")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("LanguagePatcher")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("64ead78d-04d6-4d96-b1b2-350865064344")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/LanguagePatcher/packages.config b/LanguagePatcher/packages.config deleted file mode 100644 index b660425..0000000 --- a/LanguagePatcher/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/MagicJunimoPet/Behaviours/FollowBehaviour.cs b/MagicJunimoPet/Behaviours/FollowBehaviour.cs index dfc95d9..3aca5b2 100644 --- a/MagicJunimoPet/Behaviours/FollowBehaviour.cs +++ b/MagicJunimoPet/Behaviours/FollowBehaviour.cs @@ -5,6 +5,7 @@ using System.Threading.Tasks; using Microsoft.Xna.Framework; using StardewValley; +using StardewValley.Locations; namespace MagicJunimoPet.Behaviours { diff --git a/MagicJunimoPet/MJPModEntry.cs b/MagicJunimoPet/MJPModEntry.cs index 7fa8452..33d4978 100644 --- a/MagicJunimoPet/MJPModEntry.cs +++ b/MagicJunimoPet/MJPModEntry.cs @@ -8,11 +8,15 @@ namespace MagicJunimoPet { + /// The mod entry class. public class MJPModEntry : Mod { internal static string TexturePath; internal static MagicJunimo Junimo; internal static IModHelper SHelper; + + /// The mod entry point, called after the mod is first loaded. + /// Provides simplified APIs for writing mods. public override void Entry(IModHelper helper) { SHelper = helper; @@ -22,6 +26,7 @@ public override void Entry(IModHelper helper) helper.Events.GameLoop.DayStarted += this.OnDayStarted; helper.Events.Input.ButtonReleased += this.OnButtonReleased; } + private void SpawnJunimo() { Junimo = new MagicJunimo diff --git a/MagicJunimoPet/MagicJunimoPet.csproj b/MagicJunimoPet/MagicJunimoPet.csproj index 37ec003..a7b00f1 100644 --- a/MagicJunimoPet/MagicJunimoPet.csproj +++ b/MagicJunimoPet/MagicJunimoPet.csproj @@ -1,95 +1,16 @@ - - - + + - Debug - AnyCPU - {48A2B145-8E61-4038-90E1-58367322194B} - Library - Properties - MagicJunimoPet MagicJunimoPet - v4.5 - 512 - - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - 7.1 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - x86 - 7.1 + MagicJunimoPet + 1.1.2 + net452 + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Always - - - Always - - - - - - - - - - - Always - + - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - \ No newline at end of file + + + + diff --git a/MagicJunimoPet/Properties/AssemblyInfo.cs b/MagicJunimoPet/Properties/AssemblyInfo.cs deleted file mode 100644 index 75459db..0000000 --- a/MagicJunimoPet/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("MagicJunimoPet")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("MagicJunimoPet")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("48a2b145-8e61-4038-90e1-58367322194b")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/MagicJunimoPet/SmartPet.cs b/MagicJunimoPet/SmartPet.cs index 1839033..0d931be 100644 --- a/MagicJunimoPet/SmartPet.cs +++ b/MagicJunimoPet/SmartPet.cs @@ -42,7 +42,7 @@ public void ModExperience(int amount) public void AddAbility(Ability ability) { if (ability.Pet != null) - throw new ArgumentException("Invalid ability, already assigned to a pet.", nameof(ability); + throw new ArgumentException("Invalid ability, already assigned to a pet.", nameof(ability)); this.Abilities.Add(ability.Id, ability); ability.Pet = this; } diff --git a/MagicJunimoPet/packages.config b/MagicJunimoPet/packages.config deleted file mode 100644 index af793ad..0000000 --- a/MagicJunimoPet/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/MoreAnimals/ModEntry.cs b/MoreAnimals/ModEntry.cs index 87b8c42..9e9cf13 100644 --- a/MoreAnimals/ModEntry.cs +++ b/MoreAnimals/ModEntry.cs @@ -24,6 +24,7 @@ namespace Entoarox.MorePetsAndAnimals { + /// The mod entry class. internal class ModEntry : Mod { /********* @@ -76,6 +77,7 @@ public override void Entry(IModHelper helper) ModEntry.SMonitor = this.Monitor; // Event listeners + helper.Events.GameLoop.GameLaunched += this.OnGameLaunched; helper.Events.GameLoop.ReturnedToTitle += this.OnReturnedToTitle; helper.Events.GameLoop.SaveLoaded += this.LoadSkinMap; helper.Events.GameLoop.Saving += this.SaveSkinMap; @@ -87,7 +89,13 @@ public override void Entry(IModHelper helper) helper.ConsoleCommands.Add("list_animal_types", "Lists all animal types on your farm.", this.OnCommandReceived); helper.ConsoleCommands.Add("list_animal_skins", "Lists all animal skins used on your farm.", this.OnCommandReceived); helper.ConsoleCommands.Add("reset_animal_skins", "Lists all animal skins used on your farm.", this.OnCommandReceived); + } + /// Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations. + /// The event sender. + /// The event data. + private void OnGameLaunched(object sender, GameLaunchedEventArgs e) + { // Prepare BabyDuck override try { @@ -95,9 +103,9 @@ public override void Entry(IModHelper helper) Game1.content.Load(asset); BabyDuck = new AnimalSkin("BabyDuck", 0, asset); } - catch (Exception e) + catch (Exception ex) { - this.Monitor.Log("Unable to patch BabyDuck due to exception:", LogLevel.Error, e); + this.Monitor.Log("Unable to patch BabyDuck due to exception:", LogLevel.Error, ex); } // Register default supported animal types @@ -114,9 +122,9 @@ public override void Entry(IModHelper helper) Api.RegisterAnimalType("White Chicken"); Api.RegisterAnimalType("White Cow"); - if(Config.ExtraTypes!=null && Config.ExtraTypes.Length>0) - foreach (string type in Config.ExtraTypes) - Api.RegisterAnimalType(type, false); + if (Config.ExtraTypes != null && Config.ExtraTypes.Length > 0) + foreach (string type in Config.ExtraTypes) + Api.RegisterAnimalType(type, false); // Register default supported pet types Api.RegisterPetType("cat", typeof(Cat)); @@ -125,6 +133,7 @@ public override void Entry(IModHelper helper) // Trigger setup this.DoSetup(); } + private void DoSetup() { if (ModEntry.Config.AnimalsOnly) diff --git a/MoreAnimals/MoreAnimals.csproj b/MoreAnimals/MoreAnimals.csproj index 290301c..1751fbe 100644 --- a/MoreAnimals/MoreAnimals.csproj +++ b/MoreAnimals/MoreAnimals.csproj @@ -1,150 +1,22 @@ - - - + + - Debug - x86 - {3710E6E1-296C-481D-B577-4BA6CCAF2E94} - Library - Properties - Entoarox.MorePetsAndAnimals MoreAnimals - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - 7.1 - - - true - full - true - bin\Release\ - TRACE - prompt - 4 - x86 - 7.1 + Entoarox.MorePetsAndAnimals + 3.0.2 + net452 + - - - - - - - - - - - - + + - {174275e7-3ae4-41a6-9884-9e08a07d1101} - EntoaroxFramework - False + false - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - Always - - - Always - - - Always - - - Always - - - Always - - - Always - - - Always - - - - - - - \ No newline at end of file + + + + diff --git a/MoreAnimals/Properties/AssemblyInfo.cs b/MoreAnimals/Properties/AssemblyInfo.cs deleted file mode 100644 index 2921763..0000000 --- a/MoreAnimals/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("MorePets")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyVersion("2.1.0")] -[assembly: AssemblyFileVersion("2.1.0")] diff --git a/PlayGround/ModWrapper.cs b/PlayGround/ModWrapper.cs index bb3f796..bb8fe76 100644 --- a/PlayGround/ModWrapper.cs +++ b/PlayGround/ModWrapper.cs @@ -17,8 +17,11 @@ namespace PlayGround { + /// The mod entry class. class ModWrapper : Mod { + /// The mod entry point, called after the mod is first loaded. + /// Provides simplified APIs for writing mods. public override void Entry(IModHelper helper) { this.Helper.ConsoleCommands.Add("pg_debug", "pg_debug ", (cmd, args) => diff --git a/PlayGround/PlayGround.csproj b/PlayGround/PlayGround.csproj index 85edf5b..f6c66a0 100644 --- a/PlayGround/PlayGround.csproj +++ b/PlayGround/PlayGround.csproj @@ -1,74 +1,22 @@ - - - + + - Debug - x86 - {B2A28A37-3C82-4D6D-A97E-8DA9BBCBD368} - Library - Properties - PlayGround PlayGround - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - true - full - true - bin\Release\ - TRACE - prompt - 4 - x86 + PlayGround + 0.0.1 + net452 + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - {174275e7-3ae4-41a6-9884-9e08a07d1101} - EntoaroxFramework - False + false - - \ No newline at end of file + + + + diff --git a/PlayGround/Properties/AssemblyInfo.cs b/PlayGround/Properties/AssemblyInfo.cs deleted file mode 100644 index adf0548..0000000 --- a/PlayGround/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("PlayGround")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyVersion("0.0.1")] -[assembly: AssemblyFileVersion("0.0.1")] diff --git a/SeasonalImmersion/ModEntry.cs b/SeasonalImmersion/ModEntry.cs index 5fe6145..dd77bd5 100644 --- a/SeasonalImmersion/ModEntry.cs +++ b/SeasonalImmersion/ModEntry.cs @@ -16,6 +16,7 @@ namespace Entoarox.SeasonalImmersion { + /// The mod entry class. public class ModEntry : Mod { /********* @@ -63,6 +64,18 @@ public override void Entry(IModHelper helper) this.Config = helper.ReadConfig(); ModEntry.FilePath = helper.DirectoryPath; + helper.Events.GameLoop.GameLaunched += this.OnGameLaunched; + } + + + /********* + ** Protected methods + *********/ + /// Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations. + /// The event sender. + /// The event data. + private void OnGameLaunched(object sender, GameLaunchedEventArgs e) + { try { this.VerboseLog("Loading Seasonal Immersion ContentPack..."); @@ -73,13 +86,9 @@ public override void Entry(IModHelper helper) this.Monitor.Log($"Could not load ContentPack\n{ex.Message}\n{ex.StackTrace}", LogLevel.Error); } - helper.Content.AssetLoaders.Add(new SeasonalTextureLoader()); + this.Helper.Content.AssetLoaders.Add(new SeasonalTextureLoader()); } - - /********* - ** Protected methods - *********/ private Texture2D PreMultiply(Texture2D texture) { try @@ -196,8 +205,8 @@ private void LoadContent() ModEntry.SeasonTextures.Add(name, textures); } - PlayerEvents.Warped += this.PlayerEvents_Warped; - TimeEvents.AfterDayStarted += this.TimeEvents_AfterDayStarted; + this.Helper.Events.Player.Warped += this.OnWarped; + this.Helper.Events.GameLoop.DayStarted += this.OnDayStarted; this.Monitor.Log($"ContentPack processed, found [{ModEntry.SeasonTextures.Count}] seasonal files", LogLevel.Info); } @@ -309,15 +318,21 @@ private void UpdateTextures() } } - private void TimeEvents_AfterDayStarted(object s, EventArgs e) + /// Raised after the game begins a new day (including when the player loads a save). + /// The event sender. + /// The event data. + private void OnDayStarted(object sender, DayStartedEventArgs e) { if (Game1.dayOfMonth == 1) this.UpdateTextures(); } - private void PlayerEvents_Warped(object s, EventArgsPlayerWarped e) + /// Raised after a player warps to a new location. NOTE: this event is currently only raised for the current player. + /// The event sender. + /// The event data. + private void OnWarped(object sender, WarpedEventArgs e) { - if (e.NewLocation.Name == "Farm" || (e.PriorLocation != null && e.PriorLocation.IsOutdoors != e.NewLocation.IsOutdoors)) + if (e.NewLocation.Name == "Farm" || (e.OldLocation != null && e.OldLocation.IsOutdoors != e.NewLocation.IsOutdoors)) this.UpdateTextures(); } diff --git a/SeasonalImmersion/Properties/AssemblyInfo.cs b/SeasonalImmersion/Properties/AssemblyInfo.cs deleted file mode 100644 index 38b9994..0000000 --- a/SeasonalImmersion/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("SeasonalImmersion")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyVersion("1.12.1")] -[assembly: AssemblyFileVersion("1.12.1")] diff --git a/SeasonalImmersion/SeasonalImmersion.csproj b/SeasonalImmersion/SeasonalImmersion.csproj index 15cdbcc..04b335b 100644 --- a/SeasonalImmersion/SeasonalImmersion.csproj +++ b/SeasonalImmersion/SeasonalImmersion.csproj @@ -1,62 +1,24 @@ - - - + + - Debug - x86 - {7AD206DC-A3A3-4DFF-9C8A-FF7F8F849DF7} - Library - Properties - Entoarox.SeasonalImmersion SeasonalImmersion - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - TRACE;DEBUG - prompt - 4 - x86 - - - true - full - true - bin\Release\ - TRACE - prompt - 4 - x86 + Entoarox.SeasonalImmersion + 1.12.1 + net452 + - + + .\Ionic.Zip.dll False - - - - - - - - - - - - - - - + @@ -123,5 +85,7 @@ - - \ No newline at end of file + + + + diff --git a/ShopExpander/ModEntry.cs b/ShopExpander/ModEntry.cs index 5364a45..d9810fd 100644 --- a/ShopExpander/ModEntry.cs +++ b/ShopExpander/ModEntry.cs @@ -10,6 +10,7 @@ namespace Entoarox.ShopExpander { + /// The mod entry class. internal class ModEntry : Mod { /********* diff --git a/ShopExpander/Properties/AssemblyInfo.cs b/ShopExpander/Properties/AssemblyInfo.cs deleted file mode 100644 index 1be65c1..0000000 --- a/ShopExpander/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("ShopExpander")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyVersion("1.6.2")] -[assembly: AssemblyFileVersion("1.6.2")] diff --git a/ShopExpander/ShopExpander.csproj b/ShopExpander/ShopExpander.csproj index 5c0f6c7..13e030c 100644 --- a/ShopExpander/ShopExpander.csproj +++ b/ShopExpander/ShopExpander.csproj @@ -1,63 +1,22 @@ - - - + + - Debug - x86 - {99F3DE47-D310-4FD1-ACC6-8362D9D35CD7} - Library - Properties - Entoarox.ShopExpander ShopExpander - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - 7.1 - - - true - full - true - bin\Release\ - TRACE - prompt - 4 - x86 - 7.1 + Entoarox.ShopExpander + 1.6.2 + net452 + - - - - - - - - - - - + + - {174275e7-3ae4-41a6-9884-9e08a07d1101} - EntoaroxFramework - False + false - - - - - - - \ No newline at end of file + + + + diff --git a/StardewMods.sln b/StardewMods.sln index 7615ca9..b9a520e 100644 --- a/StardewMods.sln +++ b/StardewMods.sln @@ -1,191 +1,147 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.27703.2026 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29020.237 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SeasonalImmersion", "SeasonalImmersion\SeasonalImmersion.csproj", "{7AD206DC-A3A3-4DFF-9C8A-FF7F8F849DF7}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".root", ".root", "{CDFE013F-220E-4430-B50A-92AE7DD51D59}" + ProjectSection(SolutionItems) = preProject + .editorconfig = .editorconfig + .gitattributes = .gitattributes + .gitignore = .gitignore + common.targets = common.targets + README.md = README.md + EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EntoaroxFramework", "Framework\EntoaroxFramework.csproj", "{174275E7-3AE4-41A6-9884-9E08A07D1101}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Black Magic", "Black Magic", "{819BEEFF-4CCF-4A5A-9B04-05DD857009E6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdvancedLocationLoader", "AdvancedLocationLoader\AdvancedLocationLoader.csproj", "{9EA06249-2096-43E0-B616-DDD3FE731147}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Inactive", "Inactive", "{17A2E74C-37E0-4E64-9F6D-0E7560415BD9}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FurnitureAnywhere", "FurnitureAnywhere\FurnitureAnywhere.csproj", "{753CFB03-2CC1-478E-AA3D-9F42CD724709}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AdvancedLocationLoader", "AdvancedLocationLoader\AdvancedLocationLoader.csproj", "{2093F499-7320-41D9-82E2-3D48C225DBEF}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExtendedMinecart", "ExtendedMinecart\ExtendedMinecart.csproj", "{CA467BEA-932F-4133-ACA0-D634670C2488}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AdvancedLocationLoader2", "AdvancedLocationLoader2\AdvancedLocationLoader2.csproj", "{212C70A2-F2CB-4F49-8BB2-7678B0E828A7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MoreAnimals", "MoreAnimals\MoreAnimals.csproj", "{3710E6E1-296C-481D-B577-4BA6CCAF2E94}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CustomBooks", "CustomBooks\CustomBooks.csproj", "{4DC6749D-6EBB-402C-8B56-1051384C2B4B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShopExpander", "ShopExpander\ShopExpander.csproj", "{99F3DE47-D310-4FD1-ACC6-8362D9D35CD7}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CustomPaths", "CustomPaths\CustomPaths.csproj", "{07B262A9-699B-4BB8-A412-C7A6E62C947F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XnbLoader", "XnbLoader\XnbLoader.csproj", "{3DBFB980-B11C-4171-AAD6-C39DD0AD312F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DialogueFramework", "DialogueFramework\DialogueFramework.csproj", "{04AB4256-D592-4074-8FA4-8CC2C12555BC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FasterPaths", "FasterPaths\FasterPaths.csproj", "{B9CDF893-2243-46D1-8CB6-CE48B8973023}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DynamicDungeons", "DynamicDungeons\DynamicDungeons.csproj", "{46B6E397-C741-45C7-B753-EE1A098F8A66}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".root", ".root", "{CDFE013F-220E-4430-B50A-92AE7DD51D59}" - ProjectSection(SolutionItems) = preProject - .editorconfig = .editorconfig - README.md = README.md - EndProjectSection +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EntoaroxFramework", "Framework\EntoaroxFramework.csproj", "{D8DB5CF4-E020-4362-94B7-AAFC47574B81}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicDungeons", "DynamicDungeons\DynamicDungeons.csproj", "{AE355745-73FE-45C6-BA17-DE56744BB3D6}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExtendedMinecart", "ExtendedMinecart\ExtendedMinecart.csproj", "{26551C17-0E92-455C-88B0-E5F8F033E816}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlayGround", "PlayGround\PlayGround.csproj", "{B2A28A37-3C82-4D6D-A97E-8DA9BBCBD368}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FasterPaths", "FasterPaths\FasterPaths.csproj", "{F3FB7932-33F1-498F-B0B0-6DD013032FEF}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomBooks", "CustomBooks\CustomBooks.csproj", "{AE56920C-7F17-4E17-B703-6586B190EF04}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurnitureAnywhere", "FurnitureAnywhere\FurnitureAnywhere.csproj", "{C46B4D32-E69D-4D4E-A649-580762E059A7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomPaths", "CustomPaths\CustomPaths.csproj", "{19A8DB34-7A24-4576-B50F-7EB02D09E465}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LanguagePatcher", "LanguagePatcher\LanguagePatcher.csproj", "{75F03B32-DB19-4239-9967-D82C9C3365A2}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Inactive", "Inactive", "{17A2E74C-37E0-4E64-9F6D-0E7560415BD9}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MagicJunimoPet", "MagicJunimoPet\MagicJunimoPet.csproj", "{89E398E3-D8A7-4AA5-98BC-8D759F1B5A5C}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Black Magic", "Black Magic", "{819BEEFF-4CCF-4A5A-9B04-05DD857009E6}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MoreAnimals", "MoreAnimals\MoreAnimals.csproj", "{84F2500C-7777-41F7-AD6A-B74B6ECA54BF}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LanguagePatcher", "LanguagePatcher\LanguagePatcher.csproj", "{64EAD78D-04D6-4D96-B1B2-350865064344}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PlayGround", "PlayGround\PlayGround.csproj", "{EC78598A-BACD-4CF8-A657-1FDD0C9FEC49}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MagicJunimoPet", "MagicJunimoPet\MagicJunimoPet.csproj", "{48A2B145-8E61-4038-90E1-58367322194B}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SeasonalImmersion", "SeasonalImmersion\SeasonalImmersion.csproj", "{62A65D14-235C-4CFA-A4AB-0DF266DF5D82}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SundropCity", "SundropCity\SundropCity.csproj", "{414FAE92-0580-4C5B-8187-97E260A8309A}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ShopExpander", "ShopExpander\ShopExpander.csproj", "{4D1A9CED-F1DA-4045-80AE-134557D760DA}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DialogueFramework", "DialogueFramework\DialogueFramework.csproj", "{1ADC0DCB-5229-4DB7-B4B1-B58F9281F1A3}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SundropCity", "SundropCity\SundropCity.csproj", "{D6162223-CE03-4713-8D7E-102A1D445379}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdvancedLocationLoader2", "AdvancedLocationLoader2\AdvancedLocationLoader2.csproj", "{3E6083A5-7122-4E40-B720-D4436CD816B5}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XnbLoader", "XnbLoader\XnbLoader.csproj", "{78F8CDEE-5EC7-48E1-AE12-E6D76F1E15D7}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {7AD206DC-A3A3-4DFF-9C8A-FF7F8F849DF7}.Debug|Any CPU.ActiveCfg = Debug|x86 - {7AD206DC-A3A3-4DFF-9C8A-FF7F8F849DF7}.Debug|x86.ActiveCfg = Debug|x86 - {7AD206DC-A3A3-4DFF-9C8A-FF7F8F849DF7}.Debug|x86.Build.0 = Debug|x86 - {7AD206DC-A3A3-4DFF-9C8A-FF7F8F849DF7}.Release|Any CPU.ActiveCfg = Release|x86 - {7AD206DC-A3A3-4DFF-9C8A-FF7F8F849DF7}.Release|x86.ActiveCfg = Release|x86 - {7AD206DC-A3A3-4DFF-9C8A-FF7F8F849DF7}.Release|x86.Build.0 = Release|x86 - {174275E7-3AE4-41A6-9884-9E08A07D1101}.Debug|Any CPU.ActiveCfg = Debug|x86 - {174275E7-3AE4-41A6-9884-9E08A07D1101}.Debug|x86.ActiveCfg = Debug|x86 - {174275E7-3AE4-41A6-9884-9E08A07D1101}.Debug|x86.Build.0 = Debug|x86 - {174275E7-3AE4-41A6-9884-9E08A07D1101}.Release|Any CPU.ActiveCfg = Release|x86 - {174275E7-3AE4-41A6-9884-9E08A07D1101}.Release|x86.ActiveCfg = Release|x86 - {174275E7-3AE4-41A6-9884-9E08A07D1101}.Release|x86.Build.0 = Release|x86 - {9EA06249-2096-43E0-B616-DDD3FE731147}.Debug|Any CPU.ActiveCfg = Debug|x86 - {9EA06249-2096-43E0-B616-DDD3FE731147}.Debug|x86.ActiveCfg = Debug|x86 - {9EA06249-2096-43E0-B616-DDD3FE731147}.Debug|x86.Build.0 = Debug|x86 - {9EA06249-2096-43E0-B616-DDD3FE731147}.Release|Any CPU.ActiveCfg = Release|x86 - {9EA06249-2096-43E0-B616-DDD3FE731147}.Release|x86.ActiveCfg = Release|x86 - {9EA06249-2096-43E0-B616-DDD3FE731147}.Release|x86.Build.0 = Release|x86 - {753CFB03-2CC1-478E-AA3D-9F42CD724709}.Debug|Any CPU.ActiveCfg = Debug|x86 - {753CFB03-2CC1-478E-AA3D-9F42CD724709}.Debug|x86.ActiveCfg = Debug|x86 - {753CFB03-2CC1-478E-AA3D-9F42CD724709}.Debug|x86.Build.0 = Debug|x86 - {753CFB03-2CC1-478E-AA3D-9F42CD724709}.Release|Any CPU.ActiveCfg = Release|x86 - {753CFB03-2CC1-478E-AA3D-9F42CD724709}.Release|x86.ActiveCfg = Release|x86 - {753CFB03-2CC1-478E-AA3D-9F42CD724709}.Release|x86.Build.0 = Release|x86 - {CA467BEA-932F-4133-ACA0-D634670C2488}.Debug|Any CPU.ActiveCfg = Debug|x86 - {CA467BEA-932F-4133-ACA0-D634670C2488}.Debug|x86.ActiveCfg = Debug|x86 - {CA467BEA-932F-4133-ACA0-D634670C2488}.Debug|x86.Build.0 = Debug|x86 - {CA467BEA-932F-4133-ACA0-D634670C2488}.Release|Any CPU.ActiveCfg = Release|x86 - {CA467BEA-932F-4133-ACA0-D634670C2488}.Release|x86.ActiveCfg = Release|x86 - {CA467BEA-932F-4133-ACA0-D634670C2488}.Release|x86.Build.0 = Release|x86 - {3710E6E1-296C-481D-B577-4BA6CCAF2E94}.Debug|Any CPU.ActiveCfg = Debug|x86 - {3710E6E1-296C-481D-B577-4BA6CCAF2E94}.Debug|x86.ActiveCfg = Debug|x86 - {3710E6E1-296C-481D-B577-4BA6CCAF2E94}.Debug|x86.Build.0 = Debug|x86 - {3710E6E1-296C-481D-B577-4BA6CCAF2E94}.Release|Any CPU.ActiveCfg = Release|x86 - {3710E6E1-296C-481D-B577-4BA6CCAF2E94}.Release|x86.ActiveCfg = Release|x86 - {3710E6E1-296C-481D-B577-4BA6CCAF2E94}.Release|x86.Build.0 = Release|x86 - {99F3DE47-D310-4FD1-ACC6-8362D9D35CD7}.Debug|Any CPU.ActiveCfg = Debug|x86 - {99F3DE47-D310-4FD1-ACC6-8362D9D35CD7}.Debug|x86.ActiveCfg = Debug|x86 - {99F3DE47-D310-4FD1-ACC6-8362D9D35CD7}.Debug|x86.Build.0 = Debug|x86 - {99F3DE47-D310-4FD1-ACC6-8362D9D35CD7}.Release|Any CPU.ActiveCfg = Release|x86 - {99F3DE47-D310-4FD1-ACC6-8362D9D35CD7}.Release|x86.ActiveCfg = Release|x86 - {99F3DE47-D310-4FD1-ACC6-8362D9D35CD7}.Release|x86.Build.0 = Release|x86 - {3DBFB980-B11C-4171-AAD6-C39DD0AD312F}.Debug|Any CPU.ActiveCfg = Debug|x86 - {3DBFB980-B11C-4171-AAD6-C39DD0AD312F}.Debug|x86.ActiveCfg = Debug|x86 - {3DBFB980-B11C-4171-AAD6-C39DD0AD312F}.Debug|x86.Build.0 = Debug|x86 - {3DBFB980-B11C-4171-AAD6-C39DD0AD312F}.Release|Any CPU.ActiveCfg = Release|x86 - {3DBFB980-B11C-4171-AAD6-C39DD0AD312F}.Release|x86.ActiveCfg = Release|x86 - {3DBFB980-B11C-4171-AAD6-C39DD0AD312F}.Release|x86.Build.0 = Release|x86 - {B9CDF893-2243-46D1-8CB6-CE48B8973023}.Debug|Any CPU.ActiveCfg = Debug|x86 - {B9CDF893-2243-46D1-8CB6-CE48B8973023}.Debug|x86.ActiveCfg = Debug|x86 - {B9CDF893-2243-46D1-8CB6-CE48B8973023}.Debug|x86.Build.0 = Debug|x86 - {B9CDF893-2243-46D1-8CB6-CE48B8973023}.Release|Any CPU.ActiveCfg = Release|x86 - {B9CDF893-2243-46D1-8CB6-CE48B8973023}.Release|x86.ActiveCfg = Release|x86 - {B9CDF893-2243-46D1-8CB6-CE48B8973023}.Release|x86.Build.0 = Release|x86 - {AE355745-73FE-45C6-BA17-DE56744BB3D6}.Debug|Any CPU.ActiveCfg = Debug|x86 - {AE355745-73FE-45C6-BA17-DE56744BB3D6}.Debug|x86.ActiveCfg = Debug|x86 - {AE355745-73FE-45C6-BA17-DE56744BB3D6}.Debug|x86.Build.0 = Debug|x86 - {AE355745-73FE-45C6-BA17-DE56744BB3D6}.Release|Any CPU.ActiveCfg = Release|x86 - {AE355745-73FE-45C6-BA17-DE56744BB3D6}.Release|x86.ActiveCfg = Release|x86 - {AE355745-73FE-45C6-BA17-DE56744BB3D6}.Release|x86.Build.0 = Release|x86 - {B2A28A37-3C82-4D6D-A97E-8DA9BBCBD368}.Debug|Any CPU.ActiveCfg = Debug|x86 - {B2A28A37-3C82-4D6D-A97E-8DA9BBCBD368}.Debug|x86.ActiveCfg = Debug|x86 - {B2A28A37-3C82-4D6D-A97E-8DA9BBCBD368}.Debug|x86.Build.0 = Debug|x86 - {B2A28A37-3C82-4D6D-A97E-8DA9BBCBD368}.Release|Any CPU.ActiveCfg = Release|x86 - {B2A28A37-3C82-4D6D-A97E-8DA9BBCBD368}.Release|x86.ActiveCfg = Release|x86 - {B2A28A37-3C82-4D6D-A97E-8DA9BBCBD368}.Release|x86.Build.0 = Release|x86 - {AE56920C-7F17-4E17-B703-6586B190EF04}.Debug|Any CPU.ActiveCfg = Debug|x86 - {AE56920C-7F17-4E17-B703-6586B190EF04}.Debug|x86.ActiveCfg = Debug|x86 - {AE56920C-7F17-4E17-B703-6586B190EF04}.Debug|x86.Build.0 = Debug|x86 - {AE56920C-7F17-4E17-B703-6586B190EF04}.Release|Any CPU.ActiveCfg = Release|x86 - {AE56920C-7F17-4E17-B703-6586B190EF04}.Release|x86.ActiveCfg = Release|x86 - {AE56920C-7F17-4E17-B703-6586B190EF04}.Release|x86.Build.0 = Release|x86 - {19A8DB34-7A24-4576-B50F-7EB02D09E465}.Debug|Any CPU.ActiveCfg = Debug|x86 - {19A8DB34-7A24-4576-B50F-7EB02D09E465}.Debug|x86.ActiveCfg = Debug|x86 - {19A8DB34-7A24-4576-B50F-7EB02D09E465}.Debug|x86.Build.0 = Debug|x86 - {19A8DB34-7A24-4576-B50F-7EB02D09E465}.Release|Any CPU.ActiveCfg = Release|x86 - {19A8DB34-7A24-4576-B50F-7EB02D09E465}.Release|x86.ActiveCfg = Release|x86 - {19A8DB34-7A24-4576-B50F-7EB02D09E465}.Release|x86.Build.0 = Release|x86 - {64EAD78D-04D6-4D96-B1B2-350865064344}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {64EAD78D-04D6-4D96-B1B2-350865064344}.Debug|Any CPU.Build.0 = Debug|Any CPU - {64EAD78D-04D6-4D96-B1B2-350865064344}.Debug|x86.ActiveCfg = Debug|Any CPU - {64EAD78D-04D6-4D96-B1B2-350865064344}.Debug|x86.Build.0 = Debug|Any CPU - {64EAD78D-04D6-4D96-B1B2-350865064344}.Release|Any CPU.ActiveCfg = Release|Any CPU - {64EAD78D-04D6-4D96-B1B2-350865064344}.Release|Any CPU.Build.0 = Release|Any CPU - {64EAD78D-04D6-4D96-B1B2-350865064344}.Release|x86.ActiveCfg = Release|Any CPU - {64EAD78D-04D6-4D96-B1B2-350865064344}.Release|x86.Build.0 = Release|Any CPU - {48A2B145-8E61-4038-90E1-58367322194B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {48A2B145-8E61-4038-90E1-58367322194B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {48A2B145-8E61-4038-90E1-58367322194B}.Debug|x86.ActiveCfg = Debug|Any CPU - {48A2B145-8E61-4038-90E1-58367322194B}.Debug|x86.Build.0 = Debug|Any CPU - {48A2B145-8E61-4038-90E1-58367322194B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {48A2B145-8E61-4038-90E1-58367322194B}.Release|Any CPU.Build.0 = Release|Any CPU - {48A2B145-8E61-4038-90E1-58367322194B}.Release|x86.ActiveCfg = Release|Any CPU - {48A2B145-8E61-4038-90E1-58367322194B}.Release|x86.Build.0 = Release|Any CPU - {414FAE92-0580-4C5B-8187-97E260A8309A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {414FAE92-0580-4C5B-8187-97E260A8309A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {414FAE92-0580-4C5B-8187-97E260A8309A}.Debug|x86.ActiveCfg = Debug|Any CPU - {414FAE92-0580-4C5B-8187-97E260A8309A}.Debug|x86.Build.0 = Debug|Any CPU - {414FAE92-0580-4C5B-8187-97E260A8309A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {414FAE92-0580-4C5B-8187-97E260A8309A}.Release|Any CPU.Build.0 = Release|Any CPU - {414FAE92-0580-4C5B-8187-97E260A8309A}.Release|x86.ActiveCfg = Release|Any CPU - {414FAE92-0580-4C5B-8187-97E260A8309A}.Release|x86.Build.0 = Release|Any CPU - {1ADC0DCB-5229-4DB7-B4B1-B58F9281F1A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1ADC0DCB-5229-4DB7-B4B1-B58F9281F1A3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1ADC0DCB-5229-4DB7-B4B1-B58F9281F1A3}.Debug|x86.ActiveCfg = Debug|Any CPU - {1ADC0DCB-5229-4DB7-B4B1-B58F9281F1A3}.Debug|x86.Build.0 = Debug|Any CPU - {1ADC0DCB-5229-4DB7-B4B1-B58F9281F1A3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1ADC0DCB-5229-4DB7-B4B1-B58F9281F1A3}.Release|Any CPU.Build.0 = Release|Any CPU - {1ADC0DCB-5229-4DB7-B4B1-B58F9281F1A3}.Release|x86.ActiveCfg = Release|Any CPU - {1ADC0DCB-5229-4DB7-B4B1-B58F9281F1A3}.Release|x86.Build.0 = Release|Any CPU - {3E6083A5-7122-4E40-B720-D4436CD816B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3E6083A5-7122-4E40-B720-D4436CD816B5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3E6083A5-7122-4E40-B720-D4436CD816B5}.Debug|x86.ActiveCfg = Debug|Any CPU - {3E6083A5-7122-4E40-B720-D4436CD816B5}.Debug|x86.Build.0 = Debug|Any CPU - {3E6083A5-7122-4E40-B720-D4436CD816B5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3E6083A5-7122-4E40-B720-D4436CD816B5}.Release|Any CPU.Build.0 = Release|Any CPU - {3E6083A5-7122-4E40-B720-D4436CD816B5}.Release|x86.ActiveCfg = Release|Any CPU - {3E6083A5-7122-4E40-B720-D4436CD816B5}.Release|x86.Build.0 = Release|Any CPU + {2093F499-7320-41D9-82E2-3D48C225DBEF}.Debug|x86.ActiveCfg = Debug|x86 + {2093F499-7320-41D9-82E2-3D48C225DBEF}.Debug|x86.Build.0 = Debug|x86 + {2093F499-7320-41D9-82E2-3D48C225DBEF}.Release|x86.ActiveCfg = Release|x86 + {2093F499-7320-41D9-82E2-3D48C225DBEF}.Release|x86.Build.0 = Release|x86 + {212C70A2-F2CB-4F49-8BB2-7678B0E828A7}.Debug|x86.ActiveCfg = Debug|x86 + {212C70A2-F2CB-4F49-8BB2-7678B0E828A7}.Debug|x86.Build.0 = Debug|x86 + {212C70A2-F2CB-4F49-8BB2-7678B0E828A7}.Release|x86.ActiveCfg = Release|x86 + {212C70A2-F2CB-4F49-8BB2-7678B0E828A7}.Release|x86.Build.0 = Release|x86 + {4DC6749D-6EBB-402C-8B56-1051384C2B4B}.Debug|x86.ActiveCfg = Debug|x86 + {4DC6749D-6EBB-402C-8B56-1051384C2B4B}.Debug|x86.Build.0 = Debug|x86 + {4DC6749D-6EBB-402C-8B56-1051384C2B4B}.Release|x86.ActiveCfg = Release|x86 + {4DC6749D-6EBB-402C-8B56-1051384C2B4B}.Release|x86.Build.0 = Release|x86 + {07B262A9-699B-4BB8-A412-C7A6E62C947F}.Debug|x86.ActiveCfg = Debug|x86 + {07B262A9-699B-4BB8-A412-C7A6E62C947F}.Debug|x86.Build.0 = Debug|x86 + {07B262A9-699B-4BB8-A412-C7A6E62C947F}.Release|x86.ActiveCfg = Release|x86 + {07B262A9-699B-4BB8-A412-C7A6E62C947F}.Release|x86.Build.0 = Release|x86 + {04AB4256-D592-4074-8FA4-8CC2C12555BC}.Debug|x86.ActiveCfg = Debug|x86 + {04AB4256-D592-4074-8FA4-8CC2C12555BC}.Debug|x86.Build.0 = Debug|x86 + {04AB4256-D592-4074-8FA4-8CC2C12555BC}.Release|x86.ActiveCfg = Release|x86 + {04AB4256-D592-4074-8FA4-8CC2C12555BC}.Release|x86.Build.0 = Release|x86 + {46B6E397-C741-45C7-B753-EE1A098F8A66}.Debug|x86.ActiveCfg = Debug|x86 + {46B6E397-C741-45C7-B753-EE1A098F8A66}.Debug|x86.Build.0 = Debug|x86 + {46B6E397-C741-45C7-B753-EE1A098F8A66}.Release|x86.ActiveCfg = Release|x86 + {46B6E397-C741-45C7-B753-EE1A098F8A66}.Release|x86.Build.0 = Release|x86 + {D8DB5CF4-E020-4362-94B7-AAFC47574B81}.Debug|x86.ActiveCfg = Debug|x86 + {D8DB5CF4-E020-4362-94B7-AAFC47574B81}.Debug|x86.Build.0 = Debug|x86 + {D8DB5CF4-E020-4362-94B7-AAFC47574B81}.Release|x86.ActiveCfg = Release|x86 + {D8DB5CF4-E020-4362-94B7-AAFC47574B81}.Release|x86.Build.0 = Release|x86 + {26551C17-0E92-455C-88B0-E5F8F033E816}.Debug|x86.ActiveCfg = Debug|x86 + {26551C17-0E92-455C-88B0-E5F8F033E816}.Debug|x86.Build.0 = Debug|x86 + {26551C17-0E92-455C-88B0-E5F8F033E816}.Release|x86.ActiveCfg = Release|x86 + {26551C17-0E92-455C-88B0-E5F8F033E816}.Release|x86.Build.0 = Release|x86 + {F3FB7932-33F1-498F-B0B0-6DD013032FEF}.Debug|x86.ActiveCfg = Debug|x86 + {F3FB7932-33F1-498F-B0B0-6DD013032FEF}.Debug|x86.Build.0 = Debug|x86 + {F3FB7932-33F1-498F-B0B0-6DD013032FEF}.Release|x86.ActiveCfg = Release|x86 + {F3FB7932-33F1-498F-B0B0-6DD013032FEF}.Release|x86.Build.0 = Release|x86 + {C46B4D32-E69D-4D4E-A649-580762E059A7}.Debug|x86.ActiveCfg = Debug|x86 + {C46B4D32-E69D-4D4E-A649-580762E059A7}.Debug|x86.Build.0 = Debug|x86 + {C46B4D32-E69D-4D4E-A649-580762E059A7}.Release|x86.ActiveCfg = Release|x86 + {C46B4D32-E69D-4D4E-A649-580762E059A7}.Release|x86.Build.0 = Release|x86 + {75F03B32-DB19-4239-9967-D82C9C3365A2}.Debug|x86.ActiveCfg = Debug|x86 + {75F03B32-DB19-4239-9967-D82C9C3365A2}.Debug|x86.Build.0 = Debug|x86 + {75F03B32-DB19-4239-9967-D82C9C3365A2}.Release|x86.ActiveCfg = Release|x86 + {75F03B32-DB19-4239-9967-D82C9C3365A2}.Release|x86.Build.0 = Release|x86 + {89E398E3-D8A7-4AA5-98BC-8D759F1B5A5C}.Debug|x86.ActiveCfg = Debug|x86 + {89E398E3-D8A7-4AA5-98BC-8D759F1B5A5C}.Debug|x86.Build.0 = Debug|x86 + {89E398E3-D8A7-4AA5-98BC-8D759F1B5A5C}.Release|x86.ActiveCfg = Release|x86 + {89E398E3-D8A7-4AA5-98BC-8D759F1B5A5C}.Release|x86.Build.0 = Release|x86 + {84F2500C-7777-41F7-AD6A-B74B6ECA54BF}.Debug|x86.ActiveCfg = Debug|x86 + {84F2500C-7777-41F7-AD6A-B74B6ECA54BF}.Debug|x86.Build.0 = Debug|x86 + {84F2500C-7777-41F7-AD6A-B74B6ECA54BF}.Release|x86.ActiveCfg = Release|x86 + {84F2500C-7777-41F7-AD6A-B74B6ECA54BF}.Release|x86.Build.0 = Release|x86 + {EC78598A-BACD-4CF8-A657-1FDD0C9FEC49}.Debug|x86.ActiveCfg = Debug|x86 + {EC78598A-BACD-4CF8-A657-1FDD0C9FEC49}.Debug|x86.Build.0 = Debug|x86 + {EC78598A-BACD-4CF8-A657-1FDD0C9FEC49}.Release|x86.ActiveCfg = Release|x86 + {EC78598A-BACD-4CF8-A657-1FDD0C9FEC49}.Release|x86.Build.0 = Release|x86 + {62A65D14-235C-4CFA-A4AB-0DF266DF5D82}.Debug|x86.ActiveCfg = Debug|x86 + {62A65D14-235C-4CFA-A4AB-0DF266DF5D82}.Debug|x86.Build.0 = Debug|x86 + {62A65D14-235C-4CFA-A4AB-0DF266DF5D82}.Release|x86.ActiveCfg = Release|x86 + {62A65D14-235C-4CFA-A4AB-0DF266DF5D82}.Release|x86.Build.0 = Release|x86 + {4D1A9CED-F1DA-4045-80AE-134557D760DA}.Debug|x86.ActiveCfg = Debug|x86 + {4D1A9CED-F1DA-4045-80AE-134557D760DA}.Debug|x86.Build.0 = Debug|x86 + {4D1A9CED-F1DA-4045-80AE-134557D760DA}.Release|x86.ActiveCfg = Release|x86 + {4D1A9CED-F1DA-4045-80AE-134557D760DA}.Release|x86.Build.0 = Release|x86 + {D6162223-CE03-4713-8D7E-102A1D445379}.Debug|x86.ActiveCfg = Debug|x86 + {D6162223-CE03-4713-8D7E-102A1D445379}.Debug|x86.Build.0 = Debug|x86 + {D6162223-CE03-4713-8D7E-102A1D445379}.Release|x86.ActiveCfg = Release|x86 + {D6162223-CE03-4713-8D7E-102A1D445379}.Release|x86.Build.0 = Release|x86 + {78F8CDEE-5EC7-48E1-AE12-E6D76F1E15D7}.Debug|x86.ActiveCfg = Debug|x86 + {78F8CDEE-5EC7-48E1-AE12-E6D76F1E15D7}.Debug|x86.Build.0 = Debug|x86 + {78F8CDEE-5EC7-48E1-AE12-E6D76F1E15D7}.Release|x86.ActiveCfg = Release|x86 + {78F8CDEE-5EC7-48E1-AE12-E6D76F1E15D7}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {7AD206DC-A3A3-4DFF-9C8A-FF7F8F849DF7} = {17A2E74C-37E0-4E64-9F6D-0E7560415BD9} - {3DBFB980-B11C-4171-AAD6-C39DD0AD312F} = {17A2E74C-37E0-4E64-9F6D-0E7560415BD9} - {AE355745-73FE-45C6-BA17-DE56744BB3D6} = {17A2E74C-37E0-4E64-9F6D-0E7560415BD9} - {B2A28A37-3C82-4D6D-A97E-8DA9BBCBD368} = {17A2E74C-37E0-4E64-9F6D-0E7560415BD9} - {AE56920C-7F17-4E17-B703-6586B190EF04} = {17A2E74C-37E0-4E64-9F6D-0E7560415BD9} - {64EAD78D-04D6-4D96-B1B2-350865064344} = {819BEEFF-4CCF-4A5A-9B04-05DD857009E6} + {4DC6749D-6EBB-402C-8B56-1051384C2B4B} = {17A2E74C-37E0-4E64-9F6D-0E7560415BD9} + {07B262A9-699B-4BB8-A412-C7A6E62C947F} = {17A2E74C-37E0-4E64-9F6D-0E7560415BD9} + {46B6E397-C741-45C7-B753-EE1A098F8A66} = {17A2E74C-37E0-4E64-9F6D-0E7560415BD9} + {75F03B32-DB19-4239-9967-D82C9C3365A2} = {819BEEFF-4CCF-4A5A-9B04-05DD857009E6} + {EC78598A-BACD-4CF8-A657-1FDD0C9FEC49} = {17A2E74C-37E0-4E64-9F6D-0E7560415BD9} + {62A65D14-235C-4CFA-A4AB-0DF266DF5D82} = {17A2E74C-37E0-4E64-9F6D-0E7560415BD9} + {78F8CDEE-5EC7-48E1-AE12-E6D76F1E15D7} = {17A2E74C-37E0-4E64-9F6D-0E7560415BD9} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {71BE6CBB-13AD-4DAC-8B44-35F22FBE1E8F} diff --git a/SundropCity/Properties/AssemblyInfo.cs b/SundropCity/Properties/AssemblyInfo.cs deleted file mode 100644 index 541a45b..0000000 --- a/SundropCity/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("SundropCity")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("SundropCity")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("414fae92-0580-4c5b-8187-97e260a8309a")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SundropCity/SundropCity.csproj b/SundropCity/SundropCity.csproj index d72683d..532c0b3 100644 --- a/SundropCity/SundropCity.csproj +++ b/SundropCity/SundropCity.csproj @@ -1,91 +1,17 @@ - - - + + - Debug - AnyCPU - {414FAE92-0580-4C5B-8187-97E260A8309A} - Library - Properties - SundropCity SundropCity - v4.5 - 512 - true - - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - 7.1 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - x86 - 7.1 + SundropCity + 0.1.0 + net452 + - - ..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - - - - - - - - - - - - - - - - - Always - - - Always - - - Always - - - - - - - + + - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - \ No newline at end of file + + + + diff --git a/SundropCity/SundropCityMod.cs b/SundropCity/SundropCityMod.cs index 717ccda..6c3db35 100644 --- a/SundropCity/SundropCityMod.cs +++ b/SundropCity/SundropCityMod.cs @@ -22,6 +22,7 @@ namespace SundropCity { + /// The mod entry class. public class SundropCityMod : Mod { internal static IModHelper SHelper; @@ -31,6 +32,8 @@ public class SundropCityMod : Mod private List Maps; + /// The mod entry point, called after the mod is first loaded. + /// Provides simplified APIs for writing mods. public override void Entry(IModHelper helper) { // Define internals @@ -40,9 +43,27 @@ public override void Entry(IModHelper helper) // Add custom loader to make custom tree work helper.Content.AssetLoaders.Add(new SundropLoader()); + // Setup events + helper.Events.GameLoop.GameLaunched += this.OnGameLaunched; + helper.Events.GameLoop.SaveLoaded += this.OnSaveLoaded; + helper.Events.GameLoop.Saved += this.OnSaved; + helper.Events.GameLoop.Saving += this.OnSaving; + + // Handle ALL not providing extra layer drawing + if (!helper.ModRegistry.IsLoaded("Entoarox.AdvancedLocationLoader") || helper.ModRegistry.Get("Entoarox.AdvancedLocationLoader").Manifest.Version.IsOlderThan("1.5.0")) + helper.Events.Player.Warped += this.OnWarped; + } + + /// Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations. + /// The event sender. + /// The event data. + private void OnGameLaunched(object sender, GameLaunchedEventArgs e) + { + var helper = this.Helper; + // Load maps List maps = new List(); - foreach(string file in Directory.EnumerateFiles(Path.Combine(helper.DirectoryPath,"assets","Maps"))) + foreach (string file in Directory.EnumerateFiles(Path.Combine(this.Helper.DirectoryPath, "assets", "Maps"))) { string ext = Path.GetExtension(file); this.Monitor.Log($"Checking file: {file} (ext: {ext})", LogLevel.Trace); @@ -52,7 +73,7 @@ public override void Entry(IModHelper helper) this.Monitor.Log("Found sundrop location: " + map, LogLevel.Trace); try { - helper.Content.Load(Path.Combine("assets", "Maps", map)); + this.Helper.Content.Load(Path.Combine("assets", "Maps", map)); maps.Add(map); } catch(Exception err) @@ -62,14 +83,6 @@ public override void Entry(IModHelper helper) } this.Maps = maps; - // Setup events - helper.Events.GameLoop.SaveLoaded += this.OnSaveLoaded; - helper.Events.GameLoop.Saved += this.OnSaved; - helper.Events.GameLoop.Saving += this.OnSaving; - - // Handle ALL not providing extra layer drawing - if (!helper.ModRegistry.IsLoaded("Entoarox.AdvancedLocationLoader") || helper.ModRegistry.Get("Entoarox.AdvancedLocationLoader").Manifest.Version.IsOlderThan("1.5.0")) - helper.Events.Player.Warped += this.OnWarped; JObject dict = helper.Content.Load("assets/Data/ParkingSpots.json"); foreach(JProperty map in dict.Properties()) diff --git a/SundropCity/packages.config b/SundropCity/packages.config deleted file mode 100644 index 611c7bb..0000000 --- a/SundropCity/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/XnbLoader/ModEntry.cs b/XnbLoader/ModEntry.cs index 7680676..8b8b5cf 100644 --- a/XnbLoader/ModEntry.cs +++ b/XnbLoader/ModEntry.cs @@ -3,10 +3,12 @@ using System.IO; using Entoarox.Framework; using StardewModdingAPI; +using StardewModdingAPI.Events; using StardewValley; namespace Entoarox.XnbLoader { + /// The mod entry class. [SuppressMessage("ReSharper", "UnusedMember.Global", Justification = "Used by SMAPI.")] internal class ModEntry : Mod { @@ -54,6 +56,18 @@ public override void Entry(IModHelper helper) { this.Config = helper.ReadConfig(); + helper.Events.GameLoop.GameLaunched += this.OnGameLaunched; + } + + + /********* + ** Private methods + *********/ + /// Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations. + /// The event sender. + /// The event data. + private void OnGameLaunched(object sender, GameLaunchedEventArgs e) + { // prepare directory structure string contentPath = Path.Combine(this.Helper.DirectoryPath, this.ContentFolderName); foreach (string path in this.PathsToCreate) @@ -68,10 +82,6 @@ public override void Entry(IModHelper helper) this.Monitor.Log($"Found and redirected [{overrides}] files", LogLevel.Info); } - - /********* - ** Private methods - *********/ /// Recursively find XNBs and register them with the content registry. /// The root path being searched. /// The path for which to load XNBs. diff --git a/XnbLoader/Properties/AssemblyInfo.cs b/XnbLoader/Properties/AssemblyInfo.cs deleted file mode 100644 index e948866..0000000 --- a/XnbLoader/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyTitle("XnbLoader")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyVersion("1.1.11")] -[assembly: AssemblyFileVersion("1.1.11")] diff --git a/XnbLoader/XnbLoader.csproj b/XnbLoader/XnbLoader.csproj index 442b1df..2eec9e4 100644 --- a/XnbLoader/XnbLoader.csproj +++ b/XnbLoader/XnbLoader.csproj @@ -1,59 +1,22 @@ - - - + + - Debug - x86 - {3DBFB980-B11C-4171-AAD6-C39DD0AD312F} - Library - Properties - Entoarox.XnbLoader XnbLoader - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - - - true - full - true - bin\Release\ - TRACE - prompt - 4 - x86 + Entoarox.XnbLoader + 1.1.11 + net452 + - - - - - - - - - - - - - - + + - {174275e7-3ae4-41a6-9884-9e08a07d1101} - EntoaroxFramework - False + false - - \ No newline at end of file + + + + diff --git a/common.targets b/common.targets new file mode 100644 index 0000000..ecb3456 --- /dev/null +++ b/common.targets @@ -0,0 +1,15 @@ + + + + + Entoarox + https://github.com/Entoarox/StardewMods + git + + + 7.1 + x86 + x86 + + +