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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user