1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-30 16:17:46 +00:00
sapphire/src/servers/sapphire_zone/Framework.h

57 lines
1.1 KiB
C
Raw Normal View History

#ifndef CORE_FRAMEWORK_H
#define CORE_FRAMEWORK_H
#include <boost/shared_ptr.hpp>
#include <map>
#include "Forwards.h"
2018-03-02 07:39:38 -03:00
#include "ServerZone.h"
#include <common/Logging/Logger.h>
#include <common/Exd/ExdDataGenerated.h>
#include "Script/ScriptMgr.h"
#include "Linkshell/LinkshellMgr.h"
2018-03-02 07:39:38 -03:00
#include "Zone/TerritoryMgr.h"
#include "DebugCommand/DebugCommandHandler.h"
2018-03-02 07:39:38 -03:00
#include <common/Database/CharaDbConnection.h>
#include <common/Database/DbWorkerPool.h>
namespace Core
{
class Framework
{
private:
2018-03-02 09:55:03 -03:00
Logger g_log;
DebugCommandHandler g_debugCmdHandler;
Scripting::ScriptMgr g_scriptMgr;
Data::ExdDataGenerated g_exdDataGen;
TerritoryMgr g_territoryMgr;
LinkshellMgr g_linkshellMgr;
Db::DbWorkerPool< Db::CharaDbConnection > g_charaDb;
public:
2018-03-02 09:55:03 -03:00
Logger& getLogger();
DebugCommandHandler& getDebugCommandHandler();
Scripting::ScriptMgr& getScriptMgr();
Data::ExdDataGenerated& getExdDataGen();
TerritoryMgr& getTerritoryMgr();
LinkshellMgr& getLinkshellMgr();
Db::DbWorkerPool< Db::CharaDbConnection >& getCharaDb();
2018-03-02 10:18:54 -03:00
ServerZone& getServerZone();
};
}
#endif // CORE_FRAMEWORK_H