dictionary object

Path: /sdk/add_on/scriptdictionary/

The dictionary object maps string values to values or objects of other types.

Register with RegisterScriptDictionary(asIScriptEngine*).

Script example:

  dictionary dict;
  obj object;
  obj @handle;

  dict.set("one", 1);
  dict.set("object", object);
  dict.set("handle", @handle);

  if( dict.exists("one") )
  {
    bool found = dict.get("handle", @handle);
    if( found )
    {
      dict.delete("object");
    }
  }

  dict.deleteAll();

Todo:
Expand the documentation for the dictionary object

Generated on Sun Oct 5 10:14:48 2008 for AngelScript by  doxygen 1.5.6