Releases: SpontanCombust/tw3-settings-framework
Releases · SpontanCombust/tw3-settings-framework
0.3.0
What's Changed
- Framework ported to game version 4.03 (Next-Gen Update)
Full Changelog: 0.2.0...0.3.0
0.2.0
- Groups are now represented by classes instead of structs. They have a Reset() method which takes a preset index argument and applies this preset. They also have ResetToDefault() method, which gets its preset index from a constant that is set on parse time.
- default preset indexes for each group are deducted by checking whether a preset for that group has a displayName with a special keyword. This keyword can be set with --default-preset-keyowrd option and it's "default".... by default
- ISettingsMaster has explicit Init method
- ISettingMaster now has 3 overridable methods for basic setting and getting vars and applying presets. ReadSettings() and WriteSettings() use these methods instead of directly calling config wrapper.
- ISettingMaster has ResetSettingsToDefault() method, which calls ResetToDefault() on every group
- setting master class has a modVersion const string var, which gets set on parse time - mod version gets passed as command option with --mod-version or -v. You can use this const if you want to do some custom things when mod version changes and you want to compare the version stored in the user config to the version represented by this const.
- ISettingMaster has ShouldResetSettingsToDefaultOnInit() method. It's default implementation is made on parse time and it is done by checking whether GetVarValue() for a random (in reality the first one) var from the xml returns "".
- Deleted listener classes in favor of calling arbitrary code by overriding settings master methods
- Added simple sample mod
For game version 1.32.
Full Changelog: 0.1.1...0.2.0
0.1.1
More error checking when parsing the xml.
For game version 1.32.
Full Changelog: 0.1.0...0.1.1
0.1.0
First fully working version of the framework.
Refer to README for usage instructions.
For game version 1.32.
New Contributors
Full Changelog: https://github.com/SpontanCombust/tw3-settings-framework/commits/0.1.0