mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Rename fields
This commit is contained in:
@@ -57,14 +57,12 @@ namespace JsonRandom
|
|||||||
if (!value["type"].isNull())
|
if (!value["type"].isNull())
|
||||||
return value["type"].String();
|
return value["type"].String();
|
||||||
|
|
||||||
if(!value["list"].isNull())
|
if(!value["anyOf"].isNull())
|
||||||
{
|
return RandomGeneratorUtil::nextItem(value["anyOf"].Vector(), rng)->String();
|
||||||
return RandomGeneratorUtil::nextItem(value["list"].Vector(), rng)->String();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!value["except"].isNull())
|
if(!value["noneOf"].isNull())
|
||||||
{
|
{
|
||||||
for(auto & s : value["except"].Vector())
|
for(auto & s : value["noneOf"].Vector())
|
||||||
valuesSet.erase(s.String());
|
valuesSet.erase(s.String());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user