| 60 | class CounterSystem : public System<CounterSystem> { |
| 61 | public: |
| 62 | void update(EntityManager &es, EventManager &events, TimeDelta) override { |
| 63 | EntityManager::View entities = |
| 64 | es.entities_with_components<Counter>(); |
| 65 | Counter::Handle counter; |
| 66 | for (auto entity : entities) { |
| 67 | entity.unpack<Counter>(counter); |
| 68 | counter->counter++; |
| 69 | } |
| 70 | } |
| 71 | }; |
| 72 | |
| 73 | class EntitiesFixture : public EntityX { |
nothing calls this directly
no outgoing calls
no test coverage detected