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.
This commit is contained in:
lrgilbert 2021-11-14 09:14:45 -06:00 committed by GitHub
parent edc1d2fdbc
commit af759206ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,10 +266,10 @@ Systems can have multiple pools.
```lua ```lua
-- Create a System -- 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 -- Create a System with multiple pools
local mySystemClass = Concord.system( local mySystemClass = Concord.system({
pool = { -- This pool will be named 'pool' pool = { -- This pool will be named 'pool'
"position", "position",
"velocity", "velocity",
@ -278,7 +278,7 @@ local mySystemClass = Concord.system(
"health", "health",
"damageable", "damageable",
} }
) })
``` ```
```lua ```lua