DreamWeave: pin bar menu API to the engine's constant
Link the engine's PluginContractVersion into the tests and compare the plugin's BarMenuEngineApi to PluginContractVersion.BarMenu instead of a literal 94. Reword the plugin description: links in the bar icon dropdown, card buttons on older RynthCore. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1d7605db23
commit
17601b9768
3 changed files with 9 additions and 5 deletions
|
|
@ -70,10 +70,12 @@ internal static class DreamWeaveWebTests
|
|||
|
||||
private static void EngineDrawsMenu()
|
||||
{
|
||||
Check.Eq(DreamWeaveWeb.BarMenuEngineApi, 94u, "the engine API that draws the bar menu");
|
||||
Check.False(DreamWeaveWeb.EngineDrawsBarMenu(93), "93: the card keeps its buttons");
|
||||
Check.True(DreamWeaveWeb.EngineDrawsBarMenu(94), "94: the engine draws the menu");
|
||||
Check.True(DreamWeaveWeb.EngineDrawsBarMenu(95), "95: the engine draws the menu");
|
||||
// The plugin's const is pinned to the engine's own (the linked PluginContractVersion), so a renumber fails here.
|
||||
uint bar = RynthCore.Engine.Plugins.PluginContractVersion.BarMenu;
|
||||
Check.Eq(DreamWeaveWeb.BarMenuEngineApi, bar, "the engine API that draws the bar menu equals the engine's BarMenu");
|
||||
Check.False(DreamWeaveWeb.EngineDrawsBarMenu(bar - 1), "one before: the card keeps its buttons");
|
||||
Check.True(DreamWeaveWeb.EngineDrawsBarMenu(bar), "at BarMenu: the engine draws the menu");
|
||||
Check.True(DreamWeaveWeb.EngineDrawsBarMenu(bar + 1), "after: the engine draws the menu");
|
||||
Check.False(DreamWeaveWeb.EngineDrawsBarMenu(0), "0: unknown version keeps the buttons");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue