Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-01-27 12:36:26 +0000
committerStijn Buys <ingar@osirion.org>2011-01-27 12:36:26 +0000
commit2a87246be478e5ddd2bef4080f36382a889e02dd (patch)
treed203a9a49044f03764dc2661f688b1c6c836e56d /src/core/commandbuffer.cc
parent45b93da49b74acd7389e4faa1cfd5dba6cd75c95 (diff)
Moved material loading from render to core, make sure the dedicated server reads materials.ini,
removed unnecessary CollisionMesh::translate() method.
Diffstat (limited to 'src/core/commandbuffer.cc')
-rw-r--r--src/core/commandbuffer.cc9
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");