Declare the parameter type enum where both packet structs see it

An enum which is declared inside a packet is generated as a nested type
of its struct. The ref struct of the same packet is generated into
another file and refers to the enum by its plain name, so it didn't
compile.

Declare it next to the other shared enums instead, which puts it into
the namespace - that's also where CharacterStatus lives, which is used
by a structure of another packet in the same way.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSpK6jkyF8ZS5nYXyGwYxA
(cherry picked from commit 33703647e97d9fb13680086d0366f8200fe2865a)
This commit is contained in:
Claude
2026-07-25 21:24:23 +00:00
committed by Acentech Dev
parent 066894c4f6
commit 7a7e63b40e
4 changed files with 50 additions and 31 deletions

View File

@@ -31730,3 +31730,24 @@ public readonly struct ScoreEntry
White = 7,
}
/// <summary>
/// The kind of value which a chat command parameter expects.
/// </summary>
public enum ChatCommandParameterType
{
/// <summary>
/// The parameter expects a text.
/// </summary>
Text = 0,
/// <summary>
/// The parameter expects a number.
/// </summary>
Number = 1,
/// <summary>
/// The parameter expects a 0 or a 1.
/// </summary>
Boolean = 2,
}

View File

@@ -11345,29 +11345,6 @@
</Fields>
</Structure>
</Structures>
<Enums>
<Enum>
<Name>ChatCommandParameterType</Name>
<Description>The kind of value which a chat command parameter expects.</Description>
<Values>
<EnumValue>
<Name>Text</Name>
<Description>The parameter expects a text.</Description>
<Value>0</Value>
</EnumValue>
<EnumValue>
<Name>Number</Name>
<Description>The parameter expects a number.</Description>
<Value>1</Value>
</EnumValue>
<EnumValue>
<Name>Boolean</Name>
<Description>The parameter expects a 0 or a 1.</Description>
<Value>2</Value>
</EnumValue>
</Values>
</Enum>
</Enums>
</Packet>
</Packets>
<Enums>
@@ -11938,5 +11915,26 @@
</EnumValue>
</Values>
</Enum>
<Enum>
<Name>ChatCommandParameterType</Name>
<Description>The kind of value which a chat command parameter expects.</Description>
<Values>
<EnumValue>
<Name>Text</Name>
<Description>The parameter expects a text.</Description>
<Value>0</Value>
</EnumValue>
<EnumValue>
<Name>Number</Name>
<Description>The parameter expects a number.</Description>
<Value>1</Value>
</EnumValue>
<EnumValue>
<Name>Boolean</Name>
<Description>The parameter expects a 0 or a 1.</Description>
<Value>2</Value>
</EnumValue>
</Values>
</Enum>
</Enums>
</PacketDefinitions>