#include <CUI_Console.h>
Public Member Functions | |
CUI_ConsoleVar (const char *name, CUI_Console::cvartype_t type, void *data) | |
constructor | |
~CUI_ConsoleVar () | |
destructor | |
bool | SetValue (char *val) |
set the value - does text-to-other-types conversion | |
char * | GetValue () |
get the value as a string fit to echo to the console | |
Protected Attributes | |
std::string | m_name |
name | |
CUI_Console::cvartype_t | m_type |
type | |
void * | m_data |
pointer to the actual parameter |
Used to view/modify a variable. Only a few basic types are supported. Hopefully with C++'s type-casting they will be sufficient.
If the cvar type is "string", the memory the string is in is owned by the DLL, and the data should be a **char
|
type Should be close enough to allow C++ to type-cast to *data |