mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added version number to files; IndexMap now works with GetMember
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@40 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+10
-1
@@ -50,4 +50,13 @@ IMPLEMENT_REFLECTION(Game) {
|
||||
void Game::validate() {
|
||||
// a default for the full name
|
||||
if (full_name.empty()) full_name = name();
|
||||
}
|
||||
}
|
||||
|
||||
// special behaviour of reading/writing GamePs: only read/write the name
|
||||
|
||||
void Reader::handle(GameP& game) {
|
||||
game = Game::byName(value);
|
||||
}
|
||||
void Writer::handle(const GameP& game) {
|
||||
handle(game->name());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user