| 288 | } |
| 289 | |
| 290 | void 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 | |
| 298 | void Entity::registerUpdateEvent(int index, Own<Value>&& old) { |
| 299 | auto& handler = SharedEntityPool.getChangeHandler(index); |
no test coverage detected