264 Commits

Author SHA1 Message Date
Shauren
38886d5f01 Core/Misc: Hashing update
* Update hash_combine with latest version from boost
* Change most std::hash specializations to simply hash all of the input bytes instead of combining their hashes
2026-01-08 00:41:16 +01:00
Shauren
21ff7f2503 Core/Misc: Add missing includes 2025-11-15 11:42:30 +01:00
Shauren
e549e11aa8 Dep/fmt: Update to 12.0.0 2025-10-11 13:02:11 +02:00
Shauren
5de252ae84 Core/Misc: Move large functions out of header files 2025-07-13 13:40:31 +02:00
Shauren
b4f7948dfb Core/Database: Add Empty and CancelAll functions to AsyncCallbackProcessor and enable callback concept check 2025-07-09 20:14:21 +02:00
Shauren
2c74626e66 Core/Random: Use standard aligned operator new and remove RandomEngine singleton instance (it is trivially constructible) 2025-07-09 12:20:10 +02:00
Shauren
d62b412c92 Core/Misc: Remove StringFormat exception handling code from the header 2025-06-23 11:38:34 +02:00
Shauren
6502efbae8 Core/Misc: Remove extremely forgettable tiny utility function 2025-06-17 23:09:08 +02:00
Shauren
36332d2463 Core/Misc: Remove a bunch of code from headers 2025-06-13 16:36:03 +02:00
Shauren
1ae7cdd512 Core/Common: Update PCH content to include most commonly used headers 2025-06-11 16:35:31 +02:00
Shauren
ff6df050c5 Core/Misc: Remove boost/algorithm dependency 2025-06-08 14:37:54 +02:00
Shauren
2d984fcade Core/Misc: Add end iterator/sentinel to make char const* work with std::ranges algorithms 2025-06-02 18:29:47 +02:00
Shauren
d2d0995097 Core/Misc: Move fmt::formatter forward declaration to a common header to reduce number of replacements needed when upgrading fmt to new major version 2025-06-02 13:12:52 +02:00
Shauren
85e621f01a Core/PacketIO: Remove ByteBuffer constructor from MessageBuffer 2025-05-23 14:41:39 +02:00
Shauren
9d86423d8c Core/Utils: Added nullptr_t assignment operator to unique_weak_ptr (alias for .reset()) 2025-04-26 11:32:28 +02:00
Shauren
7eaa695581 Core/Conditions: Added conditions for automatic learning spells with SkillLineAbility::AcquireMethod = 4 2025-04-19 17:50:49 +02:00
Shauren
1b353abbf7 Dep/Boost: Support boost 1.88 2025-04-13 17:54:47 +02:00
Shauren
70a5bb451c Core/Misc: Port C++23 std::forward_like 2025-04-10 16:14:34 +02:00
Shauren
71b681bbf0 Core/Network: Move to separate project 2025-04-09 21:02:31 +02:00
Shauren
e8b2be3527 Core/Network: Socket refactors
* Devirtualize calls to Read and Update by marking concrete implementations as final
* Removed derived class template argument
* Specialize boost::asio::basic_stream_socket for boost::asio::io_context instead of type-erased any_io_executor
* Make socket initialization easier composable (before entering Read loop)
* Remove use of deprecated boost::asio::null_buffers and boost::beast::ssl_stream
2025-04-08 19:15:16 +02:00
Shauren
b267129ae0 Core/Misc: Simplify Trinity::invocable_r concept 2025-04-02 22:22:03 +02:00
Shauren
67418a1aee Core/Utils: Added map key/value utility projections for std::ranges algorithms 2025-02-23 11:33:53 +01:00
Shauren
476b8951e1 Core/Utils: Allow using Trinity::IteratorPair with SelectRandomContainerElement 2025-01-21 12:58:43 +01:00
Shauren
cb4013efe6 Core/Misc: Added float chrono typedefs 2025-01-19 18:29:38 +01:00
Shauren
a43beb3e06 Core/Misc: Remove return type std::enable_if based SFINAE 2025-01-17 18:38:46 +01:00
Shauren
039acb20e4 Core/Network: Simplify worldserver port configuration: removed InstanceServerPort 2025-01-07 13:41:09 +01:00
Shauren
d778d5ec7c Core/Misc: Include cleanup - remove MapUtils.h from Containers.h 2024-12-31 18:12:36 +01:00
Shauren
380dac62fd Core/Misc: Add concepts restrictions on container utilities for better compiler error messages 2024-12-31 13:35:35 +01:00
Shauren
bd6b0d63d9 Fix codestyle 2024-12-16 12:04:14 +01:00
Shauren
b74d463e83 Fix build 2024-12-16 12:00:35 +01:00
Shauren
ed666e4e8c Core/Misc: Fixed build with c++23 enabled
Closes #30511
2024-12-16 11:56:03 +01:00
Shauren
bb583baef6 Core/Utils: Mark Trinity::HashFnv1a as constexpr 2024-12-15 15:57:55 +01:00
Shauren
f06387b5eb Fix nopch build 2024-12-01 19:48:49 +01:00
Shauren
3e2abd2535 Core/Misc: Port std::ranges::contains from c++23 2024-12-01 19:05:26 +01:00
Shauren
898a941b10 Adjust previous commit to compile with clang on systems that have gcc 12 installed 2024-11-27 13:55:47 +01:00
Shauren
2a6fd947de Core/Misc: Modernize and improve GetMainPartOfName 2024-11-26 20:14:35 +01:00
Stephan T. Lavavej
96956b0e5b Core/Misc: Remove non-portable hack of including <__msvc_chrono.hpp> - will break in future MSVC release (#30460) 2024-11-23 01:56:07 +01:00
Shauren
1a41281e37 Core/Misc: Replace std::ostringstream based formatting with Trinity::StringFormat where possible in common and database projects 2024-10-16 18:58:45 +02:00
Meji
086632d871 Core/Chat: Improve ingame language translation (#30298) 2024-10-05 11:11:13 +02:00
Shauren
b13b5142f1 Core/Utilities: Extend make_unique_ptr_with_deleter functionality to allow it to create deleters with compile time constant functions (reduces its size to just sizeof(void*)) 2024-10-01 21:03:44 +02:00
Shauren
fff12eafdf Core/Common: Catch and log child process creation errors 2024-09-23 14:17:33 +02:00
Shauren
f270686201 Core/Common: Output stdout/stderr from child process without waiting for it to finish 2024-09-14 14:45:40 +02:00
Shauren
dbe8d1f11e Core: Remove boost iostreams dependency 2024-09-14 13:50:56 +02:00
Shauren
81bec6954f Core/Logging: Minor internal refactor
* Avoid formatting to output with fprintf
* Use vector instead of unordered_map to store appenders in Logger
2024-07-16 16:31:40 +02:00
Shauren
054dd3596f Core/Utils: Transform char toUpper/toLower functions into callable function objects to better integrate with std algorithms (not calling through a function pointer allows inlining) 2024-07-14 13:12:10 +02:00
Shauren
83f4763b25 Core/Misc: Minor change to make_unique_ptr_with_deleter to make it accept only pointers 2024-05-07 12:26:21 +02:00
Shauren
2aedd8ecdb Dep/fmt: Upgrade to 10.2.1 2024-05-03 19:38:57 +02:00
Shauren
39fc9f8000 Core/Misc: Minor fixes in preparation to support fmt v10 2024-05-02 19:46:18 +02:00
lee
5c4b1ace41 Build: Fix Linux aarch64 GCC build (#29831)
(cherry picked from commit 370685457e)
2024-03-27 10:50:42 +01:00
Shauren
f690b69338 Core/Utils: unique_trackable_ptr improvements
* Added comparison operators
* Added type casting helper functions
2024-03-13 17:04:26 +01:00