Skip to content

Commit

Permalink
add - Added scaffolding for SVariant
Browse files Browse the repository at this point in the history
---

We're in the process of adding SVariant so that it replaces SColor,
SFiglet. SPreset, and SIcon.

---

Type: add
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Dec 27, 2024
1 parent df1b5dc commit 0e2af4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
changes!
-->
<NitrocidModAPIVersionMajor>3.0.27</NitrocidModAPIVersionMajor>
<NitrocidModAPIVersionChangeset>19</NitrocidModAPIVersionChangeset>
<NitrocidModAPIVersionChangeset>20</NitrocidModAPIVersionChangeset>

<!-- The above two properties are to be installed to the file version -->
<NitrocidModAPIVersion>$(NitrocidModAPIVersionMajor).$(NitrocidModAPIVersionChangeset)</NitrocidModAPIVersion>
Expand Down
2 changes: 1 addition & 1 deletion public/Nitrocid.Templates/templates/KSMod/ModName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ModName : IMod
public string Name { get; set; } = "My Mod";
public string Version { get; set; } = "1.0.0";

public Version MinimumSupportedApiVersion => new(3, 0, 27, 19);
public Version MinimumSupportedApiVersion => new(3, 0, 27, 20);

public ReadOnlyDictionary<string, Delegate> PubliclyAvailableFunctions => null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,9 @@ public enum SettingsKeyType
/// The value consists of multiple variables.
/// </summary>
SMultivar,
/// <summary>
/// The value consists of variant function that parses the input and converts it to its appropriate config value
/// </summary>
SVariant,
}
}

0 comments on commit 0e2af4b

Please sign in to comment.