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:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user