MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / Set

Method Set

Sources/Jazz2/Scripting/RegisterDictionary.cpp:294–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 4

CScriptDictValueClass · 0.85
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected