diff options
author | Stijn Buys <ingar@osirion.org> | 2008-03-06 22:59:40 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-03-06 22:59:40 +0000 |
commit | df61a28d708c30e3e77d1f739dfb4561c042c89c (patch) | |
tree | d280b5eef345ea80f78f9d41df3c2367c9a88cd5 /src/core/gameinterface.cc | |
parent | 6ade6c1c346743b8432600485e28682e276cfbd0 (diff) |
moved render::Model to core::Model
Diffstat (limited to 'src/core/gameinterface.cc')
-rw-r--r-- | src/core/gameinterface.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/gameinterface.cc b/src/core/gameinterface.cc index 9aa50fc..1f8f265 100644 --- a/src/core/gameinterface.cc +++ b/src/core/gameinterface.cc @@ -12,11 +12,17 @@ #include "core/cvar.h" #include "core/func.h" #include "core/gameinterface.h" +#include "core/model.h" #include "core/player.h" namespace core { +void func_list_model(std::string const &args) +{ + Model::list(); +} + Player GameInterface::game_localplayer; EntityControlable *localcontrol() @@ -54,10 +60,13 @@ GameInterface::GameInterface() } + core::Func::add("list_model", (core::FuncPtr) func_list_model); } GameInterface::~GameInterface() { + core::Func::remove("list_model"); + clear(); } @@ -87,6 +96,9 @@ void GameInterface::clear() Cvar::registry.erase(it); } } + + // remove all models + Model::clear(); } |