RynthCore as of 2026-11-17 (internal 786d121): release 2026.11.17.1
This commit is contained in:
parent
c7ef40224a
commit
8713c804ce
10 changed files with 298 additions and 24 deletions
|
|
@ -4,7 +4,8 @@
|
|||
Offline checks for RynthChat's /reply + /retell and paste (compiled in):
|
||||
src\RynthCore.Engine\Compatibility\TellMemory.cs - who to reply / retell to, read off the
|
||||
chat lines, and the rewrite of "/r text" into "/tell Name, text";
|
||||
src\RynthCore.Engine\UI\Data\ChatInputPaste.cs - clipboard text made into one input line.
|
||||
src\RynthCore.Engine\UI\Data\ChatInputPaste.cs - clipboard text made into one input line;
|
||||
src\RynthCore.Engine\Compatibility\ChatLineRoute.cs - which lines are AC emotes, not speech.
|
||||
Nothing native: no AC, no engine state.
|
||||
Run: dotnet run -c Release (exit 0 = pass, 1 = fail)
|
||||
-->
|
||||
|
|
@ -20,6 +21,7 @@
|
|||
<ItemGroup>
|
||||
<Compile Include="..\..\src\RynthCore.Engine\Compatibility\TellMemory.cs" Link="Engine\TellMemory.cs" />
|
||||
<Compile Include="..\..\src\RynthCore.Engine\UI\Data\ChatInputPaste.cs" Link="Engine\ChatInputPaste.cs" />
|
||||
<Compile Include="..\..\src\RynthCore.Engine\Compatibility\ChatLineRoute.cs" Link="Engine\ChatLineRoute.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ internal static class Program
|
|||
RewriteCases();
|
||||
PasteClean();
|
||||
PasteInsert();
|
||||
EmoteLines();
|
||||
|
||||
Console.WriteLine();
|
||||
Console.WriteLine($"{_checks - _failed}/{_checks} checks passed.");
|
||||
|
|
@ -168,6 +169,33 @@ internal static class Program
|
|||
Check(r == pair + "b" && c == pair.Length + 1, "never splits a surrogate pair");
|
||||
}
|
||||
|
||||
// ── emotes (ChatLineRoute.cs) ───────────────────────────────────────────
|
||||
|
||||
private static void EmoteLines()
|
||||
{
|
||||
Case("emote lines go to AC's parser");
|
||||
Check(ChatLineRoute.IsAcEmoteLine("@e waves"), "@e text");
|
||||
Check(ChatLineRoute.IsAcEmoteLine("@EM waves"), "@em, any case");
|
||||
Check(ChatLineRoute.IsAcEmoteLine("@emote looks around the town curiously."), "@emote text");
|
||||
Check(ChatLineRoute.IsAcEmoteLine("@emotes"), "@emotes alone (the list)");
|
||||
Check(ChatLineRoute.IsAcEmoteLine("; waves"), "; text");
|
||||
Check(ChatLineRoute.IsAcEmoteLine(":waves"), ":text");
|
||||
Check(ChatLineRoute.IsAcEmoteLine("*wave*"), "*wave*");
|
||||
Check(ChatLineRoute.IsAcEmoteLine("*Warm Hands*"), "*two words*");
|
||||
|
||||
Case("everything else stays speech or a server command");
|
||||
Check(!ChatLineRoute.IsAcEmoteLine("hello there"), "plain words");
|
||||
Check(!ChatLineRoute.IsAcEmoteLine("@myquests"), "an ACE @command");
|
||||
Check(!ChatLineRoute.IsAcEmoteLine("@echo hi"), "@echo is not @e");
|
||||
Check(!ChatLineRoute.IsAcEmoteLine("@emu"), "@emu is not @em");
|
||||
Check(!ChatLineRoute.IsAcEmoteLine("*"), "a lone asterisk");
|
||||
Check(!ChatLineRoute.IsAcEmoteLine("**"), "two asterisks");
|
||||
Check(!ChatLineRoute.IsAcEmoteLine("* *"), "asterisks round a space");
|
||||
Check(!ChatLineRoute.IsAcEmoteLine("*wave"), "no closing asterisk");
|
||||
Check(!ChatLineRoute.IsAcEmoteLine(";"), "a lone semicolon");
|
||||
Check(!ChatLineRoute.IsAcEmoteLine(""), "empty");
|
||||
}
|
||||
|
||||
private static void Case(string name)
|
||||
{
|
||||
_case = name;
|
||||
|
|
|
|||
Loading…
Reference in a new issue