mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
scripting language now has support for list and map literals: " [a,b,c] "
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@422 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -147,8 +147,10 @@ class ScriptCustomCollection : public ScriptValue {
|
||||
/// Collections can be compared by comparing pointers
|
||||
virtual const void* comparePointer() const { return &value; }
|
||||
|
||||
/// The collection
|
||||
/// The collection as a list (contains all values)
|
||||
vector<ScriptValueP> value;
|
||||
/// The collection as a map (contains only the values that have a key)
|
||||
map<String,ScriptValueP> key_value;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : Objects
|
||||
|
||||
Reference in New Issue
Block a user