mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Rename fields
This commit is contained in:
parent
b40a3a1b14
commit
ab7d316c3f
@ -57,14 +57,12 @@ namespace JsonRandom
|
||||
if (!value["type"].isNull())
|
||||
return value["type"].String();
|
||||
|
||||
if(!value["list"].isNull())
|
||||
{
|
||||
return RandomGeneratorUtil::nextItem(value["list"].Vector(), rng)->String();
|
||||
}
|
||||
if(!value["anyOf"].isNull())
|
||||
return RandomGeneratorUtil::nextItem(value["anyOf"].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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user