diff options
| author | realtradam <[email protected]> | 2021-05-18 04:49:47 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2021-05-18 04:49:47 -0400 |
| commit | 120b693ffd02bc5c7f41ff2b9657facc7117daae (patch) | |
| tree | 59e9f982dc2ee994cbbb65411065b35445048502 /app/ECS/test.rb | |
| parent | 24524ad0b1c7a2aeea0bad28092e946cef8026fa (diff) | |
| download | typemon-code-120b693ffd02bc5c7f41ff2b9657facc7117daae.tar.gz typemon-code-120b693ffd02bc5c7f41ff2b9657facc7117daae.zip | |
.
Diffstat (limited to 'app/ECS/test.rb')
| -rw-r--r-- | app/ECS/test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/ECS/test.rb b/app/ECS/test.rb index 2ab5be1..13fd401 100644 --- a/app/ECS/test.rb +++ b/app/ECS/test.rb @@ -5,14 +5,14 @@ require_relative './system_manager.rb' move = '0001'.to_i(2) base = '0010'.to_i(2) both = '0011'.to_i(2) -ECS::Entity.new(move) -ECS::Entity.new(base) -ECS::Entity.new(both) +Entity.new(move) +Entity.new(base) +Entity.new(both) 3.times do - ECS::Systems.constants.each do |constant| + Systems.constants.each do |constant| puts "|----#{constant.to_s.upcase}----|" - ECS::Systems::const_get(constant).run + Systems::const_get(constant).run end #ECS::Entity.destroy_entity(ECS::Entity.all.last.id) unless ECS::Entity.all.empty? end |
