-
Notifications
You must be signed in to change notification settings - Fork 372
/
ElunaIncludes.h
208 lines (193 loc) · 5.49 KB
/
ElunaIncludes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/*
* Copyright (C) 2010 - 2024 Eluna Lua Engine <https://elunaluaengine.github.io/>
* This program is free software licensed under GPL version 3
* Please see the included DOCS/LICENSE.md for more information
*/
#ifndef _ELUNA_INCLUDES_H
#define _ELUNA_INCLUDES_H
// Required
#if !defined ELUNA_CMANGOS
#include "AccountMgr.h"
#include "AuctionHouseMgr.h"
#include "Bag.h"
#include "Cell.h"
#include "CellImpl.h"
#include "Channel.h"
#include "Chat.h"
#include "DBCStores.h"
#include "GameEventMgr.h"
#include "GossipDef.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Group.h"
#include "Guild.h"
#include "GuildMgr.h"
#include "Language.h"
#include "Mail.h"
#include "MapManager.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Opcodes.h"
#include "Pet.h"
#include "Player.h"
#include "ReputationMgr.h"
#include "ScriptMgr.h"
#include "Spell.h"
#include "SpellAuras.h"
#include "SpellMgr.h"
#include "TemporarySummon.h"
#include "WorldPacket.h"
#include "WorldSession.h"
#if defined ELUNA_TRINITY
#include "Battleground.h"
#include "Config.h"
#include "DatabaseEnv.h"
#include "GitRevision.h"
#include "GroupMgr.h"
#include "MiscPackets.h"
#include "MotionMaster.h"
#include "ScriptedCreature.h"
#include "SpellHistory.h"
#include "SpellInfo.h"
#include "WeatherMgr.h"
#elif defined ELUNA_VMANGOS
#include "BasicAI.h"
#include "SQLStorages.h"
#elif defined ELUNA_MANGOS
#include "SQLStorages.h"
#endif // ELUNA_TRINITY
#if ELUNA_EXPANSION > EXP_CLASSIC
#include "ArenaTeam.h"
#endif
#if ELUNA_EXPANSION >= EXP_WOTLK
#include "Vehicle.h"
#endif
#else
#include "Accounts/AccountMgr.h"
#include "AuctionHouse/AuctionHouseMgr.h"
#include "Chat/Channel.h"
#include "Chat/Chat.h"
#include "DBScripts/ScriptMgr.h"
#include "Entities/GossipDef.h"
#include "Entities/Pet.h"
#include "Entities/Player.h"
#include "Entities/TemporarySpawn.h"
#include "GameEvents/GameEventMgr.h"
#include "Globals/ObjectAccessor.h"
#include "Globals/ObjectMgr.h"
#include "Grids/Cell.h"
#include "Grids/CellImpl.h"
#include "Grids/GridNotifiers.h"
#include "Grids/GridNotifiersImpl.h"
#include "Groups/Group.h"
#include "Guilds/Guild.h"
#include "Guilds/GuildMgr.h"
#include "Mails/Mail.h"
#include "Maps/MapManager.h"
#include "Reputation/ReputationMgr.h"
#include "Server/DBCStores.h"
#include "Server/Opcodes.h"
#include "Server/WorldPacket.h"
#include "Server/WorldSession.h"
#include "Spells/Spell.h"
#include "Spells/SpellAuras.h"
#include "Spells/SpellMgr.h"
#include "Tools/Language.h"
#include "Server/SQLStorages.h"
#if ELUNA_EXPANSION > EXP_CLASSIC
#include "Arena/ArenaTeam.h"
#endif
#if ELUNA_EXPANSION >= EXP_WOTLK
#include "Entities/Vehicle.h"
#endif
#if ELUNA_EXPANSION >= EXP_CATA
#include "AI/BaseAI/AggressorAI.h"
#else
#include "AI/BaseAI/UnitAI.h"
#endif
#endif
#if !defined ELUNA_TRINITY
#include "Config/Config.h"
#include "BattleGroundMgr.h"
#if !defined ELUNA_MANGOS
#include "revision.h"
#else
#include "GitRevision.h"
#include "revision_data.h"
#endif
#endif
#if !defined ELUNA_MANGOS
#if ELUNA_EXPANSION > EXP_CLASSIC
typedef Opcodes OpcodesList;
#endif
#endif
/*
* Note: if you add or change a CORE_NAME or CORE_VERSION #define,
* please update LuaGlobalFunctions::GetCoreName or LuaGlobalFunctions::GetCoreVersion documentation example string.
*/
#if defined ELUNA_CMANGOS
#define CORE_NAME "cMaNGOS"
#define CORE_VERSION REVISION_DATE " " REVISION_ID
#if ELUNA_EXPANSION == EXP_CATA
#define NUM_MSG_TYPES MAX_OPCODE_TABLE_SIZE
#endif
#endif
#if defined ELUNA_VMANGOS
#define CORE_NAME "vMaNGOS"
#define CORE_VERSION REVISION_HASH
#define DEFAULT_LOCALE LOCALE_enUS
#endif
#if defined ELUNA_MANGOS
#define CORE_NAME "MaNGOS"
#define CORE_VERSION PROJECT_REVISION_NR
#endif
#if defined ELUNA_TRINITY
#define CORE_NAME "TrinityCore"
#define REGEN_TIME_FULL
#endif
#if defined ELUNA_TRINITY
#define CORE_VERSION (GitRevision::GetFullVersion())
#define eWorld (sWorld)
#define eMapMgr (sMapMgr)
#define eGuildMgr (sGuildMgr)
#define eObjectMgr (sObjectMgr)
#define eAccountMgr (sAccountMgr)
#define eAuctionMgr (sAuctionMgr)
#define eGameEventMgr (sGameEventMgr)
#define eObjectAccessor() ObjectAccessor::
#else
#define eWorld (&sWorld)
#define eMapMgr (&sMapMgr)
#define eConfigMgr (&sConfig)
#define eGuildMgr (&sGuildMgr)
#define eObjectMgr (&sObjectMgr)
#define eAccountMgr (&sAccountMgr)
#define eAuctionMgr (&sAuctionMgr)
#define eGameEventMgr (&sGameEventMgr)
#define eObjectAccessor() sObjectAccessor.
#define SERVER_MSG_STRING SERVER_MSG_CUSTOM
#define TOTAL_LOCALES MAX_LOCALE
#define TARGETICONCOUNT TARGET_ICON_COUNT
#define MAX_TALENT_SPECS MAX_TALENT_SPEC_COUNT
#if !defined ELUNA_VMANGOS
#define TEAM_NEUTRAL TEAM_INDEX_NEUTRAL
#endif
#if defined ELUNA_VMANGOS
#define PLAYER_FIELD_LIFETIME_HONORABLE_KILLS PLAYER_FIELD_LIFETIME_HONORBALE_KILLS
#endif
#if ELUNA_EXPANSION == EXP_TBC
#define SPELL_AURA_MOD_KILL_XP_PCT SPELL_AURA_MOD_XP_PCT
#endif
#if !defined ELUNA_MANGOS
#if ELUNA_EXPANSION >= EXP_WOTLK
#define UNIT_BYTE2_FLAG_SANCTUARY UNIT_BYTE2_FLAG_SUPPORTABLE
#endif
#endif
#if !defined ELUNA_CMANGOS
typedef TemporarySummon TempSummon;
#else
typedef TemporarySpawn TempSummon;
#endif
typedef SpellEntry SpellInfo;
#endif // ELUNA_TRINITY
#endif // _ELUNA_INCLUDES_H