baku 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/baku/entity_manager.rb +3 -1
- data/lib/baku/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3acdc8865ba365f5af863c36a85be4db11ed681c
|
4
|
+
data.tar.gz: eee1b0ba43a5a33483caa7baa809618ee4154961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 339e6f8a610ffe4f11101eb98868bc70a5d17959e1f2cb72dbd89238d8dd68e857a18fd76fdb9d80dd73d436c515d50075f6335e6fab742bae6af7de44049fc6
|
7
|
+
data.tar.gz: 77dbacbd13d4882ef2b9655db1bb52f778224d3f75733b5789b5aba24664f415f57df6bdb03b9573752eb3f2770f547e8c65f4aabc6a9f693adf0bbbdcbb500c
|
data/CHANGELOG.md
CHANGED
data/lib/baku/entity_manager.rb
CHANGED
@@ -56,7 +56,9 @@ module Baku
|
|
56
56
|
|
57
57
|
def add_entity_to_matching_component_lists(entity)
|
58
58
|
@entities_by_component_mask.each do |component_mask, entities|
|
59
|
-
|
59
|
+
component_mask_match = component_mask.matches?(entity.component_mask)
|
60
|
+
|
61
|
+
if component_mask_match && !entities.include?(entity)
|
60
62
|
entities << entity
|
61
63
|
end
|
62
64
|
end
|
data/lib/baku/version.rb
CHANGED