mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
implemented import formats
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@102 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -40,12 +40,18 @@ class Defaultable {
|
||||
|
||||
/// Get access to the value
|
||||
inline const T& operator () () const { return value; }
|
||||
inline const T& get () const { return value; }
|
||||
/// Get access to the value, for changing it
|
||||
inline T& mutate () {
|
||||
is_default = false;
|
||||
return value;
|
||||
}
|
||||
|
||||
/// Is this value in the default state?
|
||||
inline bool isDefault() const { return is_default; }
|
||||
/// Set the defaultness to true
|
||||
inline void setDefault() { is_default = true; }
|
||||
/// Set the defaultness to false
|
||||
inline void unsetDefault() { is_default = false; }
|
||||
|
||||
/// Compare the values, ignore defaultness
|
||||
/** used by scriptable to check for changes */
|
||||
|
||||
Reference in New Issue
Block a user