From 24524ad0b1c7a2aeea0bad28092e946cef8026fa Mon Sep 17 00:00:00 2001 From: realtradam Date: Sat, 15 May 2021 03:47:15 -0400 Subject: working ECS --- app/main.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'app/main.rb') 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' + -- cgit v1.2.3