Skip to content

Commit

Permalink
Update for RW 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
KapitanOczywisty committed Feb 25, 2020
1 parent b1d40ad commit cbee96d
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 12 deletions.
6 changes: 5 additions & 1 deletion About/About-Debug.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<ModMetaData>
<name>Change map edge limit - Dev Build</name>
<author>Kapitan Oczywisty</author>
<targetVersion>1.0.2059</targetVersion>
<supportedVersions>
<li>1.0</li>
<li>1.1</li>
</supportedVersions>
<packageId>kapitanoczywisty.changemapedge.dev</packageId>
<description>Change map edge limit dev build</description>
</ModMetaData>
6 changes: 5 additions & 1 deletion About/About-Release.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
<ModMetaData>
<name>Change map edge limit</name>
<author>Kapitan Oczywisty</author>
<targetVersion>1.0.2059</targetVersion>
<supportedVersions>
<li>1.0</li>
<li>1.1</li>
</supportedVersions>
<packageId>kapitanoczywisty.changemapedge</packageId>
<description>
Simple mod that allows you to customize "too close to map edge" limits when placing buildings, blueprints or zones. Should works with any other mod (unless is doing the same thing).

Expand Down
6 changes: 5 additions & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<ModMetaData>
<name>Change map edge limit - Dev Build</name>
<author>Kapitan Oczywisty</author>
<targetVersion>1.0.2059</targetVersion>
<supportedVersions>
<li>1.0</li>
<li>1.1</li>
</supportedVersions>
<packageId>kapitanoczywisty.changemapedge.dev</packageId>
<description>Change map edge limit dev build</description>
</ModMetaData>
6 changes: 6 additions & 0 deletions LoadFolders.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<loadFolders>
<v1.1>
<li>/</li>
<li>v1.1</li>
</v1.1>
</loadFolders>
18 changes: 11 additions & 7 deletions Source/ChangeMapEdge.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ChangeMapEdge</RootNamespace>
<AssemblyName>ChangeMapEdge</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>false</DebugSymbols>
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\Assemblies\</OutputPath>
<OutputPath>..\v1.1\Assemblies\</OutputPath>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
Expand All @@ -25,7 +25,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\ChangeMapEdge - Release\Assemblies\</OutputPath>
<OutputPath>..\..\ChangeMapEdge - Release\v1.1\Assemblies\</OutputPath>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
Expand All @@ -34,15 +34,19 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony">
<HintPath>..\..\HugsLib\Assemblies\0Harmony.dll</HintPath>
<HintPath>..\..\HugsLib\v1.1\Assemblies\0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\RimWorldWin64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="HugsLib">
<HintPath>..\..\HugsLib\Assemblies\HugsLib.dll</HintPath>
<HintPath>..\..\HugsLib\v1.1\Assemblies\HugsLib.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
Expand Down Expand Up @@ -85,14 +89,14 @@
<StartProgram>$(SolutionDir)..\..\RimWorldWin.exe</StartProgram>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>echo F|xcopy "$(ProjectDir)..\About\About-$(ConfigurationName).xml" "$(TargetDir)..\About\About.xml" /C /Y /K /Q /D
<!--PostBuildEvent>echo F|xcopy "$(ProjectDir)..\About\About-$(ConfigurationName).xml" "$(TargetDir)..\About\About.xml" /C /Y /K /Q /D
IF /I "$(ConfigurationName)" == "Release"; echo F|xcopy "$(ProjectDir)..\About\Preview.png" "$(TargetDir)..\About\Preview.png" /S /C /Y /K /Q /D
IF /I "$(ConfigurationName)" == "Release"; xcopy "$(ProjectDir)..\Assemblies" "$(TargetDir)..\Assemblies" /S /C /Y /K /I /Q /D
IF /I "$(ConfigurationName)" == "Release"; xcopy "$(ProjectDir)..\Defs" "$(TargetDir)..\Defs" /S /C /Y /K /I /Q /D
IF /I "$(ConfigurationName)" == "Release"; xcopy "$(ProjectDir)..\Patches" "$(TargetDir)..\Patches" /S /C /Y /K /I /Q /D
IF /I "$(ConfigurationName)" == "Release"; xcopy "$(ProjectDir)..\Languages" "$(TargetDir)..\Languages" /S /C /Y /K /I /Q /D
IF /I "$(ConfigurationName)" == "Release"; xcopy "$(ProjectDir)..\Sounds" "$(TargetDir)..\Sounds" /S /C /Y /K /I /Q /D
IF /I "$(ConfigurationName)" == "Release"; xcopy "$(ProjectDir)..\Textures" "$(TargetDir)..\Textures" /S /C /Y /K /I /Q /D
IF /I "$(ConfigurationName)" == "Release"; IF EXIST "$(ProjectDir)..\LICENSE"; copy "$(ProjectDir)..\LICENSE" "$(TargetDir)..\LICENSE" /Y</PostBuildEvent>
IF /I "$(ConfigurationName)" == "Release"; IF EXIST "$(ProjectDir)..\LICENSE"; copy "$(ProjectDir)..\LICENSE" "$(TargetDir)..\LICENSE" /Y</PostBuildEvent-->
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions Source/ChangeMapEdgeHarmony.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using Verse;
using Harmony;
using HarmonyLib;
using System.Reflection;
using RimWorld;
using UnityEngine;
Expand All @@ -12,7 +12,7 @@ static class ChangeMapEdgeHarmony
{
static ChangeMapEdgeHarmony()
{
HarmonyInstance harmony = HarmonyInstance.Create("rimworld.kapitanoczywisty.changemapedge");
Harmony harmony = new Harmony("rimworld.kapitanoczywisty.changemapedge");

MethodInfo nobuild_targetmethod = AccessTools.Method(typeof(Verse.GenDraw), "DrawNoBuildEdgeLines");
HarmonyMethod nobuild_prefixmethod = new HarmonyMethod(typeof(ChangeMapEdgeHarmony).GetMethod("DrawNoBuildEdgeLines_Prefix"));
Expand Down
7 changes: 7 additions & 0 deletions v1.1/About/About.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<ModMetaData>
<name>Change map edge limit - Dev Build</name>
<author>Kapitan Oczywisty</author>
<targetVersion>1.0.2059</targetVersion>
<description>Change map edge limit dev build</description>
</ModMetaData>
Binary file added v1.1/Assemblies/ChangeMapEdge.dll
Binary file not shown.

0 comments on commit cbee96d

Please sign in to comment.