mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 12:24:11 -04:00
Correct syntax in Systems example code
This commit is contained in:
parent
eb82c3c580
commit
fd558dd3fe
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue