Created ComponentInfo::EnumType which defines which native type to use for enums.
This commit is contained in:
@@ -118,7 +118,7 @@ void EntityFileWriter::appentEntityComponents(xercesc::DOMElement* parentElement
|
||||
const int& value = c[fieldName];
|
||||
fieldElement->appendChild(doc->createTextNode(X(boost::lexical_cast<std::string>(value))));
|
||||
} else if (field.Type == "enum") {
|
||||
const int& value = c[fieldName];
|
||||
const ComponentInfo::EnumType& value = c[fieldName];
|
||||
auto& enumDef = c.Info.Meta->FieldEnumDefinitions.at(fieldName);
|
||||
for (auto& kv : enumDef) {
|
||||
if (kv.second == value) {
|
||||
|
||||
Reference in New Issue
Block a user