WGD Enums
From WinWolf3D/WDC
Enumeration is useful for easily defining a sequence of numeric values, such as to define the order of sound chunks in the AUDIOT file or the chunks in VGAGRAPH. They can be defined anywhere in a script, except inside of a WGD block.
Syntax
enum [firstvalue]] variablename1 [value1] variablename2 [value2] ... variablenamex [valuex] end
Notes
- The firstvalue defaults to 0 if not given.
- You can only define a variablename once in the entire script and it must not be a reserved word.
- The value is not required for each line. By default, it is the previous line's value incremented by 1. The first line defaults to firstvalue. If you give a value, it must be numeric or point to a previously defined numeric variable.