| 307 | } |
| 308 | |
| 309 | void CScriptDictionary::Set(const dictKey_t &key, void *value, int typeId) |
| 310 | { |
| 311 | dictMap_t::iterator it; |
| 312 | it = dict.find(key); |
| 313 | if( it == dict.end() ) |
| 314 | it = dict.insert(dictMap_t::value_type(key, CScriptDictValue())).first; |
| 315 | |
| 316 | it->second.Set(engine, value, typeId); |
| 317 | } |
| 318 | |
| 319 | // This overloaded method is implemented so that all integer and |
| 320 | // unsigned integers types will be stored in the dictionary as int64 |
no test coverage detected