demotool/common.hh
Emmanuel BENOîT ae3958f785 Project manager - Use project path to load everything
+ Curves, script and shaders are loaded from the path of the project.
+ Main tool can be passed a parameter to specify the project's root.
2017-11-24 14:53:41 +01:00

29 lines
572 B
C++

#pragma once
#ifndef REAL_BUILD
# include "externals.hh"
#endif
struct T_Project;
struct T_FilesWatcher;
struct T_SyncManager;
struct T_ScriptManager;
class T_UndoManager;
struct Common
{
static void Init( T_String const& path = {} ) noexcept;
static void Shutdown( ) noexcept;
static T_Project& Project( ) noexcept;
static T_FilesWatcher& Watcher( ) noexcept;
static T_SyncManager& Sync( ) noexcept;
static T_ScriptManager& Ops( ) noexcept;
static T_UndoManager& Undo( ) noexcept;
private:
Common( ) = delete;
NO_COPY( Common );
NO_MOVE( Common );
};