Age | Commit message (Collapse) | Author |
|
|
|
(cherry picked from commit b705283d0e6c1619ea3e436a15d40a0670caf1a3)
|
|
(cherry picked from commit 37899f395476c5f1c9d092a8f8425d2a379eeac7)
|
|
* Added comparison operators
* Added type casting helper functions
(cherry picked from commit f690b693386ef44754fa4528f3c565d563ad9468)
|
|
(cherry picked from commit 1f3ebbb23cea1778ddc5ca52941861a98b667530)
|
|
specialized variant of std::shared_ptr that enforces unique ownership
* This is intended to be used by external code unable to track object lifetime such as custom scripting engines
(cherry picked from commit 32e54b6bd168c196adb45360b18721851162d731)
|
|
(cherry picked from commit cd62dc44916cd2d3e9522e1373e27bd01b27c84f)
|
|
(cherry picked from commit e8e330addd55dffa8e34716c7e1969ad243d65b3)
|
|
(cherry picked from commit 42fbcf2fc58690346ef1db12803b79634985d44f)
|
|
* Core/Config: Implement config override with env vars
Implement overriding of configuration from the .conf file with environment variables.
Environment variables keys are autogenerated based on the keys defined in .conf file.
Usage example:
$ export TC_DATA_DIR=/usr
$ TC_WORLD_SERVER_PORT=8080 ./worldserver
* Core/Config Fix typo in logs
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
* Core/Config Fix code style in EnvVarForIniKey
Co-authored-by: Shauren <shauren.trinity@gmail.com>
* Update tests/common/Config.cpp
* Apply suggestions from code review
Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com>
* Apply suggestions from code review
Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com>
Co-authored-by: Anton Popovichenko <anton.popovichenko@mendix.com>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com>
|
|
#25463)
|
|
time.
|
|
|
|
This reverts commit 697fb48747ae2fd26a99ae061d3e2fcd8e75502b.
|
|
|
|
|
|
|
|
hyperlink unit tests
|
|
|
|
|
|
|
|
|
|
|
|
Closes #25349
|
|
is set to hierarchical-folders
|
|
|
|
New methods:
TimeTrackerSmall(Milliseconds expiry);
void Update(Milliseconds diff);
void Reset(Milliseconds expiry)
Milliseconds GetExpiry() const
Removed methods:
int32 GetExpiry() const
Also add basic unit tests.
Core/Scripts: Use std::chrono interface of TimeTrackerSmall
|
|
|
|
|
|
DelayEvents(Milliseconds delay) had different semantics than
DelayEvents(Milliseconds delay, uint32 group).
The first method delayed the events only in the case the internal timer
already ticked at least for the amount of delay. In contrast the latter method
delayed events regardless of the internal timer value.
Use the latter semantics for DelayEvents(Milliseconds delay) as well which makes
the outcome more predictable. Adapt tests accordingly.
|
|
With the switch to std::chrono return type of GetTimeUntilEvent
we don't run into an overflow condition which happend with the previous
uint32 return value if the events scheduled execution time is in the past.
Test for this case.
|
|
|
|
|
|
To enable the test suite, make sure to configure CMake with -DBUILD_TESTING=1 , since it is disabled by default. The catch2 dependency will be downloaded during configure time.
Also add a new target "tests-common", which includes unit tests for the "common" project. To finally run the tests use the "test" target.
CircleCI: Run unit tests
|