aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Pools
AgeCommit message (Collapse)Author
2025-06-10Core/Misc: Kill copy/move constructors for singleton classesShauren
2024-12-31Core/Misc: Include cleanup - remove MapUtils.h from Containers.hShauren
2023-10-31Core/Random: Changed random functions returning doubles to return floatsShauren
* They were all cast to float at use anyway * Improves roll_chance_f performance (rand32() is now called internally by uniform_real_distribution once instead of twice)
2023-02-05Core/Pools: Allow all gameobject types to be pool members (#28754)Jeremy
2023-01-08Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard ↵Shauren
compatible api)
2022-06-11Core/Pools: Implemented pooling for instancesShauren
2022-03-11Core/Pools: Fix pools with 1 member never spawning anything anymore (#26620)Giacomo Pozzoni
* Core/Pools: Fix pools with 1 member never spawning anything anymore Attempts to fix a 6 years old bug and never fixed by the original author. * Remove respawn times from db once a respawn has been handled * Allow to specify if Despawn1Object() should save or not the respawn time. We don't need to do that when respawning an object. * Apply the same fix to GameObjects too (cherry picked from commit c8ca48823d45dadb042a80637eff954483dd5328)
2022-03-11Core/Misc: Fix issues reported by static analysisjackpoz
(cherry picked from commit 33dace231c5a169375523ffa89a2cc3fa48737bd)
2022-03-05Core: whitespace cleanup, reduce double blank line to single (#25795)Kargatum
* Core/Misc: fix double empty line * worldserver.conf (cherry picked from commit a32b6b8ac4c81128a56b282f20837fb085bdd9e7)
2022-03-05Core/Maps: move pooling hand-off outside of Map::CheckRespawn (PR#25785)Treeston
fixes #25777 (cherry picked from commit f8afcec9f3efc58ce8a38a6c63e2ebfc24d2e01d)
2022-02-12Core/Misc: Move (or delete) constructors and destructors to .cpp files ↵Shauren
(avoids compiling them in every file that includes them)
2022-01-21Core/Pools: Attempt to workaround pools being broken since 2015 (#24949)Giacomo Pozzoni
* Core/Pools: Attempt to workaround pools being broken since 2015 Attempt n°2 * Fix warning (cherry picked from commit 8c0a315734840f99455026ef443a21ae73d7bc3b)
2022-01-19Core/Common: Replace ASSERT(false, "...") with ABORT_MSG("...")jackpoz
(cherry picked from commit 54c701cf0db81c0062e8c5020e07db18984d0ffa)
2022-01-01Core/Pools: Fix crash on startupjackpoz
(cherry picked from commit 9cde3ffd1404e784406f385061f4df0f6b429b61)
2022-01-01Core/Pooling: Remove respawn times from the database when despawning a pool ↵Giacomo Pozzoni
(#24422) * Core/Pooling: Remove respawn times from the database when despawning a pool Remove respawn times from the database when despawning a pool. This is needed when a Game Event ends but there are still some respawn times saved in the database. * Remove respawn time of active pool objects even if they are not spawned (cherry picked from commit 4f33fd3932d362466ee017111895bf14fcc79c88)
2021-12-28Core/Phasing: Implemented db spawns in personal phases (#26345)Matan Shukry
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-12-21Core/Misc: Some refactoring, #23603 prep: (#23676)Treeston
- Split SpawnMetadata off from SpawnData - No longer allocate Creature/Gameobject objects in ObjectGridLoader just to check their typeid and delete them afterwards Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit 9304e496cbf6ab6c028671fb8526c732ae5d799f)
2021-12-18Core/Pooling: Quest pooling rewrite: (PR#23627)Treeston
- Split quest pooling from PoolMgr (into QuestPoolMgr) - Proper saving/restoring on server restart - No more hacking into sObjectMgr to insert/remove available quests (cherry picked from commit a5e73e41c0e813e674bb0a644e0052052435494e)
2021-12-16Core/DB: Merge pool_creature, pool_gameobject and pool_pool into a single ↵Treeston
pool_members table. (More pooling prep, I really don't want to have any sql update files in that PR if I can help it.) (cherry picked from commit 45bc91c238d04f2e2544622ff29faaf46713d15c)
2021-12-16Core/Spawns: Exterminate CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY with extreme ↵Treeston
prejudice. (It didn't work anyway.) (cherry picked from commit 26440857c1a74031ea0a0234ca0b0fcb09b6bcb0)
2021-12-14Core/Misc: More coding standards (#23519)Aokromes
* Core/Misc: More coding standards * revert part * "void " or more to "void " * fix? reject * remove more double whitespaces * remove more double whitespaces * more standards * more coding standards * More standards * more coding * more coding standards * more coding standards * And more standards (cherry picked from commit 574a7c8d3d5f5a5660295deb70e905cf4dd756c4)
2021-10-01Core/Misc: Fix appleclang 12 warningsShauren
2021-05-29Core/Pools: Fixed spawning in pools with both explicitly and equally chanced ↵lachtanek
entries (#21170) (cherry picked from commit c50aefac963aca5daeacf409deca9692c6ca3924)
2021-02-15Core/Pooling: Fixed less and less objects from pools being spawned the ↵lachtanek
longer the server is running (#20949) Closes #11141 (cherry picked from commit de80cd2e0de470522a734e8e7a65e81b82bfc5fb)
2020-09-04Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup ↵Shauren
port
2020-08-22Dynamic Creature/Go spawning:r00ty-tc
- True blizzlike creature spawn/respawn behavior - new creature = new object - Toggleable spawn groups (with C++/SAI/command options to use them) - Custom feature: dynamic spawn rate scaling. Accelerates respawn rate based on players in the zone. - Backward compatibility mode (set via group and for summons) to support creatures/gos that currently don't work well with this (this should be removed once the exceptions are fixed) Fixes and closes #2858 Tags #8661 as fixable. Fixes and closes #13787 Fixes #15222. (cherry picked from commit 59db2eeea0a35028779fd76372ae06cc98c8086f)
2020-08-14Core/Misc: Replace NULL with nullptrShauren
2020-07-18Core/Maps: Use FindMap instead of CreateBaseMap in places where the intent ↵Shauren
was to check for a existing map (and a loaded grid on that map)
2020-01-02New YearAokromes
2019-07-27Core/DBLayer: Prevent committing transactions started on a different databaseShauren
2019-07-27Core/DBLayer: Prevent using prepared statements on wrong databaseShauren
2019-01-01Update copyright note for 2019vincent-michael
auto happy = new year(2019);
2018-01-27Core/Entities: Created factory methods to create new areatriggers, creatures ↵joschiwald
and gameobjects
2018-01-01Update copyright note for 2018vincent-michael
auto happy = new year(2018);
2017-12-30Nopch build fixShauren
2017-12-30Core/Pools: fix pool memory usage (#21138)Rochet2
Change vector to unordered map to save memory and startup time
2017-09-02Core: Fix Winstantiation-after-specialization warningsShauren
Closes #20211
2017-06-04Core/Game: Include cleanup part 5Shauren
* ObjectMgr.h * Player.h * Unit.h * G3D should no longer propagate everywhere from Spline/MotionMaster
2017-05-18Core/Game: Include cleanupShauren
* Mostly aimed at removing Log/DatabaseEnv includes from other headers * Fix most packet headers including other packet headers - moved common structures such as ItemInstance to their own files * Moved SAI function definitions to source files (massive or requiring many different dependencies)
2017-05-10Core/Misc: Fix some false startup errorsAokromes
2017-01-01Update copyright note for 2017vincent-michael
Happy new year
2016-03-24Core/Game: Converted the game library to a shared library.Naios
* There is still the possibility to static link against game.
2016-03-11Core/Game: Move singleton instances into compilation unitsNaios
* Fixes issues when building shared libraries (prevents gcc and clang from providing several instance)
2016-01-01Update copyright note for 2016Vincent-Michael
Happy new year (Again new year with idiots ...)
2015-05-14Core/Maps: Fixed invalid iterator usageShauren
Closes #14687
2015-04-28Core/Entities: Reworked guid scopesShauren
* Added ObjectGuid traits to easily access whether guid type can be generated globally (ObjectMgr) or not * This adds separate (per map) guid sequences depending on object type * Ported map object container from cmangos/mangos-wotlk@a2d396eb0bb195efc460944dd4e0fab2a858b300 * Added type container visitor for TypeUnorderedMapContainer * Implemented helper function to erase unique pairs from multimap containers * Moved object storage of all objects except players and transports to map level * Added containers linking database spawn id with creature/gameobject in world * Renamed DBTableGuid to spawnId * Added a separate spawn id sequence generator for creatures and gameobjects - this will be used in db tables * Moved building SMSG_UPDATE_OBJECT - updatefields changes broadcast to map update
2015-02-08Core/Misc: Fix static analysis issuesjackpoz
Fix some static analysis issues reported by Coverity. Rename SpellMgr::EnsureSpellInfo() to SpellMgr::AssertSpellInfo() to be consistent with other similar methods.
2015-01-01Update copyright note for 2015Vincent-Michael
Happy new year
2014-10-29Core/Entites: Updated GUID formatShauren
2014-10-27Core: Even more warning fixesDDuarte