diff options
| author | realtradam <[email protected]> | 2021-05-15 03:47:15 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2021-05-15 03:47:15 -0400 |
| commit | 24524ad0b1c7a2aeea0bad28092e946cef8026fa (patch) | |
| tree | 93282c6e5250a23d1829f52c40c5bbde05c69046 /app/main.rb | |
| parent | 1bf39aaa0d736b1976a32030fd1c18e0eedf1781 (diff) | |
| download | typemon-code-24524ad0b1c7a2aeea0bad28092e946cef8026fa.tar.gz typemon-code-24524ad0b1c7a2aeea0bad28092e946cef8026fa.zip | |
working ECS
Diffstat (limited to 'app/main.rb')
| -rw-r--r-- | app/main.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/main.rb b/app/main.rb index 3255af0..99c10ae 100644 --- a/app/main.rb +++ b/app/main.rb @@ -1,4 +1,22 @@ + +# TODO: when publishing require_all needs to be +# replaces by require of each individual ruby file +def require_all dir + `ls #{dir}`.each_line do |file| + require "app/#{dir}/#{file.strip}" + end +end + +require 'app/ECS/signatures.rb' + require 'app/ECS/entity_manager.rb' + require 'app/ECS/component_manager.rb' +require 'app/ECS/base_component.rb' +require_all 'ECS/components' + require 'app/ECS/system_manager.rb' +require_all 'ECS/systems' + require 'app/tick.rb' + |
