summaryrefslogtreecommitdiffhomepage
path: root/app/lib/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/test.rb')
-rw-r--r--app/lib/test.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/lib/test.rb b/app/lib/test.rb
new file mode 100644
index 0000000..13fd401
--- /dev/null
+++ b/app/lib/test.rb
@@ -0,0 +1,18 @@
+require_relative './entity_manager.rb'
+require_relative './component_manager.rb'
+require_relative './system_manager.rb'
+
+move = '0001'.to_i(2)
+base = '0010'.to_i(2)
+both = '0011'.to_i(2)
+Entity.new(move)
+Entity.new(base)
+Entity.new(both)
+
+3.times do
+ Systems.constants.each do |constant|
+ puts "|----#{constant.to_s.upcase}----|"
+ Systems::const_get(constant).run
+ end
+ #ECS::Entity.destroy_entity(ECS::Entity.all.last.id) unless ECS::Entity.all.empty?
+end