diff options
| author | _Tradam <[email protected]> | 2021-05-26 02:12:54 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-26 02:12:54 -0400 |
| commit | 41f574c04c70e6327cb1861fac01664bd3f3f7ba (patch) | |
| tree | 34a184ff4fd182a8823f416fd87b4d546e1e250f /app/lib/component_manager.rb | |
| parent | f97a9ca95e464e728bba9337b579bc380c33bc7d (diff) | |
| parent | a5bbcbf5d78005746fb64c51a779f830d7667a57 (diff) | |
| download | typemon-code-master.tar.gz typemon-code-master.zip | |
split off FelFlame
Diffstat (limited to 'app/lib/component_manager.rb')
| -rw-r--r-- | app/lib/component_manager.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/app/lib/component_manager.rb b/app/lib/component_manager.rb deleted file mode 100644 index f5261a2..0000000 --- a/app/lib/component_manager.rb +++ /dev/null @@ -1,20 +0,0 @@ -#require 'app/ECS/base_component.rb' - -#require 'app/ECS/components/00_test_component.rb' -#require 'app/ECS/components/01_based.rb' - -class Components - class <<self - def entity_destroyed(entity_id) - constants.each do |component| - component.delete(entity_id) unless (component.id & Entity.signatures[entity_id]).zero? - end - end - - def entity_created(entity_id) - constants.each do |component| - const_get(component.to_s).add(entity_id) unless (const_get(component.to_s).id & Entity.signatures[entity_id]).zero? - end - end - end -end |
