diff options
Diffstat (limited to 'src/core/commandbuffer.cc')
-rw-r--r-- | src/core/commandbuffer.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc index 58fe6be..76d46c4 100644 --- a/src/core/commandbuffer.cc +++ b/src/core/commandbuffer.cc @@ -148,6 +148,11 @@ void func_list_model(std::string const &args) } +void func_list_materials(std::string const &args) +{ + model::Material::list(); +} + void func_list_module(std::string const &args) { Loader::list(); @@ -266,6 +271,9 @@ void CommandBuffer::init() func = Func::add("list_zone", (FuncPtr)func_list_zone); func->set_info("list zones"); + + func = core::Func::add("list_materials", func_list_materials); + func->set_info("list materials"); Func::add("list_model", (FuncPtr) func_list_model); func->set_info("list 3d models"); @@ -303,6 +311,7 @@ void CommandBuffer::shutdown() Func::remove("list_info"); Func::remove("list_inventories"); Func::remove("list_ent"); + Func::remove("list_material"); Func::remove("list_model"); Func::remove("list_module"); Func::remove("list_zone"); |