mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-08-20 21:38:29 -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 = {}
|
local Systems = {}
|
||||||
Concord.utils.loadNamespace("path/to/systems", Systems)
|
Concord.utils.loadNamespace("path/to/systems", Systems)
|
||||||
|
|
||||||
print(Systems.systemName)
|
myWorld:addSystems(
|
||||||
|
Systems.healthSystem
|
||||||
|
Systems.damageSystem,
|
||||||
|
Systems.moveSystem,
|
||||||
|
-- etc
|
||||||
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Method chaining
|
#### Method chaining
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue