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

Method receive

examples/example.cc:318–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316 }
317
318 void receive(const CollisionEvent &collision) {
319 // Events are immutable, so we can't destroy the entities here. We defer
320 // the work until the update loop.
321 collided.insert(collision.left);
322 collided.insert(collision.right);
323 }
324
325private:
326 std::unordered_set<ex::Entity> collided;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected