Entity progress

This commit is contained in:
2023-03-30 21:43:13 -07:00
parent 48cf9d1584
commit ec075f0035
16 changed files with 192 additions and 53 deletions

View File

@ -59,6 +59,8 @@ int32_t PrefabComponentParser::onParse(
parser = vec3Parser;
} else if(type == "int32_t" || type == "int") {
parser = intParser;
} else if(type.starts_with("enum")) {
parser = rawParser;
} else if(type.find("*") == (type.size() - 1)) {
type = type.substr(0, type.size() - 1);
parser = rawParser;
@ -66,7 +68,7 @@ int32_t PrefabComponentParser::onParse(
name = name.substr(1, name.size());
parser = rawParser;
} else {
*error = "Unkown parser for type: " + type + "::" + name;
*error = "Unknown parser for type: " + type + "::" + name;
return 1;
}