1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fixed all major bugs with newly converted objects

This commit is contained in:
Ivan Savenko
2023-01-22 18:17:26 +02:00
parent 9f3f9cc563
commit 695a94c3c8
5 changed files with 82 additions and 21 deletions

View File

@@ -260,6 +260,21 @@ bool JsonNode::isNumber() const
return type == JsonType::DATA_INTEGER || type == JsonType::DATA_FLOAT;
}
bool JsonNode::isString() const
{
return type == JsonType::DATA_STRING;
}
bool JsonNode::isVector() const
{
return type == JsonType::DATA_VECTOR;
}
bool JsonNode::isStruct() const
{
return type == JsonType::DATA_STRUCT;
}
bool JsonNode::containsBaseData() const
{
switch(type)