MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / registerUpdateEvent

Method registerUpdateEvent

Source/Entity/Entity.cpp:298–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void Entity::registerUpdateEvent(int index, Own<Value>&& old) {
299 auto& handler = SharedEntityPool.getChangeHandler(index);
300 if (!handler.IsEmpty()) {
301 _oldComs[index] = std::move(old);
302 SharedEntityPool.updatedEntities.insert(MakeWRef(this));
303 handler(this);
304 }
305}
306
307void Entity::registerRemoveEvent(int index, Own<Value>&& old) {
308 auto& handler = SharedEntityPool.getRemoveHandler(index);

Callers 1

EntityPoolMethod · 0.80

Calls 5

moveFunction · 0.85
MakeWRefFunction · 0.85
handlerFunction · 0.85
IsEmptyMethod · 0.80
insertMethod · 0.65

Tested by

no test coverage detected