Define the packets for the chat command list

Adds the two message definitions which let a client ask for the chat
commands of its player and receive them in a machine readable form:

- ChatCommandListRequest (C1, F5/00), sent by the client after it
  entered the game world.
- ChatCommandInfo (C2, F5/01), one message per available command. It
  carries the command, its localized name and description, the required
  character status and one entry per parameter with its name, short
  name, kind and accepted values.

F5 is unused in both directions and in the client, and F3 - the other
candidate - is character scoped, so it doesn't fit.

The generated code was produced with the same transformations the
project uses, so the diff only adds the new types and leaves the
existing ones untouched.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSpK6jkyF8ZS5nYXyGwYxA
(cherry picked from commit 2cd46516f6136cfc7f96f4d3b7db4c8329559d3a)
This commit is contained in:
Claude
2026-07-25 21:11:29 +00:00
committed by Acentech Dev
parent 960664c1c3
commit 4f83b72de8
2 changed files with 142 additions and 1 deletions

View File

@@ -4268,6 +4268,18 @@
</Field>
</Fields>
</Packet>
<Packet>
<HeaderType>C1HeaderWithSubCode</HeaderType>
<Code>F5</Code>
<SubCode>00</SubCode>
<Name>ChatCommandListRequest</Name>
<Caption>Request chat command list</Caption>
<Length>4</Length>
<Direction>ClientToServer</Direction>
<SentWhen>A client which supports a user interface for chat commands requests the list of commands which are available to the player. It's usually sent after the character entered the game world.</SentWhen>
<CausedReaction>The server sends a ChatCommandInfo for each available chat command.</CausedReaction>
<Fields />
</Packet>
</Packets>
<Enums>
<Enum>