mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Remove dependency on boost::random, since that is now in std
This commit is contained in:
@@ -22,9 +22,8 @@ On windows, the program can be compiled with Visual Studio (recommended) or with
|
||||
vcpkg install wxwidgets
|
||||
vcpkg install boost-smart-ptr
|
||||
vcpkg install boost-regex
|
||||
vcpkg install hunspell
|
||||
vcpkg install boost-random
|
||||
vcpkg install boost-logic
|
||||
vcpkg install hunspell
|
||||
vcpkg integrate install
|
||||
````
|
||||
* Then just use "Open Folder" from inside visual studio to open the Magic Set Editor source code root folder.
|
||||
|
||||
+3
-3
@@ -12,8 +12,8 @@
|
||||
#include <util/prec.hpp>
|
||||
#include <util/reflect.hpp>
|
||||
#include <script/scriptable.hpp>
|
||||
#include <boost/random/mersenne_twister.hpp>
|
||||
#include <boost/logic/tribool.hpp>
|
||||
#include <random>
|
||||
using boost::tribool;
|
||||
|
||||
DECLARE_POINTER_TYPE(PackType);
|
||||
@@ -137,8 +137,8 @@ class PackGenerator {
|
||||
void update_card_counts();
|
||||
|
||||
// only for PackInstance
|
||||
SetP set; ///< The set
|
||||
boost::mt19937 gen; ///< Random generator
|
||||
SetP set; ///< The set
|
||||
mt19937 gen; ///< Random generator
|
||||
private:
|
||||
/// Details for each PackType
|
||||
map<String,PackInstanceP> instances;
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include <data/pack.hpp>
|
||||
#include <data/settings.hpp>
|
||||
#include <util/window_id.hpp>
|
||||
#include <boost/random/mersenne_twister.hpp>
|
||||
#include <wx/spinctrl.h>
|
||||
#include <wx/dcbuffer.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user