Creates a new enum.
The name of the enum.
The indexed values of the enum.
Readonly
nameThe name of the enum.
Readonly
valuesThe indexed values of the enum.
Static
readRead a value from the stream.
The BinaryStream to read from.
Optional
options: PacketDataTypeOptions<string[]>Options for reading the data type, such as endianness.
The value read from the stream.
Static
writeWrite a value to the stream.
The BinaryStream to write to.
The value to write.
Optional
options: PacketDataTypeOptions<string[]>Options for writing the data type, such as endianness.
Represents a enum for the available command packet.