mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Initial Implementation of the Taml, Asset and Modules systems.
Only has example and shape assets currently.
This commit is contained in:
parent
2044b2691e
commit
7a3b40a86d
123 changed files with 30435 additions and 181 deletions
|
|
@ -65,6 +65,14 @@
|
|||
#include "platform/platformVFS.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MODULE_MANAGER_H
|
||||
#include "module/moduleManager.h"
|
||||
#endif
|
||||
|
||||
#ifndef _ASSET_MANAGER_H_
|
||||
#include "assets/assetManager.h"
|
||||
#endif
|
||||
|
||||
DITTS( F32, gTimeScale, 1.0 );
|
||||
DITTS( U32, gTimeAdvance, 0 );
|
||||
DITTS( U32, gFrameSkip, 0 );
|
||||
|
|
@ -257,7 +265,7 @@ void StandardMainLoop::init()
|
|||
|
||||
// Initialize modules.
|
||||
|
||||
ModuleManager::initializeSystem();
|
||||
EngineModuleManager::initializeSystem();
|
||||
|
||||
// Initialise ITickable.
|
||||
#ifdef TORQUE_TGB_ONLY
|
||||
|
|
@ -288,6 +296,15 @@ void StandardMainLoop::init()
|
|||
Con::addVariable("MiniDump::Params", TypeString, &gMiniDumpParams);
|
||||
Con::addVariable("MiniDump::ExecDir", TypeString, &gMiniDumpExecDir);
|
||||
#endif
|
||||
|
||||
// Register the module manager.
|
||||
ModuleDatabase.registerObject("ModuleDatabase");
|
||||
|
||||
// Register the asset database.
|
||||
AssetDatabase.registerObject("AssetDatabase");
|
||||
|
||||
// Register the asset database as a module listener.
|
||||
ModuleDatabase.addListener(&AssetDatabase);
|
||||
|
||||
ActionMap* globalMap = new ActionMap;
|
||||
globalMap->registerObject("GlobalActionMap");
|
||||
|
|
@ -317,10 +334,16 @@ void StandardMainLoop::shutdown()
|
|||
|
||||
delete tm;
|
||||
preShutdown();
|
||||
|
||||
// Unregister the module database.
|
||||
ModuleDatabase.unregisterObject();
|
||||
|
||||
// Unregister the asset database.
|
||||
AssetDatabase.unregisterObject();
|
||||
|
||||
// Shut down modules.
|
||||
|
||||
ModuleManager::shutdownSystem();
|
||||
EngineModuleManager::shutdownSystem();
|
||||
|
||||
ThreadPool::GlobalThreadPool::deleteSingleton();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue