Treeston
896b68d5c2
Core/Time: Rename GetGameTime{System, Steady}Point methods
...
The names are a bit unhandy. Rename them (shorter but still meaningful).
GetGameTimeSystemPoint() -> GetSystemTime()
GetGameTimeSteadyPoint() -> Now()
Also add 2 new typedefs:
typedef std::chrono::steady_clock::time_point TimePoint;
typedef std::chrono::system_clock::time_point SystemTimePoint;
Closes #25042
2020-07-17 17:05:55 +02:00
Shauren
c0ade2e98f
Nopch fix
2020-07-15 19:55:04 +02:00
Shauren
524d167398
Dep: Switch to boost process instead of old standalone version
2020-07-15 19:33:12 +02:00
Peter Keresztes Schmidt
202fd41389
Core/Misc: Replace boost::optional with std::optional ( #25047 )
...
C++17 is already mandatory, so it's a safe thing to do
2020-07-15 10:22:29 +02:00
Peter Keresztes Schmidt
ce1e2c0f9b
Core/Util: Remove EventMap's non-std::chrono::duration based interface ( #25049 )
...
Closes #25012
2020-07-15 10:05:11 +02:00
Giacomo Pozzoni
8c09b6e58b
Cherry-pick some cmake commits ( #24720 )
...
* Build system: Support new in cmake 3.17 Ninja Multi-Config generator
(cherry picked from commit 369b618d4f )
* Build system: Fixed PCH with MSVC & Ninja generator
(cherry picked from commit d669f46b6d )
* Core: Fix clang 10 warnings
(cherry picked from commit 7272508cb4 )
# Conflicts:
# src/common/Utilities/Util.h
# src/server/bnetserver/REST/LoginRESTService.cpp
# src/server/game/Entities/Object/Position.h
# src/server/game/Entities/Player/Player.cpp
# src/server/game/Guilds/GuildFinderMgr.h
# src/server/game/Movement/Spline/MoveSplineFlag.h
# src/server/shared/Dynamic/LinkedList.h
* Build system: Set -Wno-deprecated-copy only for clang 10
(cherry picked from commit 7fdeb259ba )
* Core/Misc: GCC build and warning fixes
(cherry picked from commit 4d69cc1c56 )
# Conflicts:
# src/common/Utilities/Util.cpp
# src/server/database/Database/MySQLConnection.cpp
# src/server/game/Battlefield/Zones/BattlefieldTB.cpp
# src/server/game/DataStores/M2Stores.cpp
# src/server/game/DungeonFinding/LFGMgr.cpp
# src/server/game/DungeonFinding/LFGPlayerData.cpp
# src/server/game/Entities/GameObject/GameObject.cpp
# src/server/game/Entities/Item/Item.cpp
# src/server/game/Entities/Object/Updates/UpdateFields.h
# src/server/game/Entities/Player/Player.cpp
# src/server/game/Entities/Player/RestMgr.cpp
# src/server/game/Entities/Unit/Unit.cpp
# src/server/game/Handlers/PetHandler.cpp
# src/server/game/Server/Packets/GuildPackets.h
# src/server/game/Spells/Auras/SpellAuraEffects.cpp
# src/server/game/Spells/Auras/SpellAuras.cpp
# src/server/game/Spells/Spell.cpp
# src/server/game/Spells/SpellInfo.cpp
# src/server/game/Spells/SpellMgr.cpp
# src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp
# src/server/scripts/Kalimdor/HallsOfOrigination/instance_halls_of_origination.cpp
# src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp
# src/server/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp
# src/server/scripts/Northrend/zone_sholazar_basin.cpp
# src/server/scripts/Outland/BlackTemple/instance_black_temple.cpp
# src/server/scripts/Outland/GruulsLair/instance_gruuls_lair.cpp
# src/server/scripts/Outland/HellfireCitadel/BloodFurnace/instance_blood_furnace.cpp
# src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/shattered_halls.cpp
# src/tools/vmap4_extractor/gameobject_extract.cpp
# src/tools/vmap4_extractor/model.cpp
# src/tools/vmap4_extractor/vec3d.h
* Build system: Print found git version when warning about it being too old
(cherry picked from commit 1ae72db201 )
* Build system: Removed hard requirement on BOOST_ROOT being set as environment variable, it can now be also passed as command line argument to cmake and fix compile warning with boost 1.73
(cherry picked from commit 161944b764 )
# Conflicts:
# dep/boost/CMakeLists.txt
* Remove some code that was already removed from 335 and then cherry-picked into master
Co-authored-by: Shauren <shauren.trinity@gmail.com >
2020-05-31 14:17:26 +02:00
Giacomo Pozzoni
141ada19b0
Cherry pick some db commits ( #24713 )
...
* Core/DBLayer: Implement async transaction completion callbacks
(cherry picked from commit 0f0ca3a919 )
# Conflicts:
# src/server/bnetserver/REST/LoginRESTService.cpp
# src/server/bnetserver/Server/Session.cpp
# src/server/bnetserver/Server/Session.h
# src/server/database/Database/Transaction.cpp
# src/server/game/Handlers/CharacterHandler.cpp
# src/server/game/Handlers/SpellHandler.cpp
# src/server/game/Server/WorldSession.cpp
# src/server/game/Server/WorldSocket.cpp
# src/server/game/Server/WorldSocket.h
* Core/Misc: Fixed char enum packet sometimes not showing newly created character when client latency is too low
(cherry picked from commit fc9d2e728e )
# Conflicts:
# src/server/game/Handlers/CharacterHandler.cpp
* Fix no-pch build
* Core/Player: Wait for correct transaction on character creation
(cherry picked from commit 01c68b2aa2 )
# Conflicts:
# src/server/game/Entities/Player/Player.cpp
* Fix warning
* Remove unused login transaction
Co-authored-by: Shauren <shauren.trinity@gmail.com >
2020-05-30 17:43:54 +02:00
Giacomo Pozzoni
90b00288c2
Core/SAI: Allow SMART_TARGET_ACTION_INVOKER to target GameObjects ( #24416 )
...
* Core/SAI: Allow SMART_TARGET_ACTION_INVOKER to target GameObjects
* Include new Coalesce(..) template by @Shauren
2020-04-09 11:59:10 +02:00
Treeston
ca0c50bc45
Core/Misc: C++17 cleanups, commit 3, the header commit
2020-03-19 18:20:55 +01:00
Treeston
857f8d9231
Core/Misc: C++17 cleanups, commit 2, the advstd commit
2020-03-19 17:18:01 +01:00
Shauren
f2f47f774f
Core/PacketIO: Add a validating string helper class for use in packet classes
2020-03-18 23:20:11 +01:00
daMaex
ce449f6b53
Core: build on aarch64 with gcc ( #24216 )
...
* build on aarch64 with gcc
* Core/aarch64: readability on preprocessor macro
* Core/aarch64: TC C++ codestyle adjustment
2020-03-01 20:16:57 +01:00
Ujp8LfXBJ6wCPR
fb75a958f0
Part1: Modernize codebase with Clang-Tidy range based loops ( #24164 )
2020-02-29 13:20:05 +01:00
ForesterDev
71a01c75ca
Core/Server: improve timestamp format output for large time values ( #24193 )
2020-02-28 19:24:33 +01:00
daMaex
cbe765df7a
Core: Build on ARM64 - Raspberry Pi (preferable 4) ( #23885 )
...
* build again on aarch64
* include mm_malloc header instead of defining self
2020-02-23 22:37:02 +01:00
ForesterDev
69231581e4
Core/Server: correct timestamp format for shutdown/restart notification broadcasts ( #24181 )
...
* Core/SmartScripts: implement SMART_ACTION_OVERRIDE_LIGHT and SMART_ACTION_OVERRIDE_WEATHER
* Core/Server: correct timestamp format for shutdown/restart notification broadcasts
* remove unexpected changes
* move enum from Common to Util
* Use enum class instead of enum
* Fix width for seconds 0 to 9
2020-02-22 21:31:37 +01:00
Aokromes
ed93932537
New year
...
Say bye bye to every year changing dates
2020-01-02 06:25:50 +01:00
Shauren
73bc3d8ea4
Core/Random: Refactor random number generation to use std::uniform_*_distribution to restrict result range instead of doing that ourselves
...
* Seed SFMTRand with more values for its state
2019-11-09 15:09:22 +01:00
daMaex
4e0279b0e4
Dep/SFMT: updated to newest upstream version from https://github.com/MersenneTwister-Lab/SFMT
...
* only needed files added
* used CMake and SFMTRand from https://github.com/TrinityCore/TrinityCore/pull/23240 (Thank you Artox)
2019-11-09 15:09:22 +01:00
Treeston
3750c1cad9
I actually changed compilers in godbolt this time. This does it. Really. ( 31b5632 7378bcb 0a40252)
2019-08-12 14:37:01 +02:00
Treeston
0a40252c29
i am so done with compilers for today , WHY IS STD::SWAP NOT A CONSTEXPR ASDFOWQWDO ( 31b5632 7378bcb follow-up grml)
2019-08-12 14:33:04 +02:00
Treeston
7378bcb418
ugh. compilers. 31b5632 follow-up.
2019-08-12 14:25:28 +02:00
Treeston
31b5632c00
Common/Utilities: Explicit tail recursion to keep the compilers happy.
2019-08-12 14:19:22 +02:00
Treeston
4211645834
[3.3.5] Core/Authserver: TOTP rewrite: (PR #23633 )
...
- Proper management commands (.account 2fa)
- Secrets can now be encrypted (set TOTPTokenSecret in .conf)
- Secret now stored in binary
- Argon2 and AES primitives
- Base32/64 support
2019-08-10 21:34:51 +02:00
Treeston
a4d5b24874
Common/Util: Sorry about that unexpected downtime at 3AM last night, everyone. (We call them happy little features.)
2019-08-05 11:23:57 +02:00
Treeston
a5e73e41c0
Core/Pooling: Quest pooling rewrite: (PR#23627)
...
- Split quest pooling from PoolMgr (into QuestPoolMgr)
- Proper saving/restoring on server restart
- No more hacking into sObjectMgr to insert/remove available quests
2019-08-04 12:22:57 +02:00
Treeston
309851ea24
Core/Misc: Rewrite some old name handling functions that use raw buffers to no longer be old name handling functions that use raw buffers.
2019-08-03 23:53:10 +02:00
Treeston
f1d9a36c5f
Core/Misc: Remove Trinity::Containers::Size (duplicate of advstd::size)
2019-07-29 16:38:28 +02:00
Treeston
163f44c1b0
Core/AI: No longer do strange things when told to enter evade mode while there's no need to do so, typically by terrible legacy code.
2019-07-29 00:14:10 +02:00
Sebastien Levy
7e10438b27
Core/Misc: MSVC build error ( #23637 )
...
- fixed a constness error leveraged by msvc 16.2
2019-07-25 17:00:03 +02:00
Giacomo Pozzoni
aeddd417c4
Core/Misc: Handle timezones for hour-specific events specifieds in worldserver.conf ( #23540 )
...
* Core/Misc: Handle timezones for hour-specific events specifieds in worldserver.conf
* Handle Respawn.RestartQuietTime too
* Handle XP.Boost.Daymask too
* Core/Misc: Code cleanup
* Core/Misc: Code cleanup
* Update Util.cpp
* Update boosted_xp.cpp
2019-07-19 21:24:56 +02:00
Treeston
c0f8e8535a
build fix after d1dc0e2
2019-07-19 20:37:22 +02:00
jackpoz
b33934f6ce
Core/Calendar: Improve calendar timezone handling
...
Improve calendar timezone handling by at least creating events with the correct time if both client and server are in the same timezone. There is currently no information received from the client about in which timezone it is.
2019-04-19 23:45:07 +02:00
Chaouki Dhib
975f1e364a
Core/Movement: Add time synchronisation ( #18189 )
2019-04-15 23:31:25 +02:00
jackpoz
1d04a3b216
Core/Misc: Fix GCC 8 warnings
2019-03-31 17:34:28 +02:00
Shauren
ab22619f46
Fix build
2019-02-15 21:55:52 +01:00
Shauren
7515553c29
Fix build for older compilers
2019-02-15 21:37:31 +01:00
Shauren
813f693768
Core/Misc: Added lambda support to EventProcessor
...
Closes #22909
2019-02-15 21:34:56 +01:00
Giacomo Pozzoni
c79811de4f
Shared/Utilities: Handle string format exceptions
...
Handle StringFormat() exceptions in case of malformed string format to avoid causing unhandled exception crashes
2019-02-15 20:01:10 +01:00
Kittnz
d1c3ee9579
Core/Objects: increase sight range of objects & correct general default visibility distance ( #22891 )
...
This can be used for anything really.
Note: This does not make the object active.
#21111 #21681
2019-01-16 20:47:25 +01:00
jackpoz
bdb7e6e5e8
Core/Utils: Handle UTF-8 conversion errors
...
Replace the output string when a UTF-8 conversion error happen with an error message instead of using an empty string, swallowing any message that the caller wanted to log.
2019-01-12 12:05:48 +01:00
Treeston
fcfcb0eb6f
Happy New Year, folks. It's 2019!
2019-01-01 15:45:25 +01:00
Treeston
4c3af3b636
Core/Utils: some code style adjustments, 6d6077e follow-up
2018-12-25 12:36:20 +01:00
Treeston
6d6077e36f
Core/Utils: Fix Unicode handling
2018-12-25 01:47:24 +01:00
Shauren
bc1f456125
Fix nopch build
2018-11-14 22:57:06 +01:00
Treeston
c16d461e16
Core/Util: Redesign SmartEnum to properly work for large enums (>64 entries) and play nice with IDEs (PR #22768 )
2018-11-11 17:52:41 +01:00
Treeston
f7ca0877a3
338e8ba follow-up (more constexpr)
2018-10-26 17:42:29 +02:00
Treeston
338e8ba0fe
Core/Misc: Partial merge of 3.3.5-dbedit:
...
- Added SmartEnum.h for enum iteration, stringification, and more, courtesy of krabicezpapundeklu/smart_enum
- Moved a bunch of enums in SharedDefines.h to the new system
- Miscellaneous utility methods ported
2018-10-26 14:43:22 +02:00
Treeston
ac253e1e41
cleanup unused variable error ( 2a607e6 follow-up)
2018-09-27 15:59:36 +02:00
Treeston
2a607e647f
Core/Misc: A few more advstd imports from C++17
2018-09-27 14:45:13 +02:00