mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
- Added 'package list' field type
- Some refactoring of the other field types git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@790 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+4
-1
@@ -253,7 +253,7 @@ inline String type_name(const Value&) {
|
||||
virtual String typeName() const
|
||||
|
||||
// implement newStyle and newValue
|
||||
#define IMPLEMENT_FIELD_TYPE(Type) \
|
||||
#define IMPLEMENT_FIELD_TYPE(Type, NAME) \
|
||||
StyleP Type ## Field::newStyle(const FieldP& thisP) const { \
|
||||
assert(thisP.get() == this); \
|
||||
return new_intrusive1<Type ## Style>(static_pointer_cast<Type ## Field>(thisP));\
|
||||
@@ -267,6 +267,9 @@ inline String type_name(const Value&) {
|
||||
} \
|
||||
ValueP Type ## Value::clone() const { \
|
||||
return new_intrusive1<Type ## Value>(*this); \
|
||||
} \
|
||||
String Type ## Field::typeName() const { \
|
||||
return _(NAME); \
|
||||
}
|
||||
|
||||
#define DECLARE_STYLE_TYPE(Type) \
|
||||
|
||||
Reference in New Issue
Block a user