| 292 | } |
| 293 | |
| 294 | void CScriptDictionary::Set(const dictKey_t& key, void* value, std::int32_t typeId) |
| 295 | { |
| 296 | dictMap_t::iterator it; |
| 297 | it = dict.find(key); |
| 298 | if (it == dict.end()) { |
| 299 | it = dict.insert(dictMap_t::value_type(key, CScriptDictValue())).first; |
| 300 | } |
| 301 | it->second.Set(engine, value, typeId); |
| 302 | } |
| 303 | |
| 304 | // This overloaded method is implemented so that all integer and |
| 305 | // unsigned integers types will be stored in the dictionary as int64 |
no test coverage detected