From af759206aefc10c80bedbd1e355382bf91fe08b0 Mon Sep 17 00:00:00 2001 From: lrgilbert <24597705+lrgilbert@users.noreply.github.com> Date: Sun, 14 Nov 2021 09:14:45 -0600 Subject: [PATCH] Docs missing curly brackets in Systems example A couple examples of creating systems were missing the curly brackets around the pools when creating a new system. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2f79dcf..c63b9f7 100644 --- a/README.md +++ b/README.md @@ -266,10 +266,10 @@ Systems can have multiple pools. ```lua -- Create a System -local mySystemClass = Concord.system(pool = {"position"}) -- Pool named 'pool' will contain all Entities with a position Component +local mySystemClass = Concord.system({pool = {"position"}}) -- Pool named 'pool' will contain all Entities with a position Component -- Create a System with multiple pools -local mySystemClass = Concord.system( +local mySystemClass = Concord.system({ pool = { -- This pool will be named 'pool' "position", "velocity", @@ -278,7 +278,7 @@ local mySystemClass = Concord.system( "health", "damageable", } -) +}) ``` ```lua