Added some REFLECT_ macros, so the reflection code doesn't have to mess with the internals of reflection.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@218 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-03-18 22:45:02 +00:00
parent f2ce80d88a
commit dcfee659d0
10 changed files with 52 additions and 25 deletions
+3 -3
View File
@@ -128,11 +128,11 @@ void Set::validate(Version file_app_version) {
}
IMPLEMENT_REFLECTION(Set) {
tag.addAlias(300, _("style"), _("stylesheet")); // < 0.3.0 used style instead of stylesheet
tag.addAlias(300, _("extra set info"), _("styling"));
REFLECT_ALIAS(300, "style", "stylesheet"); // < 0.3.0 used style instead of stylesheet
REFLECT_ALIAS(300, "extra set info", "styling");
REFLECT(game);
if (game) {
if (tag.reading()) {
REFLECT_IF_READING {
data.init(game->set_fields);
}
WITH_DYNAMIC_ARG(game_for_reading, game.get());