]> code.bitgloo.com Git - clyne/entityx.git/commitdiff
Use update_all() in example.
authorAlec Thomas <alec@swapoff.org>
Sat, 2 Jan 2016 23:15:17 +0000 (10:15 +1100)
committerAlec Thomas <alec@swapoff.org>
Sat, 2 Jan 2016 23:15:35 +0000 (10:15 +1100)
examples/example.cc

index bd049ba1eac31d40caa5aa4f01d5d0183cf01249..63313257d8e637f6196f917830c8e4567b5e17ca 100644 (file)
@@ -365,14 +365,7 @@ public:
   }
 
   void update(ex::TimeDelta dt) {
-    systems.update<SpawnSystem>(dt);
-    systems.update<BodySystem>(dt);
-    systems.update<BounceSystem>(dt);
-    systems.update<CollisionSystem>(dt);
-    systems.update<ExplosionSystem>(dt);
-    systems.update<ParticleSystem>(dt);
-    systems.update<RenderSystem>(dt);
-    systems.update<ParticleRenderSystem>(dt);
+    systems.update_all(dt);
   }
 };