1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Replaced most of usages of CRandomGenerator with vstd::RNG in library

This commit is contained in:
Ivan Savenko
2024-06-01 15:28:17 +00:00
parent 60a51e98de
commit 63bcf7d83c
125 changed files with 620 additions and 409 deletions

View File

@@ -17,7 +17,6 @@ VCMI_LIB_NAMESPACE_BEGIN
class CMap;
class CMapEditManager;
class CRandomGenerator;
class TileInfo;
class CMapGenOptions;
class Zone;
@@ -25,6 +24,11 @@ class CMapGenerator;
class MapProxy;
class playerInfo;
namespace vstd
{
class RNG;
}
class RmgMap
{
public:
@@ -79,7 +83,7 @@ public:
void registerZone(FactionID faction);
ui32 getZoneCount(FactionID faction);
ui32 getTotalZoneCount() const;
void initTiles(CMapGenerator & generator, CRandomGenerator & rand);
void initTiles(CMapGenerator & generator, vstd::RNG & rand);
void addModificators();
bool isAllowedSpell(const SpellID & sid) const;