mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Cleaned up the reflection code a bit
* Renamed 'tag' variable to 'handler' * Removed addAlias stuff, instead check for matching names with if statements * Added after_reading function that is called by Reader after reading a complete object. This generalizes Packaged::validate, which is now also called via this mechanism. * Removed some backwards compatibility with <0.3.0 for templates
This commit is contained in:
@@ -91,16 +91,6 @@ void mark_dependency_value(const StyleSheet& stylesheet, const Dependency& dep)
|
||||
|
||||
|
||||
IMPLEMENT_REFLECTION(StyleSheet) {
|
||||
// < 0.3.0 didn't use card_ prefix
|
||||
REFLECT_ALIAS(300, "width", "card_width");
|
||||
REFLECT_ALIAS(300, "height", "card_height");
|
||||
REFLECT_ALIAS(300, "dpi", "card_dpi");
|
||||
REFLECT_ALIAS(300, "background", "card_background");
|
||||
REFLECT_ALIAS(300, "info_style", "set_info_style");
|
||||
REFLECT_ALIAS(300, "align", "alignment");
|
||||
REFLECT_ALIAS(300, "extra_field", "styling_field");
|
||||
REFLECT_ALIAS(300, "extra_style", "styling_style");
|
||||
|
||||
REFLECT(game);
|
||||
REFLECT_BASE(Packaged);
|
||||
REFLECT(card_width);
|
||||
|
||||
Reference in New Issue
Block a user