Skip to content

Commit

Permalink
C#: Add version defines to help users deal with breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RedworkDE committed Jun 15, 2023
1 parent 33957ae commit 1b466c6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/mono/editor/Godot.NET.Sdk/Godot.NET.Sdk/Sdk/Sdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,13 @@

<!-- Godot DefineConstants. -->
<PropertyGroup>
<!-- Define constant to identify Godot builds. -->
<GodotDefineConstants>GODOT</GodotDefineConstants>
<!-- Define constants to identify Godot builds and versions. -->
<GodotDefineConstants>
GODOT;
GODOT4;GODOT4_OR_GREATER;
GODOT4_1;GODOT4_1_OR_GREATER;GODOT4_0_OR_GREATER;
GODOT4_1_0;GODOT4_1_0_OR_GREATER;
</GodotDefineConstants>

<!--
Define constant to determine the target Godot platform. This includes the
Expand Down

0 comments on commit 1b466c6

Please sign in to comment.