mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-05 05:43:55 -04:00
Merge pull request #46 from john-cheesman/correct-readme-code
Correct syntax in Systems example code
This commit is contained in:
commit
821b36c903
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue