RynthCore/tools/KeymapTests/KeymapTests.csproj

27 lines
1.3 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<!--
Offline checks for changing a key in AC's keymap file (Tom 2026-10-22: the item bar's keys are the
player's retail keys and change together with the retail toolbar's). src\RynthCore.Engine\
Compatibility\AcKeymapText.cs is compiled in as is, with Hotkeys\HotkeyModel.cs: reading the
groups and bindings, the modifier bits from MetaKeys, key names (AC's spellings, aliases matched),
binding a key so it comes off every other action in the game's groups (never the text-editing
ones), unbinding, a new group when there is none, and the CRLF text round trip. Also runs on a
copy of the player's own Normal.keymap in memory when there is one; never writes it.
Run: dotnet run -c Release (exit 0 = pass, 1 = fail)
-->
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>true</InvariantGlobalization>
<RootNamespace>KeymapTests</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\RynthCore.Engine\Hotkeys\HotkeyModel.cs" Link="Engine\HotkeyModel.cs" />
<Compile Include="..\..\src\RynthCore.Engine\Compatibility\AcKeymapText.cs" Link="Engine\AcKeymapText.cs" />
</ItemGroup>
</Project>