Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ScriptSystem.h
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#ifndef SC_SYSTEM_H
7#define SC_SYSTEM_H
8
10#include "ScriptMgr.h"
11
12#define TEXT_SOURCE_RANGE -1000000 //the amount of entries each text source has available
13
15//N=Neutral, A=Alliance, H=Horde.
16//NEUTRAL or FRIEND = Hostility to player surroundings (not a good definition)
17//ACTIVE or PASSIVE = Hostility to environment surroundings.
37
47
48typedef std::vector<ScriptPointMove> ScriptPointVector;
49
51{
52 friend class Skyfire::Singleton<SystemMgr, Skyfire::NullMutex>;
55
56public:
58
59 //Database
61
62 ScriptPointVector const& GetPointMoveList(uint32 creatureEntry) const
63 {
64 PointMoveMap::const_iterator itr = m_mPointMoveMap.find(creatureEntry);
65
66 if (itr == m_mPointMoveMap.end())
67 return _empty;
68
69 return itr->second;
70 }
71
72protected:
73 PointMoveMap m_mPointMoveMap; //coordinates for waypoints
74
75private:
77};
78
79#define sScriptSystemMgr Skyfire::Singleton<SystemMgr, Skyfire::NullMutex>::instance()
80
81#endif
std::uint32_t uint32
Definition Define.h:77
eEscortFaction
@ FACTION_ESCORT_N_ACTIVE
@ FACTION_ESCORT_N_NEUTRAL_PASSIVE
@ FACTION_ESCORT_A_NEUTRAL_ACTIVE
@ FACTION_ESCORT_A_PASSIVE
@ FACTION_ESCORT_H_NEUTRAL_PASSIVE
@ FACTION_ESCORT_H_NEUTRAL_ACTIVE
@ FACTION_ESCORT_H_ACTIVE
@ FACTION_ESCORT_N_FRIEND_PASSIVE
@ FACTION_ESCORT_H_PASSIVE
@ FACTION_ESCORT_A_NEUTRAL_PASSIVE
@ FACTION_ESCORT_N_NEUTRAL_ACTIVE
@ FACTION_ESCORT_N_FRIEND_ACTIVE
std::vector< ScriptPointMove > ScriptPointVector
#define UNORDERED_MAP
PointMoveMap m_mPointMoveMap
static ScriptPointVector const _empty
UNORDERED_MAP< uint32, ScriptPointVector > PointMoveMap
void LoadScriptWaypoints()
ScriptPointVector const & GetPointMoveList(uint32 creatureEntry) const
uint32 uiCreatureEntry