Split GetMember into GetMember (for handle) and GetDefaultMember (for store);

Split IMPLEMENT_REFLECTION macro to match

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@24 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-19 12:29:51 +00:00
parent 29d072e949
commit dc0ece358b
9 changed files with 160 additions and 82 deletions
+7
View File
@@ -130,3 +130,10 @@ template <> void Reader::handle(Vector2D& vec) {
throw ParseError(_("Expected (x,y)"));
}
}
template <> void Reader::handle(Color& col) {
UInt r,g,b;
if (wxSscanf(value.c_str(),_("rgb(%u,%u,%u)"),&r,&g,&b)) {
col.Set(r, g, b);
}
}