From bb80116379fbd4257e99bb92c7b9c68de0987952 Mon Sep 17 00:00:00 2001 From: Alexander Kluth Date: Tue, 7 Sep 2021 21:01:28 +0200 Subject: [PATCH] Unify the two separate repos into one --- FishyFishFish/.gitignore | 405 ++++++++++++++++++ FishyFishFish/FishyFishFish.sln | 17 + .../FishyFishFish/FishyFishFish.csproj | 42 ++ FishyFishFish/FishyFishFish/ModEntry.cs | 54 +++ FishyFishFish/FishyFishFish/MyClass.cs | 10 + .../FishyFishFish/Properties/AssemblyInfo.cs | 26 ++ FishyFishFish/FishyFishFish/manifest.json | 10 + FishyFishFish/FishyFishFish/packages.config | 4 + GottaGoFast/.gitignore | 405 ++++++++++++++++++ GottaGoFast/GottaGoFast.sln | 30 ++ .../GottaGoFast/Framework/ModConfig.cs | 9 + GottaGoFast/GottaGoFast/GottaGoFast.csproj | 78 ++++ GottaGoFast/GottaGoFast/ModEntry.cs | 72 ++++ .../GottaGoFast/Properties/AssemblyInfo.cs | 26 ++ GottaGoFast/GottaGoFast/i18n/de.json | 4 + GottaGoFast/GottaGoFast/i18n/default.json | 4 + GottaGoFast/GottaGoFast/manifest.json | 10 + .../d9caef8e/GottaGoFast/GottaGoFast.csproj | 50 +++ .../d9caef8e/GottaGoFast/NuGetUpgradeLog.html | 161 +++++++ .../d9caef8e/GottaGoFast/packages.config | 4 + 20 files changed, 1421 insertions(+) create mode 100644 FishyFishFish/.gitignore create mode 100644 FishyFishFish/FishyFishFish.sln create mode 100644 FishyFishFish/FishyFishFish/FishyFishFish.csproj create mode 100644 FishyFishFish/FishyFishFish/ModEntry.cs create mode 100644 FishyFishFish/FishyFishFish/MyClass.cs create mode 100644 FishyFishFish/FishyFishFish/Properties/AssemblyInfo.cs create mode 100644 FishyFishFish/FishyFishFish/manifest.json create mode 100644 FishyFishFish/FishyFishFish/packages.config create mode 100644 GottaGoFast/.gitignore create mode 100644 GottaGoFast/GottaGoFast.sln create mode 100644 GottaGoFast/GottaGoFast/Framework/ModConfig.cs create mode 100644 GottaGoFast/GottaGoFast/GottaGoFast.csproj create mode 100644 GottaGoFast/GottaGoFast/ModEntry.cs create mode 100644 GottaGoFast/GottaGoFast/Properties/AssemblyInfo.cs create mode 100644 GottaGoFast/GottaGoFast/i18n/de.json create mode 100644 GottaGoFast/GottaGoFast/i18n/default.json create mode 100644 GottaGoFast/GottaGoFast/manifest.json create mode 100644 GottaGoFast/MigrationBackup/d9caef8e/GottaGoFast/GottaGoFast.csproj create mode 100644 GottaGoFast/MigrationBackup/d9caef8e/GottaGoFast/NuGetUpgradeLog.html create mode 100644 GottaGoFast/MigrationBackup/d9caef8e/GottaGoFast/packages.config diff --git a/FishyFishFish/.gitignore b/FishyFishFish/.gitignore new file mode 100644 index 0000000..58d4acc --- /dev/null +++ b/FishyFishFish/.gitignore @@ -0,0 +1,405 @@ +# globs +Makefile.in +*.userprefs +*.usertasks +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.tar.gz +tarballs/ +test-results/ + +# Mac bundle stuff +*.dmg +*.app + +# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# content below from: https://github.com/github/gitignore/blob/master/VisualStudio.gitignore +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ \ No newline at end of file diff --git a/FishyFishFish/FishyFishFish.sln b/FishyFishFish/FishyFishFish.sln new file mode 100644 index 0000000..604477f --- /dev/null +++ b/FishyFishFish/FishyFishFish.sln @@ -0,0 +1,17 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FishyFishFish", "FishyFishFish\FishyFishFish.csproj", "{74978C4F-65F8-424C-AD56-BD905483EE8F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {74978C4F-65F8-424C-AD56-BD905483EE8F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {74978C4F-65F8-424C-AD56-BD905483EE8F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {74978C4F-65F8-424C-AD56-BD905483EE8F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {74978C4F-65F8-424C-AD56-BD905483EE8F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/FishyFishFish/FishyFishFish/FishyFishFish.csproj b/FishyFishFish/FishyFishFish/FishyFishFish.csproj new file mode 100644 index 0000000..a0e643b --- /dev/null +++ b/FishyFishFish/FishyFishFish/FishyFishFish.csproj @@ -0,0 +1,42 @@ + + + + Debug + AnyCPU + {74978C4F-65F8-424C-AD56-BD905483EE8F} + Library + FishyFishFish + FishyFishFish + v4.5 + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + false + + + true + bin\Release + prompt + 4 + false + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/FishyFishFish/FishyFishFish/ModEntry.cs b/FishyFishFish/FishyFishFish/ModEntry.cs new file mode 100644 index 0000000..6cbc662 --- /dev/null +++ b/FishyFishFish/FishyFishFish/ModEntry.cs @@ -0,0 +1,54 @@ +using System; +using Microsoft.Xna.Framework; +using StardewModdingAPI; +using StardewModdingAPI.Events; +using StardewValley.Menus; +using StardewValley.Tools; +using StardewModdingAPI.Utilities; +using StardewValley; + +namespace FishyFishFish +{ + /// The mod entry point. + public 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) + { + helper.Events.Input.ButtonPressed += this.OnButtonPressed; + helper.Events.GameLoop.UpdateTicking += this.UpdateTicking; + } + + + private void UpdateTicking(object sender, UpdateTickingEventArgs e) + { + // ignore if player hasn't loaded a save yet + if (!Context.IsWorldReady) + return; + + + if (Game1.player.CurrentTool is FishingRod rod) + { + if (Game1.activeClickableMenu is BobberBar bobberBar) + { + float bobberBarHeight = Helper.Reflection.GetField(bobberBar, "bobberBarHeight", true).GetValue(); + Helper.Reflection.GetField(bobberBar, "bobberBarHeight", true).SetValue(2000); + } + } + + + } + + private void OnButtonPressed(object sender, ButtonPressedEventArgs e) + { + + + // print button presses to the console window + this.Monitor.Log($"{Game1.player.Name} pressed {e.Button}.", LogLevel.Debug); + } + } +} \ No newline at end of file diff --git a/FishyFishFish/FishyFishFish/MyClass.cs b/FishyFishFish/FishyFishFish/MyClass.cs new file mode 100644 index 0000000..61e336a --- /dev/null +++ b/FishyFishFish/FishyFishFish/MyClass.cs @@ -0,0 +1,10 @@ +using System; +namespace FishyFishFish +{ + public class MyClass + { + public MyClass() + { + } + } +} diff --git a/FishyFishFish/FishyFishFish/Properties/AssemblyInfo.cs b/FishyFishFish/FishyFishFish/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..14359b5 --- /dev/null +++ b/FishyFishFish/FishyFishFish/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("FishyFishFish")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("${AuthorCopyright}")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] diff --git a/FishyFishFish/FishyFishFish/manifest.json b/FishyFishFish/FishyFishFish/manifest.json new file mode 100644 index 0000000..e6a3d68 --- /dev/null +++ b/FishyFishFish/FishyFishFish/manifest.json @@ -0,0 +1,10 @@ +{ + "Name": "FishyFishFish", + "Author": "alexclooze", + "Version": "1.0.0", + "Description": "Alle Fischies fischen", + "UniqueID": "alexclooze.fishyfishfish", + "EntryDll": "FishyFishFish.dll", + "MinimumApiVersion": "2.10.0", + "UpdateKeys": [] +} \ No newline at end of file diff --git a/FishyFishFish/FishyFishFish/packages.config b/FishyFishFish/FishyFishFish/packages.config new file mode 100644 index 0000000..5804fc8 --- /dev/null +++ b/FishyFishFish/FishyFishFish/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/GottaGoFast/.gitignore b/GottaGoFast/.gitignore new file mode 100644 index 0000000..58d4acc --- /dev/null +++ b/GottaGoFast/.gitignore @@ -0,0 +1,405 @@ +# globs +Makefile.in +*.userprefs +*.usertasks +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.tar.gz +tarballs/ +test-results/ + +# Mac bundle stuff +*.dmg +*.app + +# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# content below from: https://github.com/github/gitignore/blob/master/VisualStudio.gitignore +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ \ No newline at end of file diff --git a/GottaGoFast/GottaGoFast.sln b/GottaGoFast/GottaGoFast.sln new file mode 100644 index 0000000..995e110 --- /dev/null +++ b/GottaGoFast/GottaGoFast.sln @@ -0,0 +1,30 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29806.167 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GottaGoFast", "GottaGoFast\GottaGoFast.csproj", "{248EAACC-8A88-4F01-86A4-6FED606C6E02}" +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 + {248EAACC-8A88-4F01-86A4-6FED606C6E02}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {248EAACC-8A88-4F01-86A4-6FED606C6E02}.Debug|Any CPU.Build.0 = Debug|Any CPU + {248EAACC-8A88-4F01-86A4-6FED606C6E02}.Debug|x86.ActiveCfg = Debug|x86 + {248EAACC-8A88-4F01-86A4-6FED606C6E02}.Debug|x86.Build.0 = Debug|x86 + {248EAACC-8A88-4F01-86A4-6FED606C6E02}.Release|Any CPU.ActiveCfg = Release|Any CPU + {248EAACC-8A88-4F01-86A4-6FED606C6E02}.Release|Any CPU.Build.0 = Release|Any CPU + {248EAACC-8A88-4F01-86A4-6FED606C6E02}.Release|x86.ActiveCfg = Debug|x86 + {248EAACC-8A88-4F01-86A4-6FED606C6E02}.Release|x86.Build.0 = Debug|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {BC427690-D86C-4A93-8FC8-E28EA5AB447D} + EndGlobalSection +EndGlobal diff --git a/GottaGoFast/GottaGoFast/Framework/ModConfig.cs b/GottaGoFast/GottaGoFast/Framework/ModConfig.cs new file mode 100644 index 0000000..eac006f --- /dev/null +++ b/GottaGoFast/GottaGoFast/Framework/ModConfig.cs @@ -0,0 +1,9 @@ +namespace GottaGoFast.Framework +{ + internal class ModConfig + { + public int RunningSpeed { get; set; } = 7; + public int DefaultSpeed { get; set; } = 3; + public bool ShowHudMessage { get; set; } = true; + } +} diff --git a/GottaGoFast/GottaGoFast/GottaGoFast.csproj b/GottaGoFast/GottaGoFast/GottaGoFast.csproj new file mode 100644 index 0000000..aacb2c7 --- /dev/null +++ b/GottaGoFast/GottaGoFast/GottaGoFast.csproj @@ -0,0 +1,78 @@ + + + + Debug + AnyCPU + {248EAACC-8A88-4F01-86A4-6FED606C6E02} + Library + GottaGoFast + GottaGoFast + v4.5 + + + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + false + + + true + bin\Release + prompt + 4 + false + + + true + bin\x86\Debug\ + DEBUG; + pdbonly + x86 + 7.3 + prompt + MinimumRecommendedRules.ruleset + + + true + bin\x86\Release\ + true + pdbonly + x86 + 7.3 + prompt + MinimumRecommendedRules.ruleset + + + + + + + + + + + + + + + 2.0.0.8 + + + 3.7.1.189 + + + 3.1.0 + + + + + + + + \ No newline at end of file diff --git a/GottaGoFast/GottaGoFast/ModEntry.cs b/GottaGoFast/GottaGoFast/ModEntry.cs new file mode 100644 index 0000000..1b20795 --- /dev/null +++ b/GottaGoFast/GottaGoFast/ModEntry.cs @@ -0,0 +1,72 @@ +using GottaGoFast.Framework; +using StardewModdingAPI; +using StardewModdingAPI.Events; +using StardewValley; + +namespace GottaGoFast +{ + public class ModEntry : Mod + { + private ModConfig Config; + + private readonly SButton sprintButton = SButton.RightStick; + private readonly SButton sprintKey = SButton.Tab; + private bool isAlreadyGoingFast = false; + private int addedSpeed; + private ITranslationHelper i18n; + + public override void Entry(IModHelper helper) + { + this.Config = helper.ReadConfig(); + this.addedSpeed = this.Config.DefaultSpeed; + helper.Events.Input.ButtonPressed += OnButtonPressed; + helper.Events.GameLoop.UpdateTicked += OnUpdateTicked; + i18n = helper.Translation; + } + + private void OnButtonPressed(object sender, ButtonPressedEventArgs e) + { + Helper.Input.Suppress(sprintKey); + Helper.Input.Suppress(sprintButton); + + if (!Context.IsPlayerFree) + { + return; + } + + if (e.Button.Equals(sprintKey) || e.Button.Equals(sprintButton)) + { + if (!isAlreadyGoingFast) + { + isAlreadyGoingFast = true; + addedSpeed = this.Config.RunningSpeed; + + if (this.Config.ShowHudMessage) + { + Game1.addHUDMessage(new HUDMessage(i18n.Get("gotta-go-fast.activated.hudmessage"), 2)); + } + } + + else if (isAlreadyGoingFast) + { + isAlreadyGoingFast = false; + addedSpeed = this.Config.DefaultSpeed; + + if (this.Config.ShowHudMessage) + { + Game1.addHUDMessage(new HUDMessage(i18n.Get("gotta-go-fast.deactivated.hudmessage"), 2)); + } + } + } + + } + + private void OnUpdateTicked(object sender, UpdateTickedEventArgs e) + { + if (Context.IsPlayerFree) + { + Game1.player.addedSpeed = addedSpeed; + } + } + } +} \ No newline at end of file diff --git a/GottaGoFast/GottaGoFast/Properties/AssemblyInfo.cs b/GottaGoFast/GottaGoFast/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..a78acbb --- /dev/null +++ b/GottaGoFast/GottaGoFast/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("GottaGoFast")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Regenwetter Studios")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] diff --git a/GottaGoFast/GottaGoFast/i18n/de.json b/GottaGoFast/GottaGoFast/i18n/de.json new file mode 100644 index 0000000..909dae4 --- /dev/null +++ b/GottaGoFast/GottaGoFast/i18n/de.json @@ -0,0 +1,4 @@ +{ + "gotta-go-fast.activated.hudmessage": "Schnelles Laufen aktiviert.", + "gotta-go-fast.deactivated.hudmessage": "Schnelles Laufen deaktiviert." +} \ No newline at end of file diff --git a/GottaGoFast/GottaGoFast/i18n/default.json b/GottaGoFast/GottaGoFast/i18n/default.json new file mode 100644 index 0000000..8dd89c4 --- /dev/null +++ b/GottaGoFast/GottaGoFast/i18n/default.json @@ -0,0 +1,4 @@ +{ + "gotta-go-fast.activated.hudmessage": "Fast running activated.", + "gotta-go-fast.deactivated.hudmessage": "Fast running deactivated." +} \ No newline at end of file diff --git a/GottaGoFast/GottaGoFast/manifest.json b/GottaGoFast/GottaGoFast/manifest.json new file mode 100644 index 0000000..469f785 --- /dev/null +++ b/GottaGoFast/GottaGoFast/manifest.json @@ -0,0 +1,10 @@ +{ + "Name": "GottaGoFast", + "Author": "alexclooze", + "Version": "0.3.0", + "Description": "Fasten up the running speed of the player", + "UniqueID": "alexclooze.gottagofast", + "EntryDll": "GottaGoFast.dll", + "MinimumApiVersion": "3.1.0", + "UpdateKeys": ["GitHub:alexclooze/GottaGoFast"] +} \ No newline at end of file diff --git a/GottaGoFast/MigrationBackup/d9caef8e/GottaGoFast/GottaGoFast.csproj b/GottaGoFast/MigrationBackup/d9caef8e/GottaGoFast/GottaGoFast.csproj new file mode 100644 index 0000000..cd57d52 --- /dev/null +++ b/GottaGoFast/MigrationBackup/d9caef8e/GottaGoFast/GottaGoFast.csproj @@ -0,0 +1,50 @@ + + + + Debug + AnyCPU + {248EAACC-8A88-4F01-86A4-6FED606C6E02} + Library + GottaGoFast + GottaGoFast + v4.5 + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + false + + + true + bin\Release + prompt + 4 + false + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/GottaGoFast/MigrationBackup/d9caef8e/GottaGoFast/NuGetUpgradeLog.html b/GottaGoFast/MigrationBackup/d9caef8e/GottaGoFast/NuGetUpgradeLog.html new file mode 100644 index 0000000..0ba3864 --- /dev/null +++ b/GottaGoFast/MigrationBackup/d9caef8e/GottaGoFast/NuGetUpgradeLog.html @@ -0,0 +1,161 @@ + + + + + NuGetMigrationLog +

+ NuGet Migration Report - GottaGoFast

Overview

Migration to PackageReference was completed successfully. Please build and run your solution to verify that all packages are available.
+ If you run into any problems, have feedback, questions, or concerns, please + file an issue on the NuGet GitHub repository.
+ Changed files and this report have been backed up here: + C:\Users\Alex\Source\Repos\GottaGoFast\MigrationBackup\d9caef8e\GottaGoFast

Packages processed

Top-level dependencies:

Package IdVersion
Pathoschild.Stardew.ModBuildConfig + v2.2.0

Transitive dependencies:

Package IdVersion
+ No transitive dependencies found. +

Package compatibility issues

Description
Pathoschild.Stardew.ModBuildConfig + v2.2.0
install.ps1 script will be ignored when the package is installed after the migration.
\ No newline at end of file diff --git a/GottaGoFast/MigrationBackup/d9caef8e/GottaGoFast/packages.config b/GottaGoFast/MigrationBackup/d9caef8e/GottaGoFast/packages.config new file mode 100644 index 0000000..af793ad --- /dev/null +++ b/GottaGoFast/MigrationBackup/d9caef8e/GottaGoFast/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file