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

63 lines
1.3 KiB
C
Raw Normal View History

#ifndef CORE_FRAMEWORK_H
#define CORE_FRAMEWORK_H
#include <boost/shared_ptr.hpp>
#include <map>
#include "Forwards.h"
#include "ServerZone.h"
#include <common/Logging/Logger.h>
2018-03-05 22:07:41 -03:00
#include <common/Database/CharaDbConnection.h>
#include <common/Database/DbWorkerPool.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-05 22:07:41 -03:00
#include "Social/Manager/SocialMgr.h"
2018-03-05 23:42:09 -03:00
#include "Social/FriendList.h"
#include "Social/Group.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;
2018-03-05 22:07:41 -03:00
Social::SocialMgr< Social::FriendList > g_friendListMgr;
public:
2018-03-05 22:07:41 -03:00
bool initSocialGroups();
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();
2018-03-05 22:07:41 -03:00
Social::SocialMgr< Social::FriendList > getFriendsListMgr();
};
}
#endif // CORE_FRAMEWORK_H