|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
31 #include <unordered_map>
43 typedef std::unordered_map<std::string, CVar*>
CVarPtrMap;
70 size_t time, uint32_t net_user = 0, std::string icon =
""):
92 std::lock_guard<std::mutex>
lock;
113 CVar*
cVarCreate(std::string
const& name, std::string
const& long_name,
114 int flags, std::string
const& val = std::string());
123 CVar*
cVarSet(std::string
const& input_name, std::string
const& input_val);
126 CVar*
cVarGet(std::string
const& input_name,
int flags);
151 const Ogre::String& message, Ogre::LogMessageLevel lml,
152 bool maskDebug,
const Ogre::String& logName,
bool& skipThisMessage)
override;
MsgLockGuard(Console *console)
@ CONSOLE_MSGTYPE_LOG
Logfile echo.
CVar * cVarGet(std::string const &input_name, int flags)
Get cvar by short/long name, or create new one using input as short name.
Message(MessageArea area, MessageType type, std::string const &text, size_t time, uint32_t net_user=0, std::string icon="")
@ CONSOLE_MSGTYPE_TERRN
Parsing/spawn/simulation messages for terrain.
std::unordered_map< std::string, CVar * > CVarPtrMap
void cVarSetupBuiltins()
Create builtin vars and set defaults.
CVar * cVarFind(std::string const &input_name)
Find cvar by short/long name.
void putMessage(MessageArea area, MessageType type, std::string const &msg, std::string icon="")
CVar * cVarCreate(std::string const &name, std::string const &long_name, int flags, std::string const &val=std::string())
Add CVar and parse default value if specified.
std::vector< Message > m_messages
std::unordered_map< std::string, ConsoleCmd * > CommandPtrMap
std::vector< Message > & messages
CVar * cVarSet(std::string const &input_name, std::string const &input_val)
Set existing cvar by short/long name. Return the modified cvar (or NULL if not found)
void cVarAssign(CVar *cvar, std::string const &value)
Parse value by cvar type.
void forwardLogMessage(MessageArea area, std::string const &msg, Ogre::LogMessageLevel lml)
unsigned long queryMessageTimer()
void doCommand(std::string msg)
Identify and execute any console line.
CVarPtrMap m_cvars_longname
void handleMessage(MessageArea area, MessageType type, std::string const &msg, int net_id=0, std::string icon="")
@ CONSOLE_SYSTEM_REPLY
Success.
Quake-style console variable, defined in RoR.cfg or crated via Console UI and scripts.
std::mutex m_messages_mutex
virtual void messageLogged(const Ogre::String &message, Ogre::LogMessageLevel lml, bool maskDebug, const Ogre::String &logName, bool &skipThisMessage) override
CommandPtrMap & getCommands()
std::lock_guard< std::mutex > lock
void showCommandLineVersion()
void putNetMessage(int user_id, MessageType type, const char *text)
void regBuiltinCommands()
Register builtin commands.
Global game console backend.
void showCommandLineUsage()
@ CONSOLE_MSGTYPE_ACTOR
Parsing/spawn/simulation messages for actors.
@ CONSOLE_MSGTYPE_INFO
Generic message.
@ CONSOLE_MSGTYPE_SCRIPT
Messages sent from scripts.
MsgLockGuard(Console &console)
void processCommandLine(int argc, char *argv[])