diff options
| -rw-r--r-- | CHANGELOG.md | 93 | ||||
| -rw-r--r-- | README.md | 95 | ||||
| -rw-r--r-- | docs/imgs/SMAPI.png | bin | 0 -> 252371 bytes | |||
| -rw-r--r-- | src/BobberBar Private Fields.txt (renamed from BobberBar Private Fields.txt) | 0 | ||||
| -rw-r--r-- | src/Game1 Static Fields.txt (renamed from Game1 Static Fields.txt) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI.sln (renamed from StardewModdingAPI.sln) | 2 | ||||
| -rw-r--r-- | src/StardewModdingAPI/App.config (renamed from StardewModdingAPI/App.config) | 2 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Command.cs (renamed from StardewModdingAPI/Command.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Config.cs (renamed from StardewModdingAPI/Config.cs) | 2 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Constants.cs (renamed from StardewModdingAPI/Constants.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Entities/SCharacter.cs (renamed from StardewModdingAPI/Entities/SCharacter.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Entities/SFarm.cs (renamed from StardewModdingAPI/Entities/SFarm.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Entities/SFarmAnimal.cs (renamed from StardewModdingAPI/Entities/SFarmAnimal.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Entities/SNpc.cs (renamed from StardewModdingAPI/Entities/SNpc.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Entities/SPlayer.cs (renamed from StardewModdingAPI/Entities/SPlayer.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Events/Controls.cs (renamed from StardewModdingAPI/Events/Controls.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Events/EventArgs.cs (renamed from StardewModdingAPI/Events/EventArgs.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Events/Game.cs (renamed from StardewModdingAPI/Events/Game.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Events/Graphics.cs (renamed from StardewModdingAPI/Events/Graphics.cs) | 7 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Events/Location.cs (renamed from StardewModdingAPI/Events/Location.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Events/Menu.cs (renamed from StardewModdingAPI/Events/Menu.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Events/Mine.cs (renamed from StardewModdingAPI/Events/Mine.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Events/Player.cs (renamed from StardewModdingAPI/Events/Player.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Events/Time.cs (renamed from StardewModdingAPI/Events/Time.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Extensions.cs (renamed from StardewModdingAPI/Extensions.cs) | 2 | ||||
| -rw-r--r-- | src/StardewModdingAPI/FodyWeavers.xml (renamed from StardewModdingAPI/FodyWeavers.xml) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Inheritance/ItemStackChange.cs (renamed from StardewModdingAPI/Inheritance/ItemStackChange.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Inheritance/Menus/SBobberBar.cs (renamed from StardewModdingAPI/Inheritance/Menus/SBobberBar.cs) | 12 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Inheritance/Menus/SGameMenu.cs (renamed from StardewModdingAPI/Inheritance/Menus/SGameMenu.cs) | 7 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Inheritance/Menus/SInventoryPage.cs (renamed from StardewModdingAPI/Inheritance/Menus/SInventoryPage.cs) | 3 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Inheritance/Minigames/SMinigameBase.cs (renamed from StardewModdingAPI/Inheritance/Minigames/SMinigameBase.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Inheritance/SBareObject.cs (renamed from StardewModdingAPI/Inheritance/SBareObject.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Inheritance/SGame.cs (renamed from StardewModdingAPI/Inheritance/SGame.cs) | 46 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Inheritance/SObject.cs (renamed from StardewModdingAPI/Inheritance/SObject.cs) | 34 | ||||
| -rw-r--r-- | src/StardewModdingAPI/JsonResolver.cs (renamed from StardewModdingAPI/JsonResolver.cs) | 4 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Logger.cs (renamed from StardewModdingAPI/Logger.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Manifest.cs (renamed from StardewModdingAPI/Manifest.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Mod.cs (renamed from StardewModdingAPI/Mod.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/ModItem.cs (renamed from StardewModdingAPI/ModItem.cs) | 5 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Program.cs (renamed from StardewModdingAPI/Program.cs) | 32 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Properties/AssemblyInfo.cs (renamed from StardewModdingAPI/Properties/AssemblyInfo.cs) | 12 | ||||
| -rw-r--r-- | src/StardewModdingAPI/StardewModdingAPI.csproj (renamed from StardewModdingAPI/StardewModdingAPI.csproj) | 30 | ||||
| -rw-r--r-- | src/StardewModdingAPI/Version.cs (renamed from StardewModdingAPI/Version.cs) | 0 | ||||
| -rw-r--r-- | src/StardewModdingAPI/icon.ico (renamed from StardewModdingAPI/icon.ico) | bin | 4286 -> 4286 bytes | |||
| -rw-r--r-- | src/StardewModdingAPI/packages.config (renamed from StardewModdingAPI/packages.config) | 12 | ||||
| -rw-r--r-- | src/StardewModdingAPI/steam_appid.txt (renamed from StardewModdingAPI/steam_appid.txt) | 0 | ||||
| -rw-r--r-- | src/TrainerMod/FodyWeavers.xml (renamed from TrainerMod/FodyWeavers.xml) | 0 | ||||
| -rw-r--r-- | src/TrainerMod/Properties/AssemblyInfo.cs (renamed from TrainerMod/Properties/AssemblyInfo.cs) | 0 | ||||
| -rw-r--r-- | src/TrainerMod/TrainerMod.cs (renamed from TrainerMod/TrainerMod.cs) | 3 | ||||
| -rw-r--r-- | src/TrainerMod/TrainerMod.csproj (renamed from TrainerMod/TrainerMod.csproj) | 13 | ||||
| -rw-r--r-- | src/TrainerMod/manifest.json (renamed from TrainerMod/manifest.json) | 0 | ||||
| -rw-r--r-- | src/TrainerMod/packages.config (renamed from TrainerMod/packages.config) | 8 | ||||
| -rw-r--r-- | src/Vanilla Items List.txt (renamed from Vanilla Items List.txt) | 0 |
53 files changed, 290 insertions, 134 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..98aab7ae --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,93 @@ +# Change Log + +## [Unreleased](https://github.com/CLxS/SMAPI/tree/HEAD) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.40.0...HEAD) + +## [0.40.0](https://github.com/CLxS/SMAPI/tree/0.40.0) (2016-04-05) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.39.7...0.40.0) + +## [0.39.7](https://github.com/CLxS/SMAPI/tree/0.39.7) (2016-04-04) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.39.6...0.39.7) + +## [0.39.6](https://github.com/CLxS/SMAPI/tree/0.39.6) (2016-04-01) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.39.5...0.39.6) + +## [0.39.5](https://github.com/CLxS/SMAPI/tree/0.39.5) (2016-03-30) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.39.4...0.39.5) + +## [0.39.4](https://github.com/CLxS/SMAPI/tree/0.39.4) (2016-03-29) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.39.3...0.39.4) + +## [0.39.3](https://github.com/CLxS/SMAPI/tree/0.39.3) (2016-03-28) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.39.2...0.39.3) + +## [0.39.2](https://github.com/CLxS/SMAPI/tree/0.39.2) (2016-03-23) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.39.1...0.39.2) + +## [0.39.1](https://github.com/CLxS/SMAPI/tree/0.39.1) (2016-03-23) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.38.8...0.39.1) + +## [0.38.8](https://github.com/CLxS/SMAPI/tree/0.38.8) (2016-03-23) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.38.7...0.38.8) + +## [0.38.7](https://github.com/CLxS/SMAPI/tree/0.38.7) (2016-03-23) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.38.6...0.38.7) + +## [0.38.6](https://github.com/CLxS/SMAPI/tree/0.38.6) (2016-03-22) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.38.5...0.38.6) + +## [0.38.5](https://github.com/CLxS/SMAPI/tree/0.38.5) (2016-03-22) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.38.4...0.38.5) + +## [0.38.4](https://github.com/CLxS/SMAPI/tree/0.38.4) (2016-03-21) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.38.3...0.38.4) + +## [0.38.3](https://github.com/CLxS/SMAPI/tree/0.38.3) (2016-03-21) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.38.2...0.38.3) + +## [0.38.2](https://github.com/CLxS/SMAPI/tree/0.38.2) (2016-03-21) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.38.0...0.38.2) + +## [0.38.0](https://github.com/CLxS/SMAPI/tree/0.38.0) (2016-03-20) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.38.1...0.38.0) + +## [0.38.1](https://github.com/CLxS/SMAPI/tree/0.38.1) (2016-03-20) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.37.3...0.38.1) + +## [0.37.3](https://github.com/CLxS/SMAPI/tree/0.37.3) (2016-03-08) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.37.2...0.37.3) + +## [0.37.2](https://github.com/CLxS/SMAPI/tree/0.37.2) (2016-03-07) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.37.1...0.37.2) + +## [0.37.1](https://github.com/CLxS/SMAPI/tree/0.37.1) (2016-03-06) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.36...0.37.1) + +## [0.36](https://github.com/CLxS/SMAPI/tree/0.36) (2016-03-04) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.37...0.36) + +## [0.37](https://github.com/CLxS/SMAPI/tree/0.37) (2016-03-04) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.35...0.37) + +## [0.35](https://github.com/CLxS/SMAPI/tree/0.35) (2016-03-02) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.34...0.35) + +## [0.34](https://github.com/CLxS/SMAPI/tree/0.34) (2016-03-02) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.33...0.34) + +## [0.33](https://github.com/CLxS/SMAPI/tree/0.33) (2016-03-02) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.32...0.33) + +## [0.32](https://github.com/CLxS/SMAPI/tree/0.32) (2016-03-02) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.31...0.32) + +## [0.31](https://github.com/CLxS/SMAPI/tree/0.31) (2016-03-02) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/0.3...0.31) + +## [0.3](https://github.com/CLxS/SMAPI/tree/0.3) (2016-03-01) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/Alpha0.2...0.3) + +## [Alpha0.2](https://github.com/CLxS/SMAPI/tree/Alpha0.2) (2016-02-29) +[Full Changelog](https://github.com/CLxS/SMAPI/compare/Alpha0.1...Alpha0.2) + +## [Alpha0.1](https://github.com/CLxS/SMAPI/tree/Alpha0.1) (2016-02-28)
\ No newline at end of file @@ -1,22 +1,73 @@ -## NOTICE: THIS PROJECT IS STILL IN ALPHA - -# What is SMAPI - -SMAPI (Stardew Modding Application Programming Interface) is a tool to help modders make changes to Stardew. It is a standalone executable which goes alongside your Stardew.exe. - -## Installation - -To install SMAPI: -- Firstly, make sure you have .NET 4.5. You can get it here: https://www.microsoft.com/en-gb/download/details.aspx?id=30653 -- Download the the latest release binary here: https://github.com/ClxS/SMAPI/releases/latest -- Extract the zip file alongside your Stardew.exe, for example, if using Steam this would be somewhere like C:/ProgramFiles/Steam/steamapps/common/StardewValley -- To launch SMAPI, launch StardewValleyModdingAPI.exe - -## Future Plans -- Content only mods -- Support for a wide range of events -- Enable the addition of new custom content such as locations, NPCs, and items. - -## Mod Developers! - -Mod developers would work off the release branch. The master branch will contain mid-version updates which could make your mods incompatable with both the current release and the upcoming releases. +<html> +<body> +<img align="center" src="https://raw.githubusercontent.com/Gormogon/SMAPI/master/docs/imgs/SMAPI.png"/> +<table> + <tr align="center"> + <td width="222px"><a href="https://github.com/ClxS/SMAPI/releases">Version: 0.40.0 Alpha</a></td> + <td width="222px"><a href="https://github.com/ClxS/SMAPI/blob/master/CHANGELOG.md">Changelog</a></td> + <td width="222px"><a href="https://github.com/ClxS/SMAPI/blob/master/LICENSE">License</a></td> + <td width="222px"><a href="https://github.com/ClxS/SMAPI/wiki">Wiki</a></td> + </tr> +</table> +</br> +<table> + <tr> + <td align="center" width="888px"><b>ABOUT</b></td> + </tr> + <tr> + <td> + SMAPI (Stardew Modding Application Programming Interface) is a tool to help modders make changes to Stardew. It is a standalone executable which goes alongside your Stardew.exe. + </td> + </tr> +</table> +<table> + <tr> + <td align="center" width="888px"><b>REQUIREMENTS</b></td> + </tr> + <tr> + <td> + <a href="https://www.microsoft.com/en-us/download/details.aspx?id=49981">Microsoft .NET Framework 4.6.1</a> + </td> + </tr> +</table> +<table> + <tr> + <td align="center" width="888px"><b>INSTALLATION</b></td> + </tr> + <tr> + <td> + <ol> + <li>Make sure all requirements are installed.</li> + <li>Extract the SMAPI zip archive alongside your Stardew.exe. For example, if using Steam this would be somewhere like ‘C:/ProgramFiles/Steam/steamapps/common/StardewValley’.</li> + <li>To start SMAPI, launch StardewModdingAPI.exe.</li> + </ol> + NOTE!: If you are using Steam and still wish to have the Steam overlay while playing, you will need to add a launch option to the game. For example, this launch option will tell Steam to use SMAPI by default: "C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\StardewModdingAPI.exe %command% + </td> + </tr> +</table> +<table> + <tr> + <td align="center" width="888px"><b>MOD DEVELOPERS</b></td> + </tr> + <tr> + <td> + Mod developers would work off the release branch. The master branch will contain mid-version updates which could make your mods incompatable with both the current release and the upcoming releases. You should also take a look at the <a href="https://github.com/ClxS/SMAPI/wiki">Wiki</a> for some quick modding tutorials. + </td> + </tr> +</table> +<table> + <tr> + <td align="center" width="888px"><b>FUTURE PLANS</b></td> + </tr> + <tr> + <td> + <ul> + <li>Content only mods.</li> + <li>Support for a wide range of events.</li> + <li>Enable the addition of new custom content such as locations, NPCs, and items.</li> + </ul> + </td> + </tr> +</table> +</body> +</html> diff --git a/docs/imgs/SMAPI.png b/docs/imgs/SMAPI.png Binary files differnew file mode 100644 index 00000000..50f375b6 --- /dev/null +++ b/docs/imgs/SMAPI.png diff --git a/BobberBar Private Fields.txt b/src/BobberBar Private Fields.txt index 2784f0e7..2784f0e7 100644 --- a/BobberBar Private Fields.txt +++ b/src/BobberBar Private Fields.txt diff --git a/Game1 Static Fields.txt b/src/Game1 Static Fields.txt index 4580f95f..4580f95f 100644 --- a/Game1 Static Fields.txt +++ b/src/Game1 Static Fields.txt diff --git a/StardewModdingAPI.sln b/src/StardewModdingAPI.sln index 9c4a41b5..087d0b36 100644 --- a/StardewModdingAPI.sln +++ b/src/StardewModdingAPI.sln @@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
-VisualStudioVersion = 14.0.24720.0
+VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrainerMod", "TrainerMod\TrainerMod.csproj", "{28480467-1A48-46A7-99F8-236D95225359}"
EndProject
diff --git a/StardewModdingAPI/App.config b/src/StardewModdingAPI/App.config index dc6eaae3..6664f1ed 100644 --- a/StardewModdingAPI/App.config +++ b/src/StardewModdingAPI/App.config @@ -2,7 +2,7 @@ <configuration>
<startup>
- <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<runtime>
<loadFromRemoteSources enabled="true" />
diff --git a/StardewModdingAPI/Command.cs b/src/StardewModdingAPI/Command.cs index 4214b1a7..4214b1a7 100644 --- a/StardewModdingAPI/Command.cs +++ b/src/StardewModdingAPI/Command.cs diff --git a/StardewModdingAPI/Config.cs b/src/StardewModdingAPI/Config.cs index d978d848..c5b7beca 100644 --- a/StardewModdingAPI/Config.cs +++ b/src/StardewModdingAPI/Config.cs @@ -155,7 +155,7 @@ namespace StardewModdingAPI return; } - var s = JsonConvert.SerializeObject(baseConfig, typeof (T), Formatting.Indented, new JsonSerializerSettings {ContractResolver = new JsonResolver()}); + var s = JsonConvert.SerializeObject(baseConfig, typeof(T), Formatting.Indented, new JsonSerializerSettings {ContractResolver = new JsonResolver()}); if (!Directory.Exists(baseConfig.ConfigDir)) Directory.CreateDirectory(baseConfig.ConfigDir); diff --git a/StardewModdingAPI/Constants.cs b/src/StardewModdingAPI/Constants.cs index 0dd387b3..0dd387b3 100644 --- a/StardewModdingAPI/Constants.cs +++ b/src/StardewModdingAPI/Constants.cs diff --git a/StardewModdingAPI/Entities/SCharacter.cs b/src/StardewModdingAPI/Entities/SCharacter.cs index 2d941d55..2d941d55 100644 --- a/StardewModdingAPI/Entities/SCharacter.cs +++ b/src/StardewModdingAPI/Entities/SCharacter.cs diff --git a/StardewModdingAPI/Entities/SFarm.cs b/src/StardewModdingAPI/Entities/SFarm.cs index c6c64681..c6c64681 100644 --- a/StardewModdingAPI/Entities/SFarm.cs +++ b/src/StardewModdingAPI/Entities/SFarm.cs diff --git a/StardewModdingAPI/Entities/SFarmAnimal.cs b/src/StardewModdingAPI/Entities/SFarmAnimal.cs index fb8ee267..fb8ee267 100644 --- a/StardewModdingAPI/Entities/SFarmAnimal.cs +++ b/src/StardewModdingAPI/Entities/SFarmAnimal.cs diff --git a/StardewModdingAPI/Entities/SNpc.cs b/src/StardewModdingAPI/Entities/SNpc.cs index 727dcff7..727dcff7 100644 --- a/StardewModdingAPI/Entities/SNpc.cs +++ b/src/StardewModdingAPI/Entities/SNpc.cs diff --git a/StardewModdingAPI/Entities/SPlayer.cs b/src/StardewModdingAPI/Entities/SPlayer.cs index d464cded..d464cded 100644 --- a/StardewModdingAPI/Entities/SPlayer.cs +++ b/src/StardewModdingAPI/Entities/SPlayer.cs diff --git a/StardewModdingAPI/Events/Controls.cs b/src/StardewModdingAPI/Events/Controls.cs index 6415561a..6415561a 100644 --- a/StardewModdingAPI/Events/Controls.cs +++ b/src/StardewModdingAPI/Events/Controls.cs diff --git a/StardewModdingAPI/Events/EventArgs.cs b/src/StardewModdingAPI/Events/EventArgs.cs index 2bce964e..2bce964e 100644 --- a/StardewModdingAPI/Events/EventArgs.cs +++ b/src/StardewModdingAPI/Events/EventArgs.cs diff --git a/StardewModdingAPI/Events/Game.cs b/src/StardewModdingAPI/Events/Game.cs index 8b8042ed..8b8042ed 100644 --- a/StardewModdingAPI/Events/Game.cs +++ b/src/StardewModdingAPI/Events/Game.cs diff --git a/StardewModdingAPI/Events/Graphics.cs b/src/StardewModdingAPI/Events/Graphics.cs index ed129137..331d3e3a 100644 --- a/StardewModdingAPI/Events/Graphics.cs +++ b/src/StardewModdingAPI/Events/Graphics.cs @@ -45,22 +45,21 @@ namespace StardewModdingAPI.Events /// <summary>
/// Occurs before the GUI is drawn. Does not check for conditional statements.
/// </summary>
-
public static event EventHandler OnPreRenderGuiEventNoCheck = delegate { };
+
/// <summary>
/// Occurs after the GUI is drawn. Does not check for conditional statements.
/// </summary>
-
public static event EventHandler OnPostRenderGuiEventNoCheck = delegate { };
+
/// <summary>
/// Occurs before the HUD is drawn. Does not check for conditional statements.
/// </summary>
-
public static event EventHandler OnPreRenderHudEventNoCheck = delegate { };
+
/// <summary>
/// Occurs after the HUD is drawn. Does not check for conditional statements.
/// </summary>
-
public static event EventHandler OnPostRenderHudEventNoCheck = delegate { };
/// <summary>
diff --git a/StardewModdingAPI/Events/Location.cs b/src/StardewModdingAPI/Events/Location.cs index f951ab95..f951ab95 100644 --- a/StardewModdingAPI/Events/Location.cs +++ b/src/StardewModdingAPI/Events/Location.cs diff --git a/StardewModdingAPI/Events/Menu.cs b/src/StardewModdingAPI/Events/Menu.cs index 0e043780..0e043780 100644 --- a/StardewModdingAPI/Events/Menu.cs +++ b/src/StardewModdingAPI/Events/Menu.cs diff --git a/StardewModdingAPI/Events/Mine.cs b/src/StardewModdingAPI/Events/Mine.cs index 55514d42..55514d42 100644 --- a/StardewModdingAPI/Events/Mine.cs +++ b/src/StardewModdingAPI/Events/Mine.cs diff --git a/StardewModdingAPI/Events/Player.cs b/src/StardewModdingAPI/Events/Player.cs index 22f572b7..22f572b7 100644 --- a/StardewModdingAPI/Events/Player.cs +++ b/src/StardewModdingAPI/Events/Player.cs diff --git a/StardewModdingAPI/Events/Time.cs b/src/StardewModdingAPI/Events/Time.cs index 39ca642a..39ca642a 100644 --- a/StardewModdingAPI/Events/Time.cs +++ b/src/StardewModdingAPI/Events/Time.cs diff --git a/StardewModdingAPI/Extensions.cs b/src/StardewModdingAPI/Extensions.cs index fcf7eda2..abad6ce2 100644 --- a/StardewModdingAPI/Extensions.cs +++ b/src/StardewModdingAPI/Extensions.cs @@ -32,7 +32,7 @@ namespace StardewModdingAPI public static string ToSingular<T>(this IEnumerable<T> ienum, string split = ", ") // where T : class { //Apparently Keys[] won't split normally :l - if (typeof (T) == typeof (Keys)) + if (typeof(T) == typeof(Keys)) { return string.Join(split, ienum.ToArray()); } diff --git a/StardewModdingAPI/FodyWeavers.xml b/src/StardewModdingAPI/FodyWeavers.xml index 2e6d4a7a..2e6d4a7a 100644 --- a/StardewModdingAPI/FodyWeavers.xml +++ b/src/StardewModdingAPI/FodyWeavers.xml diff --git a/StardewModdingAPI/Inheritance/ItemStackChange.cs b/src/StardewModdingAPI/Inheritance/ItemStackChange.cs index 88fc002e..88fc002e 100644 --- a/StardewModdingAPI/Inheritance/ItemStackChange.cs +++ b/src/StardewModdingAPI/Inheritance/ItemStackChange.cs diff --git a/StardewModdingAPI/Inheritance/Menus/SBobberBar.cs b/src/StardewModdingAPI/Inheritance/Menus/SBobberBar.cs index ddac33c6..1e424f73 100644 --- a/StardewModdingAPI/Inheritance/Menus/SBobberBar.cs +++ b/src/StardewModdingAPI/Inheritance/Menus/SBobberBar.cs @@ -267,26 +267,22 @@ namespace StardewModdingAPI.Inheritance.Menus set { GetBaseFieldInfo("bobberBarAcceleration").SetValue(BaseBobberBar, value); } } - public static FieldInfo[] PrivateFields - { - get { return GetPrivateFields(); } - } + public static FieldInfo[] PrivateFields => GetPrivateFields(); public static SBobberBar ConstructFromBaseClass(BobberBar baseClass) { - var b = new SBobberBar(0, 0, false, 0); - b.BaseBobberBar = baseClass; + var b = new SBobberBar(0, 0, false, 0) {BaseBobberBar = baseClass}; return b; } public static FieldInfo[] GetPrivateFields() { - return typeof (BobberBar).GetFields(BindingFlags.Instance | BindingFlags.NonPublic); + return typeof(BobberBar).GetFields(BindingFlags.Instance | BindingFlags.NonPublic); } public static FieldInfo GetBaseFieldInfo(string name) { - return typeof (BobberBar).GetField(name, BindingFlags.Instance | BindingFlags.NonPublic); + return typeof(BobberBar).GetField(name, BindingFlags.Instance | BindingFlags.NonPublic); } } }
\ No newline at end of file diff --git a/StardewModdingAPI/Inheritance/Menus/SGameMenu.cs b/src/StardewModdingAPI/Inheritance/Menus/SGameMenu.cs index f45758f7..a4d3d8d0 100644 --- a/StardewModdingAPI/Inheritance/Menus/SGameMenu.cs +++ b/src/StardewModdingAPI/Inheritance/Menus/SGameMenu.cs @@ -22,8 +22,7 @@ namespace StardewModdingAPI.Inheritance.Menus public static SGameMenu ConstructFromBaseClass(GameMenu baseClass) { - var s = new SGameMenu(); - s.BaseGameMenu = baseClass; + var s = new SGameMenu {BaseGameMenu = baseClass}; return s; } |
