mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
Basic text rendering working;
Added Font (done) and SymbolFont (skeleton); Added styling to set; Added CountourMap; Some script fixes git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@73 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
/** - K must have a unique member ->index of type UInt
|
||||
* - There must exist a function void init_object(Key, Value&)
|
||||
* that stores a new V object for a given key in the reference
|
||||
* if the value is already set the function should do nothing
|
||||
* - There must exist a function Key get_key(Value)
|
||||
* that returns a key for a given value
|
||||
* - For reflection there must exist a function String get_key_name(Value)
|
||||
@@ -39,9 +40,10 @@ class IndexMap : private vector<Value> {
|
||||
using vector<Value>::begin;
|
||||
using vector<Value>::end;
|
||||
|
||||
/// Initialize this map with default values given a list of keys, has no effect if !empty()
|
||||
/// Initialize this map with default values given a list of keys
|
||||
/** has no effect if already initialized with the given keys */
|
||||
void init(const vector<Key>& keys) {
|
||||
if (!this->empty()) return;
|
||||
if (this->size() == keys.size()) return;
|
||||
this->reserve(keys.size());
|
||||
for(vector<Key>::const_iterator it = keys.begin() ; it != keys.end() ; ++it) {
|
||||
const Key& key = *it;
|
||||
|
||||
Reference in New Issue
Block a user