Gerikes
User of Run-on Sentences.
I'm not sure how much has been put into developing this, but I have an idea for what could be added to this project.
When loading XML files, order is important. For example, the CIV4BonusInfos.xml file is loaded first, then the CIV4ImprovementsInfos.xml file. Thus, anything in the BonusInfos file can not use anything defined in the ImprovementsInfos file, since the function used to search infos (CvXMLLoadUtility::FindInInfoClass) will only be able to successfully find items that have already been read in.
The problem I've run into a few times is wanting to include something in one file of a file that is loaded later. So, unless I'm seriously mistaken and there's an easy way to fix this, I see it as a problem. My idea is this:
Perhaps a mechanism can be devised so that any variables that are set by calling CvXMLLoadUtility::FindInInfoClass are delayed in being set until after everything's been loaded. The actual implementation shouldn't be as hard as making that implementation friendly to users who wish to add new XML infos.
I'd be willing to help out in the coding if there's another interest from others.
When loading XML files, order is important. For example, the CIV4BonusInfos.xml file is loaded first, then the CIV4ImprovementsInfos.xml file. Thus, anything in the BonusInfos file can not use anything defined in the ImprovementsInfos file, since the function used to search infos (CvXMLLoadUtility::FindInInfoClass) will only be able to successfully find items that have already been read in.
The problem I've run into a few times is wanting to include something in one file of a file that is loaded later. So, unless I'm seriously mistaken and there's an easy way to fix this, I see it as a problem. My idea is this:
Perhaps a mechanism can be devised so that any variables that are set by calling CvXMLLoadUtility::FindInInfoClass are delayed in being set until after everything's been loaded. The actual implementation shouldn't be as hard as making that implementation friendly to users who wish to add new XML infos.
I'd be willing to help out in the coding if there's another interest from others.