feat(chat): route retail lifestone commands
Separate retail client actions, ACE server commands, and ordinary chat at the shared router. Port lifestone/lif/ls from the named retail registry through a typed App controller to game action 0x0063, keep unknown verbs on ACE Talk, and cover both UI backends plus exact outbound bytes. Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
parent
5090aa7217
commit
5a45a7ac7f
19 changed files with 604 additions and 78 deletions
36
src/AcDream.App/UI/ClientCommandController.cs
Normal file
36
src/AcDream.App/UI/ClientCommandController.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
using AcDream.UI.Abstractions;
|
||||
|
||||
namespace AcDream.App.UI;
|
||||
|
||||
/// <summary>
|
||||
/// Application-layer executor for typed retail client commands. Chat panels
|
||||
/// remain backend- and network-agnostic; this controller translates their
|
||||
/// intent to the live-session action supplied by the composition root.
|
||||
/// </summary>
|
||||
public sealed class ClientCommandController
|
||||
{
|
||||
private readonly Action _teleportToLifestone;
|
||||
|
||||
public ClientCommandController(Action teleportToLifestone)
|
||||
{
|
||||
_teleportToLifestone = teleportToLifestone
|
||||
?? throw new ArgumentNullException(nameof(teleportToLifestone));
|
||||
}
|
||||
|
||||
public void Execute(ExecuteClientCommandCmd command)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(command);
|
||||
|
||||
switch (command.Command)
|
||||
{
|
||||
// Retail: ClientCommunicationSystem::DoLifestone @ 0x0056FC70
|
||||
// -> CM_Character::Event_TeleToLifestone @ 0x006A1B90.
|
||||
case ClientCommandId.LifestoneRecall:
|
||||
_teleportToLifestone();
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(
|
||||
nameof(command), command.Command, "Unknown retail client command.");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue