demotool/globals.hh

32 lines
737 B
C++
Raw Normal View History

#pragma once
#ifndef REAL_BUILD
# include "externals.hh"
#endif
struct T_FilesWatcher;
struct T_Profiler;
2017-10-30 18:29:52 +01:00
struct T_SyncManager;
2017-11-15 23:09:52 +01:00
struct T_ScriptManager;
2017-11-22 10:01:37 +01:00
class T_UndoManager;
struct Globals
{
static void Init( );
static void Shutdown( );
static T_FilesWatcher& Watcher( ) { return *watcher_; }
static T_Profiler& Profiler( ) { return *profiler_; }
2017-10-30 18:29:52 +01:00
static T_SyncManager& Sync( ) { return *sync_; }
2017-11-15 23:09:52 +01:00
static T_ScriptManager& Ops( ) { return *ops_; }
2017-11-22 10:01:37 +01:00
static T_UndoManager& Undo( ) { return *undo_; }
private:
2017-11-15 23:09:52 +01:00
static T_OwnPtr< T_FilesWatcher > watcher_;
static T_OwnPtr< T_Profiler > profiler_;
static T_OwnPtr< T_SyncManager > sync_;
static T_OwnPtr< T_ScriptManager > ops_;
2017-11-22 10:01:37 +01:00
static T_OwnPtr< T_UndoManager > undo_;
};