Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/commandbuffer.cc')
-rw-r--r--src/core/commandbuffer.cc18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc
index a38d9d0..ead2a98 100644
--- a/src/core/commandbuffer.cc
+++ b/src/core/commandbuffer.cc
@@ -65,10 +65,18 @@ void CommandBuffer::init()
{
//con_debug << "Initializing command buffer...\n";
- Func::add("list_ent", (FuncPtr)func_list_ent);
- Func::add("list_func", (FuncPtr)func_list_func);
- Func::add("list_var", (FuncPtr)func_list_var);
- Func::add("set", (FuncPtr)func_set);
+ Func *func = 0;
+ func = Func::add("list_ent", (FuncPtr)func_list_ent);
+ func->set_info("list entities");
+
+ func = Func::add("list_func", (FuncPtr)func_list_func);
+ func->set_info("list functions");
+
+ func = Func::add("list_var", (FuncPtr)func_list_var);
+ func->set_info("list variables");
+
+ func = Func::add("set", (FuncPtr)func_set);
+ func->set_info("[variable] [str] set variable value");
}
void CommandBuffer::shutdown()
@@ -130,7 +138,7 @@ void CommandBuffer::exec(std::string const &cmdline)
}
}
- con_print << command << " " << cvar->str() << "\n";
+ con_print << command << " " << cvar->str() << " " << cvar->info() << "\n";
return;
}