mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
GameRandomizer is now in lib, add implementation
This commit is contained in:
@@ -50,6 +50,12 @@ JsonRandomizationException::JsonRandomizationException(const std::string & messa
|
||||
: std::runtime_error(message + " Input was: " + cleanupJson(input))
|
||||
{}
|
||||
|
||||
JsonRandom::JsonRandom(IGameInfoCallback * cb, IGameRandomizer & gameRandomizer)
|
||||
: GameCallbackHolder(cb)
|
||||
, gameRandomizer(gameRandomizer)
|
||||
, rng(gameRandomizer.getDefault())
|
||||
{
|
||||
}
|
||||
|
||||
si32 JsonRandom::loadVariable(const std::string & variableGroup, const std::string & value, const Variables & variables, si32 defaultValue)
|
||||
{
|
||||
|
Reference in New Issue
Block a user