MCPcopy Create free account
hub / github.com/alecthomas/entityx / update

Method update

examples/example.cc:284–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282 }
283
284 void update(ex::EntityManager &es, ex::EventManager &events, ex::TimeDelta dt) override {
285 for (ex::Entity entity : collided) {
286 emit_particles(es, entity);
287 entity.destroy();
288 }
289 collided.clear();
290 }
291
292 void emit_particles(ex::EntityManager &es, ex::Entity entity) {
293 ex::ComponentHandle<Body> body = entity.component<Body>();

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected