mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-08-20 13:28:30 -04:00
Make example for how to use Concord.utils.loadNamespace for systems more concrete
This commit is contained in:
parent
30b21c4c25
commit
848652f688
1 changed files with 6 additions and 1 deletions
|
@ -142,7 +142,12 @@ print(Concord.components.componentName)
|
|||
local Systems = {}
|
||||
Concord.utils.loadNamespace("path/to/systems", Systems)
|
||||
|
||||
print(Systems.systemName)
|
||||
myWorld:addSystems(
|
||||
Systems.healthSystem
|
||||
Systems.damageSystem,
|
||||
Systems.moveSystem,
|
||||
-- etc
|
||||
)
|
||||
```
|
||||
|
||||
#### Method chaining
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue