Skip to content

Commit

Permalink
Added constants for the different versions of RimWorld.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirRandoo committed Sep 7, 2023
1 parent c9a4398 commit 2146f7e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,20 @@
<PropertyGroup>
<OutputPath>$(_OutputDirectory)</OutputPath>
</PropertyGroup>

<PropertyGroup Condition="$([MSBuild]::VersionEquals('$(RimWorldVersion)', '1.4'))">
<DefineConstants>$(DefineConstants);RW14</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::VersionEquals('$(RimWorldVersion)', '1.3'))">
<DefineConstants>$(DefineConstants);RW13</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::VersionEquals('$(RimWorldVersion)', '1.2'))">
<DefineConstants>$(DefineConstants);RW12</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::VersionEquals('$(RimWorldVersion)', '1.1'))">
<DefineConstants>$(DefineConstants);RW11</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::VersionEquals('$(RimWorldVersion)', '1.0'))">
<DefineConstants>$(DefineConstants);RW10</DefineConstants>
</PropertyGroup>
</Project>

0 comments on commit 2146f7e

Please sign in to comment.