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:
twanvl
2007-06-14 14:25:53 +00:00
parent 6e55175f51
commit 40e55e8151
7 changed files with 73 additions and 11 deletions
+3 -1
View File
@@ -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