RynthDreamWeave: Task 6 review fixes (code never to chat, allow-list scan, result generation)
- ServerChatText reads every line through the launcher, with no Active gate first: a code answering our request is eaten whatever the world is now, and opens nothing when the world is no longer DreamWeave. - WebLauncher: a generation token (Begin when Started, Reset) and SetResult(generation, status), which replaces the status compare and the use of Cancel as a status setter. The no-panel note is once per login epoch, so an answer from an earlier login can't spend it. - An open failure reads "Market: Couldn't open your browser (code N)." - StartLaunch's catch answers "Couldn't start the web open." - ServerUsageLines: an optional shared hook for a server's own usage lines; DreamWeave lists market | suit | abilities. Hookless servers print the same two lines as before (pinned on Coldeve). - The source scan is allow-lists: every lock is on the launcher's Gate and calls only its members, the Stale arm is exactly eat = true, Draw calls only ImGui, SafeImGui and click. Comments are stripped without touching string literals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f012dc5c69
commit
5fbbf4e654
5 changed files with 297 additions and 80 deletions
|
|
@ -70,6 +70,12 @@ internal static class ServerPackCommandsTests
|
|||
Check.Eq(own.Length, 3, "an own line is appended");
|
||||
Check.Eq(own[2], "/rserver x - one more line", "trimmed");
|
||||
Check.True(own[0] == pinned[0] && own[1] == pinned[1], "the shared two come first, unchanged");
|
||||
|
||||
// DreamWeave's verbs follow the shared two.
|
||||
string[] dw = ServerPackCommands.Usage("DreamWeave", new List<string> { RynthCore.Plugin.RynthDreamWeave.DreamWeaveWeb.UsageLine() });
|
||||
Check.Eq(dw.Length, 3, "DreamWeave: three usage lines");
|
||||
Check.Eq(dw[2], "/rserver market | suit | abilities - open the website's Market, Suit Builder, Ability Planner, logged in as this account.", "DreamWeave's own line");
|
||||
Check.True(dw[0] == ServerPackCommands.Usage("DreamWeave")[0] && dw[1] == ServerPackCommands.Usage("DreamWeave")[1], "the shared two come first, unchanged");
|
||||
}
|
||||
|
||||
private static void Queue()
|
||||
|
|
|
|||
Loading…
Reference in a new issue