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

Method Application

examples/example.cc:371–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369class Application : public ex::EntityX {
370public:
371 explicit Application(sf::RenderTarget &target, sf::Font &font) {
372 systems.add<SpawnSystem>(target, 500);
373 systems.add<BodySystem>();
374 systems.add<BounceSystem>(target);
375 systems.add<CollisionSystem>(target);
376 systems.add<ExplosionSystem>();
377 systems.add<ParticleSystem>();
378 systems.add<RenderSystem>(target, font);
379 systems.add<ParticleRenderSystem>(target);
380 systems.configure();
381 }
382
383 void update(ex::TimeDelta dt) {
384 systems.update<SpawnSystem>(dt);

Callers

nothing calls this directly

Calls 1

configureMethod · 0.45

Tested by

no test coverage detected