// Required visit function
void EntityClassTreePopulator::visit(const IEntityClassPtr& eclass)
{
	std::string folderPath = eclass->getAttribute(_folderKey).getValue();

    if (!folderPath.empty())
	{
        folderPath = "/" + folderPath;
	}

	// Create the folder to put this EntityClass in, depending on the value
	// of the DISPLAY_FOLDER_KEY.
    addPath(eclass->getModName() + folderPath + "/" + eclass->getName());
}
示例#2
0
void EClassTreeBuilder::visit(IEntityClassPtr eclass) {
	std::string fullPath;
	
	// Prefix mod name
	fullPath = eclass->getModName() + "/";
	
	// Prefix inheritance path (recursively)
	fullPath += getInheritancePathRecursive(eclass);
	
	// The entityDef name itself
	fullPath += eclass->getName();
	
	// Let the VFSTreePopulator do the insertion
	_treePopulator.addPath(fullPath);
}