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

Method receive

entityx/Event_test.cc:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35struct ExplosionSystem : public Receiver<ExplosionSystem> {
36 void receive(const Explosion &explosion) {
37 damage_received += explosion.damage;
38 }
39
40 void receive(const Collision &collision) {
41 damage_received += collision.damage;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected