Make example for how to use Concord.utils.loadNamespace for systems more concrete

This commit is contained in:
Justin van der Leij 2024-06-30 10:45:46 +02:00 committed by GitHub
parent 30b21c4c25
commit 848652f688
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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