RynthCore as of 2026-11-17 (internal 786d121): release 2026.11.17.1

This commit is contained in:
Tom Bohar 2026-11-17 10:31:59 -05:00
commit 8713c804ce
10 changed files with 298 additions and 24 deletions

View file

@ -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;