draco 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/draco.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24b415a62db03c702026f0187df6c129b943019202a4177203e99394b5b6fad4
|
4
|
+
data.tar.gz: 6d89ccb9181612137bdc204236868b302da02b97bcf3326f3344dfce20414610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c706c0c1fdc2dd4597f325832897525d4af62d20bc359043b98dd83690155dad2f8f0f1c4b49d634eafb9a99e462407d2718e4bfe64684c42417c83b91e38f32
|
7
|
+
data.tar.gz: 67b097a938524b0d065876c85dd66083c31d8b2c835b8329113950c29930a7ac82ddea396e7eaa6b6b583a601ec2e7d20885afe8e8e4841215a635b72b3292d6
|
data/lib/draco.rb
CHANGED
@@ -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.
|
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.
|
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.
|
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-
|
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:
|