refactor(Core/Game): restyle game lib with astyle (#3466)

This commit is contained in:
Kargatum
2020-10-12 15:08:15 +07:00
committed by GitHub
parent e99b526e17
commit a2b26272d2
338 changed files with 52196 additions and 50944 deletions

View File

@@ -48,32 +48,32 @@ typedef std::vector<ScriptPointMove> ScriptPointVector;
class SystemMgr
{
SystemMgr() {}
~SystemMgr() {}
SystemMgr() {}
~SystemMgr() {}
public:
static SystemMgr* instance();
public:
static SystemMgr* instance();
typedef std::unordered_map<uint32, ScriptPointVector> PointMoveMap;
typedef std::unordered_map<uint32, ScriptPointVector> PointMoveMap;
//Database
void LoadScriptWaypoints();
//Database
void LoadScriptWaypoints();
ScriptPointVector const& GetPointMoveList(uint32 creatureEntry) const
{
PointMoveMap::const_iterator itr = m_mPointMoveMap.find(creatureEntry);
ScriptPointVector const& GetPointMoveList(uint32 creatureEntry) const
{
PointMoveMap::const_iterator itr = m_mPointMoveMap.find(creatureEntry);
if (itr == m_mPointMoveMap.end())
return _empty;
if (itr == m_mPointMoveMap.end())
return _empty;
return itr->second;
}
return itr->second;
}
protected:
PointMoveMap m_mPointMoveMap; //coordinates for waypoints
protected:
PointMoveMap m_mPointMoveMap; //coordinates for waypoints
private:
static ScriptPointVector const _empty;
private:
static ScriptPointVector const _empty;
};
#define sScriptSystemMgr SystemMgr::instance()