Shauren
3f1197855f
Core/Utils: Avoid unneccessary container copy
2018-11-07 20:27:22 +01:00
Shauren
91be2332e2
Core/Entities: Phasing rewrite
...
* Optimized phase visibility checking
* Handle all phase flags
Closes #16758
Closes #21119
2018-03-25 19:28:36 +03:00
vincent-michael
7d00ae4045
Update copyright note for 2018
...
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
Shauren
fdd9227b23
Core/Misc: Util changes
...
* 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-23 23:32:20 +02:00
ariel-
555fc9d3d5
Core/Utils: restored previous behaviour of RandomResize
...
(cherry picked from commit 8188511759c6613d33111ab59f4af3c441d01c8b)
2017-06-05 03:47:14 -03:00
Shauren
f097e341f5
Core/Utilities: Rename RandomResizeList->RandomResize as it is no longer restricted to a list
...
* Also fix gcc build
2017-03-23 00:11:58 +01:00
Shauren
a1e3b54e07
Core/Utils: Changed all Trinity::Containers utilities to work on all 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-21 21:04:01 +01:00
vincent-michael
86b98686a9
Update copyright note for 2017
...
Happy new year
2017-01-01 16:23:13 +01:00
Shauren
cd28d23ed8
Build fix
2016-10-22 13:28:58 +02:00
Shauren
59fe908744
Core/Random: Remove no longer needed hack for VS 2013
2016-09-01 11:52:08 +02:00
Shauren
a6205e4035
Core/Containers: Warning fixes and RandomResizeList with predicate optimization
...
(cherry picked from commit 0fbfa8ead04a59f3eef70f4f2e454e318d895bd9)
2016-05-24 18:52:34 +02:00
joschiwald
803473fb64
Core/Utils: replaced std::random_shuffle with our own implementation using SFMT random generator
...
(cherry picked from commit 9e371b766c75faf899cbbe24515b8b5c01716a50)
2016-04-24 20:19:42 +02:00
Naios
501fd9b502
Core/Common: Converted the common library to a shared library.
...
* There is still the possibility to static link against common.
2016-03-24 01:28:58 +01:00
Shauren
d5b0ffbe9b
Core/Misc: Added safeguard against generating invalid selection weight data in Trinity::Containers::SelectRandomWeightedContainerElement
2016-01-23 11:34:47 +01:00
Shauren
bc94bacce4
Core/Misc: Build fix for clang & libc++
2016-01-09 01:38:59 +01:00
DDuarte
ff9c999334
Core/Utilities: Fix build in some versions of Ubuntu / GCC
...
Closes #16125
2016-01-03 20:39:13 +00:00
Shauren
00c878e73a
Core/Misc: Build fix for older gcc
2016-01-02 18:45:01 +01:00
Vincent-Michael
478cc756eb
Update copyright note for 2016
...
Happy new year (Again new year with idiots ...)
2016-01-01 00:34:25 +01:00
Shauren
9ab10d6e68
Core/Misc: VS 2013 build fix - horrible hack.
2015-12-27 01:21:30 +01:00
Shauren
921d893c2a
Build fix
2015-12-26 00:33:14 +01:00
Shauren
ae20b2ab56
Core/Utils: Moved rng functions to separate header and added utility functions to select a random element from a container where each element can have different chance of being selected
2015-12-24 19:48:39 +01:00