Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
2e25112
migrate to new NuGet package reference format
Pathoschild Nov 23, 2018
8d99226
update mod build config package
Pathoschild Nov 23, 2018
b892bbf
fix API never made available
Pathoschild Nov 23, 2018
f6cd852
update manifest name to match Nexus
Pathoschild Nov 23, 2018
ab7cbf6
rename API class
Pathoschild Nov 23, 2018
46ab660
update for SMAPI 3.0
Pathoschild Jan 15, 2019
b1b8134
migrate to new .csproj format and update mod build package
Pathoschild Sep 11, 2019
a35dcac
add .gitattributes to keep line endings consistent between Linux/Mac/…
Pathoschild Sep 11, 2019
eeec4f3
avoid ambiguous type name
Pathoschild Sep 11, 2019
d962117
use constants where applicable
Pathoschild Sep 11, 2019
2ff5008
Fixed a Division by Zero error
Mizzion Dec 2, 2019
66b5a38
Fix for Android(work only once bug)
ZaneYork Apr 13, 2020
47acd60
fix build error
Pathoschild Apr 16, 2020
6ee0408
Merge pull request #1 from Mizzion/update-code
Pathoschild Apr 16, 2020
8cffde6
Merge pull request #2 from ZaneYork/update-code
Pathoschild Apr 16, 2020
d502846
-Supports SDV 1.5.1, SMAPI 3.8.2
breno-assis Jan 4, 2021
7ba4253
Update manifest.json
breno-assis Jan 13, 2021
93e82db
match original code style
Pathoschild Jan 28, 2021
b752f49
Merge pull request #4 from breno-assis/update-code
Pathoschild Jan 28, 2021
9536a30
Add "Caldera" to Island locations
wamc2017 Jan 30, 2021
8d8b3c1
Merge pull request #5 from wamc2017/update-code
Pathoschild Feb 15, 2021
3c5c4ba
Replace Chest.capacity constant with chest.GetActualCapacity() to all…
LeFauxMatt Mar 22, 2021
51e2f78
Merge pull request #6 from StardewMods/update-code
Pathoschild Mar 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# always normalise line endings
* text=auto
27 changes: 14 additions & 13 deletions DeluxeGrabber.sln
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2035
# Visual Studio Version 16
VisualStudioVersion = 16.0.29123.88
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeluxeGrabber", "DeluxeGrabber\DeluxeGrabber.csproj", "{46A2FEC7-F9EB-4A12-A43F-92906F884961}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "root", "root", "{EDB8B326-C681-41B3-ACA6-653A156FAD38}"
ProjectSection(SolutionItems) = preProject
.gitattributes = .gitattributes
.gitignore = .gitignore
LICENSE = LICENSE
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DeluxeGrabber", "DeluxeGrabber\DeluxeGrabber.csproj", "{58E63D8A-EB9B-4488-A191-61F66229A5BE}"
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
{46A2FEC7-F9EB-4A12-A43F-92906F884961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{46A2FEC7-F9EB-4A12-A43F-92906F884961}.Debug|Any CPU.Build.0 = Debug|Any CPU
{46A2FEC7-F9EB-4A12-A43F-92906F884961}.Debug|x86.ActiveCfg = Debug|x86
{46A2FEC7-F9EB-4A12-A43F-92906F884961}.Debug|x86.Build.0 = Debug|x86
{46A2FEC7-F9EB-4A12-A43F-92906F884961}.Release|Any CPU.ActiveCfg = Release|Any CPU
{46A2FEC7-F9EB-4A12-A43F-92906F884961}.Release|Any CPU.Build.0 = Release|Any CPU
{46A2FEC7-F9EB-4A12-A43F-92906F884961}.Release|x86.ActiveCfg = Release|x86
{46A2FEC7-F9EB-4A12-A43F-92906F884961}.Release|x86.Build.0 = Release|x86
{58E63D8A-EB9B-4488-A191-61F66229A5BE}.Debug|x86.ActiveCfg = Debug|x86
{58E63D8A-EB9B-4488-A191-61F66229A5BE}.Debug|x86.Build.0 = Debug|x86
{58E63D8A-EB9B-4488-A191-61F66229A5BE}.Release|x86.ActiveCfg = Release|x86
{58E63D8A-EB9B-4488-A191-61F66229A5BE}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
87 changes: 10 additions & 77 deletions DeluxeGrabber/DeluxeGrabber.csproj
Original file line number Diff line number Diff line change
@@ -1,83 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{46A2FEC7-F9EB-4A12-A43F-92906F884961}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DeluxeGrabber</RootNamespace>
<AssemblyName>DeluxeGrabber</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<RootNamespace>DeluxeGrabber</RootNamespace>
<Version>2.5.1</Version>
<TargetFramework>net452</TargetFramework>
<Platforms>x86</Platforms>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ModAPI.cs" />
<Compile Include="ModConfig.cs" />
<Compile Include="ModEntry.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="manifest.json" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Analyzer Include="..\packages\Pathoschild.Stardew.ModBuildConfig.2.2.0-beta-20180819\analyzers\dotnet\cs\StardewModdingAPI.ModBuildConfig.Analyzer.dll" />
<PackageReference Include="Pathoschild.Stardew.ModBuildConfig" Version="3.0.0" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Pathoschild.Stardew.ModBuildConfig.2.2.0-beta-20180819\build\Pathoschild.Stardew.ModBuildConfig.targets" Condition="Exists('..\packages\Pathoschild.Stardew.ModBuildConfig.2.2.0-beta-20180819\build\Pathoschild.Stardew.ModBuildConfig.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>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}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Pathoschild.Stardew.ModBuildConfig.2.2.0-beta-20180819\build\Pathoschild.Stardew.ModBuildConfig.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Pathoschild.Stardew.ModBuildConfig.2.2.0-beta-20180819\build\Pathoschild.Stardew.ModBuildConfig.targets'))" />
</Target>
</Project>

</Project>
11 changes: 8 additions & 3 deletions DeluxeGrabber/ModAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
using System.Collections.Generic;

namespace DeluxeGrabber {
public class PrismaticAPI {
private ModConfig config = new ModConfig();
public int GrabberRange { get { return config.GrabberRange; } }
public class ModAPI {
private readonly ModConfig Config;

public int GrabberRange { get { return this.Config.GrabberRange; } }

public IEnumerable<Vector2> GetGrabberCoverage(Vector2 origin) {
for (int x = -GrabberRange; x <= GrabberRange; x++) {
Expand All @@ -13,5 +14,9 @@ public IEnumerable<Vector2> GetGrabberCoverage(Vector2 origin) {
}
}
}

internal ModAPI(ModConfig config) {
this.Config = config;
}
}
}
Loading