diff options
| author | Stijn Buys <ingar@osirion.org> | 2008-10-18 14:44:13 +0000 | 
|---|---|---|
| committer | Stijn Buys <ingar@osirion.org> | 2008-10-18 14:44:13 +0000 | 
| commit | db287e4a5133125bb6f25ba21ea97c47b19ac67f (patch) | |
| tree | c977e4da6203344362a186010d017463d88def6e /src/core/commandbuffer.cc | |
| parent | ade4627e7fe0f89d9fdb2e27f01444ad0aa2d41d (diff) | |
minor module updates
Diffstat (limited to 'src/core/commandbuffer.cc')
| -rw-r--r-- | src/core/commandbuffer.cc | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc index 5ed3787..8c3c8a1 100644 --- a/src/core/commandbuffer.cc +++ b/src/core/commandbuffer.cc @@ -69,6 +69,12 @@ void func_list_model(std::string const &args)  	model::Model::list();  } + +void func_list_module(std::string const &args) +{ +	Module::list(); +} +  void func_set(std::string const &args)  {  	std::istringstream argstream(args); @@ -168,6 +174,9 @@ void CommandBuffer::init()  	Func::add("list_model", (FuncPtr) func_list_model);  	func->set_info("list models"); +	Func::add("list_module", (FuncPtr) func_list_module); +	func->set_info("list game modules"); +  	func = Func::add("set", (FuncPtr)func_set);  	func->set_info("[variable] [str] set variable value"); @@ -194,6 +203,7 @@ void CommandBuffer::shutdown()  	Func::remove("list_func");  	Func::remove("list_ent");  	Func::remove("list_model"); +	Func::remove("list_module");  	Func::remove("list_zone");  	Func::remove("print");  	Func::remove("print_file"); | 
