-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7057224
commit 4b26a08
Showing
22 changed files
with
364 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
/obj | ||
/mods | ||
/releases | ||
/.history | ||
/.vs | ||
/*.csproj.user | ||
/*.sln |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,85 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net461</TargetFramework> | ||
<VSVersion>1.16.0</VSVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="VintagestoryAPI"> | ||
<HintPath>$(VINTAGE_STORY)/$(VSVersion)/VintagestoryAPI.dll</HintPath> | ||
</Reference> | ||
<Reference Include="VSSurvivalMod"> | ||
<HintPath>$(VINTAGE_STORY)/$(VSVersion)/Mods/VSSurvivalMod.dll</HintPath> | ||
</Reference> | ||
<Reference Include="0Harmony"> | ||
<HintPath>$(VINTAGE_STORY)/$(VSVersion)/Lib/0Harmony.dll</HintPath> | ||
</Reference> | ||
<Reference Include="protobuf-net"> | ||
<HintPath>$(VINTAGE_STORY)/$(VSVersion)/Lib/protobuf-net.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Newtonsoft.Json"> | ||
<HintPath>$(VINTAGE_STORY)/$(VSVersion)/Lib/Newtonsoft.Json.dll</HintPath> | ||
</Reference> | ||
<Reference Include="cairo-sharp"> | ||
<HintPath>$(VINTAGE_STORY)/$(VSVersion)/Lib/cairo-sharp.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> | ||
</ItemGroup> | ||
|
||
<Target Name="Copy" AfterTargets="PostBuildEvent"> | ||
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(ProjectDir)mods/$(ProjectName)" /> | ||
<Copy SourceFiles="$(TargetDir)/$(TargetName).pdb" DestinationFolder="$(ProjectDir)mods/$(ProjectName)" /> | ||
</Target> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net461</TargetFramework> | ||
<Configurations>Debug;Release;Publish</Configurations> | ||
<EnableNETAnalyzers>true</EnableNETAnalyzers> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<NoWarn>CS1591</NoWarn> | ||
<WarningLevel>4</WarningLevel> | ||
<LangVersion>5</LangVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(Configuration)' != 'Debug' "> | ||
<DefaultItemExcludes>$(DefaultItemExcludes);modtools/**</DefaultItemExcludes> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<MinGameVersion>1.17.0-rc.5</MinGameVersion> | ||
<RunGameVersion>1.17.0-rc.5</RunGameVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Label="Game Refs"> | ||
<Reference Include="VintagestoryAPI"> | ||
<HintPath>$(VINTAGE_STORY)/$(MinGameVersion)/VintagestoryAPI.dll</HintPath> | ||
</Reference> | ||
<Reference Include="VintagestoryLib"> | ||
<HintPath>$(VINTAGE_STORY)/$(MinGameVersion)/VintagestoryLib.dll</HintPath> | ||
</Reference> | ||
<Reference Include="VSEssentials"> | ||
<HintPath>$(VINTAGE_STORY)/$(MinGameVersion)/Mods/VSEssentials.dll</HintPath> | ||
</Reference> | ||
<Reference Include="VSCreativeMod"> | ||
<HintPath>$(VINTAGE_STORY)/$(MinGameVersion)/Mods/VSCreativeMod.dll</HintPath> | ||
</Reference> | ||
<Reference Include="VSSurvivalMod"> | ||
<HintPath>$(VINTAGE_STORY)/$(MinGameVersion)/Mods/VSSurvivalMod.dll</HintPath> | ||
</Reference> | ||
<Reference Include="0Harmony"> | ||
<HintPath>$(VINTAGE_STORY)/$(MinGameVersion)/Lib/0Harmony.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Newtonsoft.Json"> | ||
<HintPath>$(VINTAGE_STORY)/$(MinGameVersion)/Lib/Newtonsoft.Json.dll</HintPath> | ||
</Reference> | ||
<Reference Include="protobuf-net"> | ||
<HintPath>$(VINTAGE_STORY)/$(MinGameVersion)/Lib/protobuf-net.dll</HintPath> | ||
</Reference> | ||
<Reference Include="cairo-sharp"> | ||
<HintPath>$(VINTAGE_STORY)/$(MinGameVersion)/Lib/cairo-sharp.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Remove="mods/**" /> | ||
</ItemGroup> | ||
|
||
<Target Name="CollectMod" AfterTargets="PostBuildEvent"> | ||
<RemoveDir Directories="mods/$(TargetName)" /> | ||
|
||
<Copy SourceFiles="modinfo.json" DestinationFolder="mods/$(TargetName)" /> | ||
<Copy SourceFiles="modicon.png" DestinationFolder="mods/$(TargetName)" ContinueOnError="true" /> | ||
<Copy SourceFiles="README.md" DestinationFolder="mods/$(TargetName)" /> | ||
<Copy SourceFiles="LICENSE" DestinationFolder="mods/$(TargetName)" /> | ||
</Target> | ||
|
||
<Target Name="DllBuild" AfterTargets="CollectMod" Condition=" '$(Configuration)' == 'Debug' "> | ||
<Copy SourceFiles="$(TargetPath)" DestinationFolder="mods/$(TargetName)" /> | ||
<Copy SourceFiles="$(TargetDir)/$(TargetName).pdb" DestinationFolder="mods/$(TargetName)" /> | ||
</Target> | ||
|
||
<Target Name="SourceBuild" AfterTargets="CollectMod" Condition=" '$(Configuration)' != 'Debug' "> | ||
<ItemGroup> | ||
<Src Include="src/**" /> | ||
</ItemGroup> | ||
<Copy SourceFiles="@(Src)" DestinationFolder="mods/$(TargetName)/src/%(RecursiveDir)" /> | ||
</Target> | ||
|
||
<Target Name="ZipMod" AfterTargets="CollectMod" Condition=" '$(Configuration)' == 'Publish' "> | ||
<ItemGroup> | ||
<Res Include="assets/**" /> | ||
</ItemGroup> | ||
<Copy SourceFiles="@(Res)" DestinationFolder="mods/$(TargetName)/assets/%(RecursiveDir)" /> | ||
|
||
<MakeDir Directories="releases" /> | ||
<ZipDirectory DestinationFile="releases/$(TargetName)_v$(RunGameVersion)_v.zip" SourceDirectory="mods/$(TargetName)" Overwrite="true" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"profiles": { | ||
"Launch Client": { | ||
"commandName": "Executable", | ||
"executablePath": "%VINTAGE_STORY%\\$(RunGameVersion)\\Vintagestory.exe", | ||
"commandLineArgs": "--addModPath $(ProjectDir)mods --addOrigin $(ProjectDir)assets --tracelog" | ||
}, | ||
"Launch Client with Test World": { | ||
"commandName": "Executable", | ||
"executablePath": "%VINTAGE_STORY%\\$(RunGameVersion)\\Vintagestory.exe", | ||
"commandLineArgs": "--playStyle \"preset-surviveandbuild\" --openWorld \"$(ProjectName) Test World\" --addModPath $(ProjectDir)mods --addOrigin $(ProjectDir)assets --tracelog", | ||
"nativeDebugging": false | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.