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

Method registerAddEvent

Source/Entity/Entity.cpp:290–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290void Entity::registerAddEvent(int index) {
291 auto& handler = SharedEntityPool.getAddHandler(index);
292 if (!handler.IsEmpty()) {
293 SharedEntityPool.updatedEntities.insert(MakeWRef(this));
294 handler(this);
295 }
296}
297
298void Entity::registerUpdateEvent(int index, Own<Value>&& old) {
299 auto& handler = SharedEntityPool.getChangeHandler(index);

Callers 1

EntityPoolMethod · 0.80

Calls 4

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

Tested by

no test coverage detected