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

Method update

entityx/System_test.cc:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60class CounterSystem : public System<CounterSystem> {
61public:
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
73class EntitiesFixture : public EntityX {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected