Shifts handling of material and terrain material definitions to be written into the asset definition taml file instead of having an extra loose file

Also updates importers to correctly handle this change
Adds ability for taml XML serialization to properly assign array'd fields
Adds 'inheritFrom' field to simobjects for when objects with parent objects are serialized
AssetBase how inherits from SimGroup so it can have objects like material definitions embedded in them for save/load in the taml definition file
Updated loading/handling logic in terrain material asset to be more similar to regular material assets
This commit is contained in:
JeffR 2022-01-30 11:50:16 -06:00
parent 656475deaf
commit 630285def6
20 changed files with 791 additions and 318 deletions

View file

@ -516,7 +516,8 @@ bool Material::writeField(StringTableEntry fieldname, const char* value)
fieldname == StringTable->insert("overlayTex") ||
fieldname == StringTable->insert("bumpTex") ||
fieldname == StringTable->insert("envTex") ||
fieldname == StringTable->insert("colorMultiply"))
fieldname == StringTable->insert("colorMultiply") ||
fieldname == StringTable->insert("internalName"))
return false;
return Parent::writeField(fieldname, value);