7 #ifndef CAFU_CONSOLE_INTERPRETER_IMPL_HPP_INCLUDED
8 #define CAFU_CONSOLE_INTERPRETER_IMPL_HPP_INCLUDED
10 #include "ConsoleInterpreter.hpp"
50 static int Lua_get_Callback(lua_State* LuaState);
51 static int Lua_set_Callback(lua_State* LuaState);
52 static int ConFunc_Help_Callback(lua_State* LuaState);
This class implements Console Variables ("convars").
Definition: ConVar.hpp:39
static int ConFunc_List_Callback(lua_State *LuaState)
If no parameter is given, this function lists all known console functions and variables.
Definition: ConsoleInterpreterImpl.cpp:550
std::string LineCompletion(const std::string &LineBegin, ArrayT< std::string > &Completions)
This method provides command-line completion for this interpreter.
Definition: ConsoleInterpreterImpl.cpp:298
ConFuncT * FindFunc(const std::string &Name)
Finds the confunc with the given name.
Definition: ConsoleInterpreterImpl.cpp:278
This class is an interface to the console interpreter.
Definition: ConsoleInterpreter.hpp:23
void Register(ConVarT *ConVar)
Registers a convar with the console interpreter.
Definition: ConsoleInterpreterImpl.cpp:126
void Unregister(ConVarT *ConVar)
Unregisters the given convar from the interpreter again.
Definition: ConsoleInterpreterImpl.cpp:229
This class provides an implementation for the ConsoleInterpreterI interface.
Definition: ConsoleInterpreterImpl.hpp:33
bool RunCommand(const std::string &Input)
Compiles and runs the given Lua statements.
Definition: ConsoleInterpreterImpl.cpp:368
Definition: ConFunc.hpp:18
ConVarT * FindVar(const std::string &Name)
Finds the convar with the given name.
Definition: ConsoleInterpreterImpl.cpp:288