mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-07 06:37:50 -04:00
create world example first
This commit is contained in:
parent
3f79d72560
commit
f6704d8451
1 changed files with 4 additions and 0 deletions
|
@ -145,6 +145,10 @@ Concord.utils.loadNamespace("path/to/systems", Systems)
|
||||||
print(Systems.systemName)
|
print(Systems.systemName)
|
||||||
|
|
||||||
-- Registers the loaded systems. Either with a for loop for automatic registering, or manually (you can choose the order)
|
-- Registers the loaded systems. Either with a for loop for automatic registering, or manually (you can choose the order)
|
||||||
|
-- Create World first, also see:
|
||||||
|
[Worlds](#worlds)
|
||||||
|
local myWorld = Concord.world()
|
||||||
|
|
||||||
--for loop
|
--for loop
|
||||||
for _, system in pairs(Systems) do
|
for _, system in pairs(Systems) do
|
||||||
world:addSystem(system)
|
world:addSystem(system)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue