draco 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/draco.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f135d47efafef38fd731f870c963e9764f113317f1156ca3c93b10a99a87cdb3
4
- data.tar.gz: c8ef07e0313011c1333886410fe43f68804da261b74b1d197742824f07c2e907
3
+ metadata.gz: 24b415a62db03c702026f0187df6c129b943019202a4177203e99394b5b6fad4
4
+ data.tar.gz: 6d89ccb9181612137bdc204236868b302da02b97bcf3326f3344dfce20414610
5
5
  SHA512:
6
- metadata.gz: c8858f4d209549cb36b23aa300f18bde9548dfcd56cd1519a61d8a04c4f32c309e5453805358733773a9f63d0cbc8e63c0e9c21bc909acd34d3d272f549b6679
7
- data.tar.gz: 175629d4ac05169ed4bfe393eff7507d0dd0e7afa62c112a464dd30d3c97876233fa6e93b51af1ecc1ccd2cb22b5b708ffc96cb1e1517232164d61b38532fa46
6
+ metadata.gz: c706c0c1fdc2dd4597f325832897525d4af62d20bc359043b98dd83690155dad2f8f0f1c4b49d634eafb9a99e462407d2718e4bfe64684c42417c83b91e38f32
7
+ data.tar.gz: 67b097a938524b0d065876c85dd66083c31d8b2c835b8329113950c29930a7ac82ddea396e7eaa6b6b583a601ec2e7d20885afe8e8e4841215a635b72b3292d6
@@ -5,7 +5,7 @@
5
5
  # An Entity Component System is an architectural pattern used in game development to decouple behavior from objects.
6
6
  module Draco
7
7
  # Public: The version of the library. Draco uses semver to version releases.
8
- VERSION = "0.3.1"
8
+ VERSION = "0.3.2"
9
9
 
10
10
  # Public: A general purpose game object that consists of a unique id and a collection of Components.
11
11
  class Entity
@@ -554,9 +554,9 @@ module Draco
554
554
  #
555
555
  # Returns the EntityStore
556
556
  def delete(entity)
557
- components = @entity_to_components.delete(entity)
557
+ components = Array(@entity_to_components.delete(entity))
558
558
 
559
- components.map(&:class).each do |component|
559
+ components.each do |component|
560
560
  @component_to_entities[component].delete(entity)
561
561
  end
562
562
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: draco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Pruitt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-08 00:00:00.000000000 Z
11
+ date: 2020-11-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A library for Entities, Components, and Systems in games.
14
14
  email: