mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
more script functions and text editor improvements
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@100 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -33,6 +33,10 @@ class Defaultable {
|
||||
assert(is_default);
|
||||
value = new_value;
|
||||
}
|
||||
/// Assigning a value, don't change the defaultness
|
||||
inline void assignDontChangeDefault(const T& new_value) {
|
||||
value = new_value;
|
||||
}
|
||||
|
||||
/// Get access to the value
|
||||
inline const T& operator () () const { return value; }
|
||||
|
||||
Reference in New Issue
Block a user