MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / Set

Method Set

external/as_add_on/scriptdictionary/scriptdictionary.cpp:309–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void 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

Calls 3

CScriptDictValueClass · 0.85
findMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected