Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the cfg_ field of the unit class now doesn’t store the advancements and the abilities anymore. Instead they are stored in separate fields. I used boost::ptr_vector<config> because that’s similar to how config objects store their child values internally. Unfortunately boost::ptr_vector defines ptr_vector::value_type in a bad way so that it cannot be used for BOOST_FOREACH loops value types, so i had to change lua's push_check file to use T::reference to be compatible with ptr_vector This commit removes all child tags of the unit cfg_ because the only tags that are now left in cfg_ are [variation] and [advancefrom] from [unit_type], which werent used in [unit] and only caused the savefiles to bloat.
- Loading branch information
Showing
9 changed files
with
107 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.