Cafu Engine
ConFuncT Class Reference

Public Types

enum  FlagT {
  FLAG_ALL = -1, FLAG_MAIN_EXE = 0x0001, FLAG_MATSYS = 0x0002, FLAG_SOUNDSYS = 0x0004,
  FLAG_GAMEDLL = 0x0008, FLAG_CHEAT = 0x0080
}
 

Public Member Functions

 ConFuncT (const std::string &Name_, lua_CFunction ExecCallback_, const unsigned long Flags_, const std::string &Description_)
 The constructor. More...
 
 ~ConFuncT ()
 The destructor. More...
 
const std::string & GetName () const
 
const std::string & GetDescription () const
 
unsigned long GetFlags () const
 

Static Public Member Functions

static void RegisterStaticList ()
 Registers all convars in the StaticList with the ConsoleInterpreter and invalidates the StaticList. More...
 

Friends

class ConsoleInterpreterImplT
 Give the implementation of the console interpreter full access. More...
 

Member Enumeration Documentation

Enumerator
FLAG_CHEAT 

Use of this function is considered a cheat.

Constructor & Destructor Documentation

ConFuncT::ConFuncT ( const std::string &  Name_,
lua_CFunction  ExecCallback_,
const unsigned long  Flags_,
const std::string &  Description_ 
)

The constructor.

ConFuncT::~ConFuncT ( )

The destructor.

Member Function Documentation

void ConFuncT::RegisterStaticList ( )
static

Registers all convars in the StaticList with the ConsoleInterpreter and invalidates the StaticList.

This has to be called after the ConsoleInterpreter pointer is set when the dll is first initialized! The ctors of all convars that are instantiated after this call (those that are declared as local (static) variables) then automatically register themselves with the ConsoleInterpreter rather than with the StaticList.

Friends And Related Function Documentation

friend class ConsoleInterpreterImplT
friend

Give the implementation of the console interpreter full access.


The documentation for this class was generated from the following files: