Torque2D Reference
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...
 
Enumstable
 

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
sSizeSize of the table.
sTablePointer 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: