summaryrefslogtreecommitdiff
path: root/src/server/game/Scripting/ScriptSystem.h
diff options
context:
space:
mode:
authorKargatum <dowlandtop@yandex.com>2020-10-12 15:08:15 +0700
committerGitHub <noreply@github.com>2020-10-12 10:08:15 +0200
commita2b26272d28f137473c4e14841da0f042e3e8bdc (patch)
tree43a44857f92affd0ffd220a2fc09951e6ddd3f92 /src/server/game/Scripting/ScriptSystem.h
parente99b526e17ce628e919347dff4c150cd6645d01b (diff)
refactor(Core/Game): restyle game lib with astyle (#3466)
Diffstat (limited to 'src/server/game/Scripting/ScriptSystem.h')
-rw-r--r--src/server/game/Scripting/ScriptSystem.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/server/game/Scripting/ScriptSystem.h b/src/server/game/Scripting/ScriptSystem.h
index fafc6066dc..ed4b9f3273 100644
--- a/src/server/game/Scripting/ScriptSystem.h
+++ b/src/server/game/Scripting/ScriptSystem.h
@@ -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()