MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / addVariableNotify

Method addVariableNotify

Engine/source/console/consoleInternal.cpp:656–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656void Dictionary::addVariableNotify(const char *name, const Con::NotifyDelegate &callback)
657{
658 Entry *ent = lookup(StringTable->insert(name));
659 if (!ent)
660 return;
661
662 if (!ent->notify)
663 ent->notify = new Entry::NotifySignal();
664
665 ent->notify->notify(callback);
666}
667
668void Dictionary::removeVariableNotify(const char *name, const Con::NotifyDelegate &callback)
669{

Callers 1

addVariableNotifyFunction · 0.80

Calls 3

lookupFunction · 0.85
insertMethod · 0.45
notifyMethod · 0.45

Tested by

no test coverage detected