mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Automatic use of singular names -> even more use of REFLECT instead of REFLECT_N.
This also works better for GetMember, since the plural names (which make sense for scripts) are the default. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@16 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+2
-2
@@ -32,8 +32,8 @@ IMPLEMENT_REFLECTION(Game) {
|
||||
REFLECT(card_fields);
|
||||
// REFLECT_N("keyword parameter type", keyword_params);
|
||||
// REFLECT_N("keyword separator type", keyword_separators);
|
||||
// REFLECT_N("keyword", keywords);
|
||||
// REFLECT_N("word list", word_lists);
|
||||
// REFLECT(keywords);
|
||||
// REFLECT(word_lists);
|
||||
}
|
||||
|
||||
void Game::validate() {
|
||||
|
||||
@@ -95,7 +95,7 @@ String Settings::settingsFile() {
|
||||
|
||||
IMPLEMENT_REFLECTION(Settings) {
|
||||
// ioMseVersion(io, "settings", file_version);
|
||||
REFLECT_N("recent_set", recent_sets);
|
||||
REFLECT(recent_sets);
|
||||
REFLECT(set_window_maximized);
|
||||
REFLECT(set_window_width);
|
||||
REFLECT(set_window_height);
|
||||
|
||||
+2
-2
@@ -106,7 +106,7 @@ IMPLEMENT_REFLECTION_ENUM(SymbolPartCombine) {
|
||||
IMPLEMENT_REFLECTION(SymbolPart) {
|
||||
REFLECT(name);
|
||||
REFLECT(combine);
|
||||
REFLECT_N("point", points);
|
||||
REFLECT(points);
|
||||
// Fixes after reading
|
||||
if (tag.reading()) {
|
||||
// enforce constraints
|
||||
@@ -160,7 +160,7 @@ void SymbolPart::calculateBounds() {
|
||||
|
||||
IMPLEMENT_REFLECTION(Symbol) {
|
||||
//%% version?
|
||||
REFLECT_N("part", parts);
|
||||
REFLECT(parts);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : SymbolView
|
||||
|
||||
Reference in New Issue
Block a user