mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
added TextCtrl control for things like card.notes and keyword stuff
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@112 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -53,6 +53,12 @@ class IndexMap : private vector<Value> {
|
||||
init_object(key, (*this)[key->index]);
|
||||
}
|
||||
}
|
||||
/// Change this map by adding an additional key and value
|
||||
void add(const Key& key, const Value& value) {
|
||||
assert(get_key(value) == key);
|
||||
if (key->index >= this->size()) this->resize(key->index + 1);
|
||||
(*this)[key->index] = value;
|
||||
}
|
||||
|
||||
/// Retrieve a value given its key
|
||||
inline Value operator [] (const Key& key) {
|
||||
|
||||
Reference in New Issue
Block a user