Takenbacon
edcfaeb845
refactor(Core/World): Create WorldSessionMgr to split session logic out of World ( #21400 )
2025-02-13 07:04:38 +01:00
Takenbacon
4d349e87b5
feat(Core/AuctionHouse): Rework auctionhouse search threading ( #20830 )
2024-12-18 15:50:26 +01:00
Grimdhex
9874a47de5
refactor(Core): fix few static analysis ( #20566 )
...
* refactor(Core): fix few static analysis
* fix builds
* revert FacingInfo change and fix GraveYard ID use in a log
2024-11-24 17:02:32 -03:00
Francesco Borzì
a9f0f371e5
refactor(src/server/game): optimise imports ( #20541 )
2024-11-13 11:37:20 +01:00
Francesco Borzì
2c344fc127
refactor(src/server/game/*): remove unused imports (big part 2) ( #20311 )
2024-10-27 05:06:14 +01:00
Kitzunu
87f4adf634
refactor(Core/Chat): Move SendWorldText(optional) to ChatHandler and … ( #19501 )
...
* refactor(Core/Chat): Move SendWorldText(optional) to ChatHandler and allow `fmt`
* Update src/server/game/Battlegrounds/BattlegroundQueue.cpp
* Update src/server/game/Battlegrounds/BattlegroundQueue.cpp
* Update src/server/game/Misc/BanMgr.cpp
* Update src/server/game/Misc/BanMgr.cpp
* Update src/server/game/Misc/BanMgr.cpp
* Update src/server/game/Misc/BanMgr.cpp
* Update src/server/game/Misc/BanMgr.cpp
* Update src/server/game/Misc/BanMgr.cpp
* Update src/server/game/Misc/BanMgr.cpp
* Update src/server/game/Misc/BanMgr.cpp
2024-07-29 14:44:13 -03:00
Nathan Handley
df33a57b78
feat(Core/Unit): New helper IsClass and script hook OnPlayerIsClass ( #18243 )
...
* Class Comparison Logic Encapsulation - Parity
* Add Context to IsClass
* Add Unit IsClass script hook
* Replace additional getClass with IsClass
* Update CanUseItem to replace getClass with IsClass
* Add separate context for pet vs ability
* Change Create to Init since not all referenced contexts are creation
* Align spacing in ClassContext
* Drop context on LFGManager max power
* Update IsClass context that wraps around Missle Barrage
* Rename context for swapping weapons
* Be more specific than CLASS_CONTEXT_TALENT
* Remove duplicate context
* Moved IsClass Hook to Player
* Removed unused parameter in virtual base function
* Added maybe_unused to IsClass virtual in order to compile
To match the override signature, the virtual base needs to include the parameter in question, so using [maybe_unused] to signal to the compiler to allow it
* Remove extra blank line
* Add ABILITY_REACTIVE context
* Add context for PET_CHARM
* Remove explicit nullopt check per review
* Code Readability - Change if to if else in pet
Due to the return pattern, this doesn't change functionality in any way
* Add OnPlayer to disambiguate
---------
Co-authored-by: NathanHandley <nathanhandley@protonmail.com >
2024-02-10 12:25:00 -03:00
Kitzunu
bbadc32bea
Revert Visibility Notifier changes ( #17682 )
...
* Revert "fix(Core/Grid): Implement missing GridUnload setting (#17569 )"
This reverts commit 79b39f9655 .
* Revert "fix(Core/Grid): Address bugs and performance issues introduced by visibility notifier implementation (#17480 )"
This reverts commit 60e27511c5 .
* Revert "fix(Core): GridCleanUpDelay Log (#17436 )"
This reverts commit 90b16ca065 .
* Revert "feat(Core/Grids): Implement visibility notifier (#15919 )"
This reverts commit 2779833768 .
2023-11-12 00:48:49 +01:00
AG
60e27511c5
fix(Core/Grid): Address bugs and performance issues introduced by visibility notifier implementation ( #17480 )
...
* Bug fixes
- Corrected std::chrono from seconds to milliseconds
- Got rid of leftover code that caused objects to not show up on time
* Removed logic to set gameobject as active
- More alignement with TC.
- Reduces CPU usage drastically
* Revert back to using time_t instead of std chrono
* Invoke SetNoCreate() method to reduce CPU usage drastically
* Remove setActive from static and motion transports
* Fix performance issues
* Added SetFarVisible to WG and some dungeon scripts
- Also removed setActive(true) from creatures in Wintergrasp. As for gameobjects they are set to active upon being damaged/destroyed and removed from active on rebuild (reset)
* Removed comments related to VISIBILITY_COMPENSATION
* Fix log
* Deleted unused files + corrected a check
* Added missing header
* Removed unused parameter
* Removed another unsued parameter
* Changed vector to set for i_visibleNow
- Changed vector to set for i_visibleNow in VisibleNotifer
- Adjusted HaveAtClient to accept Object*
- Adjusted SendUpdateToPlayer to send createobject packet only if not known to client
2023-10-23 05:37:11 -03:00
Mickaël Mauger
6edcf05cc2
fix(Core/AuctionHouse): Fix AH searches with high number of auctions ( #13467 )
...
Fix AH searches with high number of auctions
2023-06-27 20:11:21 +02:00
M'Dic
967f8ce6d6
update (core): Startup console capitalizations ( #13195 )
2022-10-01 13:09:34 -04:00
ZhengPeiRu21
80e6a6d781
feat(Core): OnBeforeChooseGraveyard Hook ( #12860 )
2022-09-06 15:47:37 -03:00
Kitzunu
1501445b0a
chore(Core/Misc): nullptr cleanup ( #11467 )
2022-04-21 19:17:20 +02:00
Bogir[rus]
75439773d0
fix and bringing to a unified style warnings of server loading logs to be more visible at server startup ( #10970 )
2022-03-12 04:57:26 -03:00
Kargatum
de13bf426e
feat(Core/DBLayer): replace char const* to std::string_view ( #10211 )
...
* feat(Core/DBLayer): replace `char const*` to `std::string_view`
* CString
* 1
* chore(Core/Misc): code cleanup
* cl
* db fix
* fmt style sql
* to fmt
* py
* del old
* 1
* 2
* 3
* 1
* 1
2022-02-05 00:37:11 +01:00
Kargatum
5969df4e30
refactor(Core/Logging): switch to fmt style for LOG_ ( #10366 )
...
* feat(Core/Common): add support fmt style for ASSERT and ABORT
* correct CheckCompactArrayMaskOverflow
* 1
* Update src/server/game/Spells/Spell.cpp
* rework logging
* add fmt replace logs
* logging
* FMT_LOG_
* settings
* fix startup
* 1
* 2
* 3
* 4
* 5
* fmt::print
* to fmt
2022-01-27 16:44:41 +01:00
Kargatum
8b7df23f06
feat(Core/Time): Implement saparated manager for game time ( #8630 )
2022-01-24 17:55:00 +07:00
Kargatum
455372bda4
feat(Core/SavingSystem): remove old player saving system ( #9779 )
2021-12-24 08:37:45 -03:00
Francesco Borzì
cbc7e5466a
refactor(Core): remove unused imports ( #9767 )
2021-12-19 19:41:14 +01:00
Kargatum
f62664c987
refactor(Core/Misc): headers cleanup ( #9259 )
2021-11-22 17:24:39 +07:00
Skjalf
731d256420
refactor(Core/Cache): move the GlobalPlayerCache to its own class ( #9166 )
2021-11-18 16:53:36 +01:00
UltraNix
3895487dc2
fix(Core/AuctionHouse): Implemented sorting. Based on @r00ty-tc work. ( #9011 )
...
Fixes #8728
2021-11-16 13:32:12 -03:00
Kargatum
c0728f6e2d
feat(Core/Packets): rework HandleWhoOpcode ( #8863 )
2021-11-07 09:51:36 +01:00
Malcrom
f106de8788
refactor(Core): update getFaction to GetFaction and setFaction to SetFaction ( #8708 )
2021-11-01 17:04:32 +01:00
Skjalf
747a2a4f0e
fix(Core/Graveyards): rework the graveyard selection logic to allow l… ( #8022 )
2021-10-13 20:07:19 +02:00
Skjalf
29c94e5455
fix(Core/Graveyard): prevent non-death knights from getting ported to… ( #8206 )
2021-10-07 13:07:23 +02:00
Kargatum
52aa0e9966
feat(License): add new headers information about license ( #7941 )
...
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com >
2021-09-30 13:40:52 +07:00
Kitzunu
2f449326e0
refactor(Core): Rename ...Manager to ...Mgr ( #6910 )
...
* Rename MapManager.h to MapMgr.h
* Rename BanManager.h to BanMgr.h
* Rename MapManager.cpp to MapMgr.cpp
* Rename BanManager.cpp to BanMgr.cpp
* Rename MapRefManager.h to MapRefMgr.h
* Rename ThreatManager.h to ThreatMgr.h
* Rename GridRefManager.h to GridRefMgr.h
* Rename ThreatManager.cpp to ThreatMgr.cpp
* Rename GroupRefManager.h to GroupRefMgr.h
* Rename HostileRefManager.h to HostileRefMgr.h
* Rename HostileRefManager.cpp to HostileRefMgr.cpp
* Rename MMapManager.h to MMapMgr.h
* Rename FollowerRefManager.h to FollowerRefMgr.h
* Rename VMapManager2.h to VMapMgr2.h
* Rename IVMapManager.h to IVMapMgr.h
* Rename MMapManager.cpp to MMapMgr.cpp
* Rename VMapManager2.cpp to VMapMgr2.cpp
* Rename RefManager.h to RefMgr.h
* Rename WaypointManager.h to WaypointMgr.h
* Rename WaypointManager.cpp to WaypointMgr.cpp
* Rename MPQManager.h to MPQMgr.h
* Rename MPQManager.cpp to MPQMgr.cpp
* Rename IMMAPManager.h to IMMAPMgr.h
* fix build
* Update Main.cpp
* chore(Core/Misc): Remove toxic language
* Revert "chore(Core/Misc): Remove toxic language"
* fix build
* build
2021-09-15 17:50:28 +02:00
UltraNix
a8c0a2cc89
fix(Core/Movement): ( #7008 )
...
- Get zone/area IDs from vmap data in the liquid update
- Add new method Map::getFullVMapDataForPosition to get area info and liquid info in a single vmap lookup
- Adjust GetZoneId/GetAreaId on WorldObject to always return these cached fields.
- Clean up liquid state handling on Unit and Player
- Implemented getting area id from gameobject spawns.
- Removed old core related to getting movement flags dependent on environment.
- Movement flags are now processed more precisely and dynamically.
Original source: TrinityCore.
- Closes #5086
- Updates #2208 .
2021-08-25 12:41:20 +02:00
Kargatum
9ac6fddcae
feat(Core/Database): port TrinityCore database API ( #5611 )
2021-06-22 06:21:07 +02:00
Kargatum
5787d00d54
chore(Core/Logging): replace most server loggers ( #5726 )
...
* chore(Core/Logging): replace most server loggers
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
2021-06-21 03:07:12 +02:00
Francesco Borzì
466cdb68d6
refactor(Core): code cleanup (part 2) ( #6374 )
2021-06-16 20:40:42 +02:00
Kargatum
78e1719c80
feat(Core/Misc): includes cleanup ( #5953 )
2021-05-26 19:00:08 +07:00
UltraNix
f4c226423d
feat(Core/Misc): implement ObjectGuid class (port from TC) ( #4885 )
2021-04-25 22:18:03 +02:00
Kargatum
4af4cbd3d9
feat(Core/Logging): rework logging ( #4692 )
...
* feat(Core/Logging): rework logging
* correct level for sql.sql
* del unused config options
* Correct build
* correct after merge
* whitespace
20:29:37 1. 'Player.cpp'. Replace (1)
20:29:37 2. 'ObjectMgr.cpp'. Replace (3)
* 1
* correct logging
* correct affter merge
* 1
* 2
* LOG_LEVEL_WARN
* #include "AppenderDB.h"
* 3
* 4
* 5
* 1. 'WorldSocket.cpp'. Replace (1)
* 6
* 1
2021-04-17 11:20:07 +02:00
Kargatum
b2861be1cd
feat(Core/Threading): replace ace threading ( #4821 )
2021-04-16 19:45:29 +02:00
Kitzunu
28f1dc5c0c
refactor(Core): replace NULL with nullptr ( #4593 )
2021-03-02 01:34:20 +01:00
Kitzunu
dbc0ff6554
refactor(Core): sort #includes alphabetically ( #4579 )
2021-02-24 22:34:42 +01:00
Kitzunu
da4edd547d
chore(core): remove malformed whitespaces ( #4244 )
...
* from https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk/issues?category=Style&groupId=838&lang=5&page=75
2021-01-10 14:27:55 +01:00
Francesco Borzì
1b156ef7eb
chore(Core): forgot to add copyright in new files + small correction ( #3861 )
2020-12-07 21:05:13 -06:00
Francesco Borzì
d4a58700d4
refactor(Core): apply clang-tidy modernize-use-override ( #3817 )
2020-12-06 18:04:55 +01:00
Kargatum
a2b26272d2
refactor(Core/Game): restyle game lib with astyle ( #3466 )
2020-10-12 10:08:15 +02:00
Kitzunu
1f89282b22
refactor(Core): NULL -> nullptr ( #3275 )
...
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com >
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com >
2020-08-31 11:55:09 +02:00
Kargatum
833611f1c5
feat(Core/DBC): rework load DBC ( #3002 )
...
* Move DBC load system from TC
* Add db tables for all dbc
* Support override data from db
* Support override spells from db (#2994 )
2020-07-22 08:43:16 +02:00
Stefano Borzì
9e307455a8
refactor(HandleAuctionListOwnerItems): prevent crash ( #2684 )
2020-02-24 08:40:02 +01:00
Kargatum
4a8f1de538
feat(Core/Misc): remove and replace ACE_Singleton ( #2418 )
2019-12-21 00:29:29 +07:00
Viste
e22d78ecd6
refactor(Core): rename namespaces and macros to acore ( #2454 )
2019-12-01 13:13:31 +01:00
Kargatum
824a80005c
Refactor(Core/Misc): Remove remaining COMPILER_HAS_CPP11_SUPPORT related macros ( #1627 )
...
* Delete macros UNORDERED_MAP
* Delete macros UNORDERED_SET
2019-03-26 00:01:56 +07:00
Kargatum
1f4f318705
Rewrite(Core/BanManager): Rewrite Ban system ( #1576 )
...
* Added ban manager
* Delete ban functions in world class
* Separate ban account to (ban account, ban ip, ban character)
* Support world announce
2019-03-25 10:00:17 +07:00
WiZZy
69792b21c0
refactor(DB/world): graveyard_zone ( #1599 )
2019-03-23 00:01:43 +03:00