diff options
| author | realtradam <[email protected]> | 2021-05-26 01:24:30 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2021-05-26 01:24:30 -0400 |
| commit | 7bec71db2680e0503f39c31047f5f90ca89433df (patch) | |
| tree | 4d987b479b0670256af5c1a4ffe5ab7b75fb23b4 /test.rb | |
| download | FelECS-7bec71db2680e0503f39c31047f5f90ca89433df.tar.gz FelECS-7bec71db2680e0503f39c31047f5f90ca89433df.zip | |
init
Diffstat (limited to 'test.rb')
| -rw-r--r-- | test.rb | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |
