Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Classes | Public Member Functions | Public Attributes | List of all members
EnumTable Struct Reference

`#include <console.h>`

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

## Public Member Functions
| EnumTable (S32 sSize, Enums *sTable)

## Public Attributes
S32 | size
| Number of enumerated items in the table. More...
Enums * | table

## 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++.

## Constructor & Destructor Documentation

EnumTable | ( | S32 | sSize,
|  | Enums * | sTable
| ) |  |
| inline

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

S32 size

Number of enumerated items in the table.

Enums* table

The documentation for this struct was generated from the following file:

- console/console.h