Skip to content

Commit

Permalink
More define cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Jul 24, 2024
1 parent 3e14e81 commit 5ab1c07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
13 changes: 5 additions & 8 deletions ElunaUtility.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@
#if !defined CMANGOS
#include "SharedDefines.h"
#include "ObjectGuid.h"
#else
#include "Globals/SharedDefines.h"
#include "Entities/ObjectGuid.h"
#endif

#include "Log.h"
#if defined TRINITY
#include "QueryResult.h"
#include "Log.h"
#elif defined VMANGOS
#else
#include "Database/QueryResult.h"
#include "Log.h"
#endif
#else
#include "Globals/SharedDefines.h"
#include "Entities/ObjectGuid.h"
#include "Database/QueryResult.h"
#include "Log/Log.h"
#endif
Expand Down
19 changes: 7 additions & 12 deletions LuaEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#include "SharedDefines.h"
#include "Weather.h"
#include "World.h"
#if defined VMANGOS
#include "Player.h"
#endif
#else
#include "Entities/Item.h"
#include "Globals/SharedDefines.h"
Expand All @@ -27,16 +30,8 @@
#include "Server/DBCEnums.h"
#include "Weather/Weather.h"
#include "World/World.h"
#endif

#if !defined TRINITY
#if !defined CMANGOS
#include "Player.h"
#else
#include "Entities/Player.h"
#endif
#endif


#include <mutex>
#include <memory>
Expand Down Expand Up @@ -88,7 +83,9 @@ typedef SpellEntry SpellInfo;
#if defined CMANGOS
class TemporarySpawn;
typedef TemporarySpawn TempSummon;
#else
#endif

#if defined VMANGOS
class TemporarySummon;
typedef TemporarySummon TempSummon;
#endif
Expand Down Expand Up @@ -546,11 +543,9 @@ class ELUNA_GAME_API Eluna
void OnCreate(Guild* guild, Player* leader, const std::string& name);
void OnDisband(Guild* guild);
void OnMemberWitdrawMoney(Guild* guild, Player* player, uint32& amount, bool isRepair);
#if EXPANSION >= CATA
void OnMemberWitdrawMoney(Guild* guild, Player* player, uint64& amount, bool isRepair);
#endif
void OnMemberDepositMoney(Guild* guild, Player* player, uint32& amount);
#if EXPANSION >= CATA
void OnMemberWitdrawMoney(Guild* guild, Player* player, uint64& amount, bool isRepair);
void OnMemberDepositMoney(Guild* guild, Player* player, uint64& amount);
#endif
void OnItemMove(Guild* guild, Player* player, Item* pItem, bool isSrcBank, uint8 srcContainer, uint8 srcSlotId, bool isDestBank, uint8 destContainer, uint8 destSlotId);
Expand Down

0 comments on commit 5ab1c07

Please sign in to comment.