aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities
AgeCommit message (Collapse)Author
2019-01-01Update copyright note for 2019vincent-michael
auto happy = new year(2019);
2018-12-09Merge branch 'bfa'Shauren
2018-12-09Core/Util: avoid one useless copy when adding stuff into a HookListariel-
(cherry-picked from 077b5aec9ede78034ba2ec4838b72e8121dab7ce)
2018-11-07Core/Utils: Avoid unneccessary container copyShauren
2018-03-25Core/Entities: Phasing rewriteShauren
* Optimized phase visibility checking * Handle all phase flags Closes #16758 Closes #21119
2018-01-06Core/Misc: Added compatibility layer for boost 1.66 and future std:: ↵Shauren
networking stuff * Based on work done by @dimiandre in PR #21173 Closes #21171 Closes #21173
2018-01-01Update copyright note for 2018vincent-michael
auto happy = new year(2018);
2017-12-20Core/Utilities: Globally enable C++14 chrono literalsNaios
* Usable like 12s, 15m... (cherry picked from commit 364fde52138c88a85f7ba5f1ea374b4196a893d4)
2017-11-25Misc: More cleanupAokromes
2017-10-16Dep/fmt: Update fmt to fmtlib/fmt@5f39721c0a4Naios
* Rename cppformat to fmt in the PackageList.txt (cherry picked from commit 5077c8289cd52108bf9aeb8fb6ab2742ae3e0b95)
2017-07-23Core/Misc: Util changesShauren
* Move IteratorPair to its own header * Add AsUnderlyingType function to cast enum value to its underlying type (avoids repeating std::underlying_type everywhere)
2017-07-18Core/Spells: Implemented ConeAngle from DB2joschiwald
2017-06-07Core/Misc: Some /W4 warning fixesShauren
2017-06-05Core/Utils: restored previous behaviour of RandomResizeariel-
(cherry picked from commit 8188511759c6613d33111ab59f4af3c441d01c8b)
2017-05-13Fix non-PCH build.Marco Ebert
Your ad here.
2017-05-13Core/Shared: Include cleanupShauren
2017-05-11Core/Common: Include cleanupShauren
2017-03-23Core/Utilities: Rename RandomResizeList->RandomResize as it is no longer ↵Shauren
restricted to a list * Also fix gcc build
2017-03-21Core/Utils: Changed all Trinity::Containers utilities to work on all ↵Shauren
container types (including arrays where it makes sense) * Added MapGetValuePtr to allow writing `if (Val* v = MapGetValuePtr(map, key))` * Added utility IteratorPair class with begin/end methods and MapEqualRange for use in range for syntax with multimaps
2017-03-04Core/Misc: Prefix all preprocessor defines from CompilerDefs with TRINITY_ ↵Shauren
to avoid conflicts (PLATFORM_WINDOWS is used/defined by CascLib)
2017-02-26Common/Utilities: More std::chrono overloads for EventMap. Specifying 2 ↵treeston
std::chrono types now gives you a random (to milliseconds) time in that interval (inclusive) for (Re)ScheduleEvent. (cherry picked from commit 2174c5d7dd9669384b2e68b8b406a3173042d7d9)
2017-02-18Fixed build and typojoschiwald
2017-02-17Core/Misc: Added missing includejoschiwald
2017-02-17Scripts/Command: Fixed phases output in .pinfo commandjoschiwald
Closes #19144
2017-01-04Core/SpellScripts: Added some const correctnessjoschiwald
2017-01-01Update copyright note for 2017vincent-michael
Happy new year
2016-12-29Dep: Update fmt (cppformat) to 3.0.1 ↵DDuarte
https://github.com/fmtlib/fmt/commit/7fa8f8fa48b0903deab5bb42e6760477173ac485 Also renamed cppformat to fmt
2016-12-10Core/Misc: Added regex compatibility layer to fall back to boost::regex for ↵Shauren
really old compiler
2016-11-14Core/ScriptMgr: use vector instead of list to contain Spell and Aura scripts ↵ariel-
and hooks (cherry picked from commit cbb5c073ceb951fa138bb05b55de8b21ffd83063)
2016-10-22Build fixShauren
2016-09-01Core/Random: Remove no longer needed hack for VS 2013Shauren
2016-08-29Core/Define: Remove the conditional macro for constexpr.Naios
* Not needed anymore since the requirements were raised to MSVC 2015. (cherry picked from commit da3c03a48bdf0ef4add6aa1f718ca761afeaebbb)
2016-08-06Common/Utilities: Reduce differences between 3.3.5 and 6.x branchesjackpoz
Code functionality shouldn't have been modified.
2016-07-05Core/EventProcessor: Check whether an event was aborted before aborting it.Naios
* Fixes an assertion introduced in commit 1ad73212dca0cf. * Use itr = std::unordered_map<...>::erase for updating the iterator. (cherry picked from commit d9755c637c39e600f145f5ecb7ff0ccf3724b1ad)
2016-07-05Core/EventProcessor: Wait for non deletable events to get deletable.Naios
* Immediate deletion caused issues with the SpellEvent, so we delete it at one of the next update ticks now. * Only affects the unforced cancellation of events. * Ref #16675 (cherry picked from commit 1ad73212dca0cf8a829d15ffdbcc4cd611e64d4e)
2016-06-04Core/Utils: Added additional argument to Tokenizer class to make it behave ↵Shauren
like strtok - not returning empty tokens in case of multiple consecutive separators in input string
2016-05-24Core/Containers: Warning fixes and RandomResizeList with predicate optimizationShauren
(cherry picked from commit 0fbfa8ead04a59f3eef70f4f2e454e318d895bd9)
2016-05-10Core/Game: Remove some unnecessary export macrosNaios
(cherry picked from commit f50c4b71a137b90c2c5848c2ddef0139b05fa4a1)
2016-05-01Core/Utilities: Inherit env vars when starting external processesNaios
(cherry picked from commit 5b15b714abfa5d8a38f08046dae5a5348c08b5a1)
2016-04-26Core/Misc: Use steady_clock instead of system_clock for calculating ms ↵Shauren
timers. This makes update diffs immune to systemwide time changes
2016-04-24Core/Utils: replaced std::random_shuffle with our own implementation using ↵joschiwald
SFMT random generator (cherry picked from commit 9e371b766c75faf899cbbe24515b8b5c01716a50)
2016-04-23Core/Common: Fix a std::string -> char* -> std::string conversionNaios
* Thanks jackpoz for noticing (cherry picked from commit 2698d1ff48cd449e6d5350d8b306d345f83a5de9)
2016-04-11Core/Common: Capsule boost process into helper functionsNaios
* For easier usage, the processes output it routed correctly to the TC logger line by line now. * Add support for asynchronous process execution and process termination.
2016-04-10Core/Misc: Build fix for dynamic linkingShauren
2016-04-09Core/Misc: gcc 5.3 nopch build fixShauren
Closes #16878
2016-04-08Util/Random: Add randtime(Milliseconds const&, Milliseconds const&) to ↵treeston
supersede urandms(uint32,uint32) for scripts being ported to std::chrono. (cherry picked from commit 224b42c53a6ae212f2d1d550903e019ab8a741d6)
2016-04-05Core/Misc: MSVC warning fixesShauren
2016-04-02Core/Util: Add a missing includeCarbenium
(cherry picked from commit 1038df8d5b522e1e959528c3b7c17c01a88e7759)
2016-03-26Core/Common: Moved MessageBuffer to commonShauren
2016-03-24Core/Common: Converted the common library to a shared library.Naios
* There is still the possibility to static link against common.