EnumTable Struct Reference

#include <console.h>

List of all members.


Detailed Description

Scripting engine representation of an enum.

This data structure is used by the scripting engine to expose enumerations to the scripting language. It acts to relate named constants to integer values, just like an enum in C++.


Public Member Functions

 EnumTable (S32 sSize, const Enums *sTable, S32 sFirstFlag=-1)
 Constructor.

Public Attributes

S32 size
 Number of enumerated items in the table.
S32 firstFlag
S32 mask
const Enumstable

Classes

struct  Enums
 This represents a specific item in the enumeration. More...


Constructor & Destructor Documentation

EnumTable::EnumTable ( S32  sSize,
const Enums sTable,
S32  sFirstFlag = -1 
)

Constructor.

This sets up the EnumTable with predefined data.

Parameters:
sSize Size of the table.
sTable Pointer to table of Enums.
See also:
gLiquidTypeTable

gAlignTable


Member Data Documentation

Number of enumerated items in the table.