diff options
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' + |
