Skip to content

Releases: HexDecimal/python-tcod-ecs

5.2.3

20 Aug 21:20
5.2.3
a56445a
Compare
Choose a tag to compare

Fixed

  • Clearing an entity with inherited tags no longer hangs.

5.2.2

03 Aug 18:35
5.2.2
60e9296
Compare
Choose a tag to compare

Fixed

  • EntityComponents.pop now correctly returns defaults when the components are inherited instead of local.

5.2.1

30 Jul 22:58
5.2.1
6f4cd36
Compare
Choose a tag to compare

Fixed

  • Fixed type of default parameter for EntityComponents.get.

5.2.0

23 Jul 06:09
5.2.0
8f1e90c
Compare
Choose a tag to compare

Changed

  • Queries are now truthy if they match any entity.

5.1.0

13 Feb 13:49
5.1.0
833e1e3
Compare
Choose a tag to compare

Changed

  • Renamed World to the more standard name Registry in multiple places.

Deprecated

  • World is now Registry
  • WorldQuery is now BoundQuery
  • .world attributes of Entity and BoundQuery are now .registry

Fixed

  • Updated EntityComponents.__ior__ type hints which were causing false positives.

5.0.0

21 Oct 00:21
5.0.0
c3b849d
Compare
Choose a tag to compare

Added

  • Added the tcod.ecs.IsA sentinel value.
  • Entities will automatically inherit components/tags/relations from entities they have an IsA relationship with. #15
  • Entities can be used as prefabs, use Entity.instantiate() to make a new entities inheriting the base entities components/tags/relations.

Removed

  • tcod.ecs.query.Query removed due to a refactor.
  • abstract_component decorator removed.

Fixed

  • Fix for x in Entity.relation_tags_many not checking the correct values.

4.4.0

12 Aug 05:03
4.4.0
3f66157
Compare
Choose a tag to compare

Added

  • Added WorldQuery.get_entities for returning query results as a set.

Fixed

  • Removed an optimization which would check the equality of component values, since this would fail when comparing some types such as NumPy arrays.
  • Removed unintentional iteration behavior from World. #8

4.3.1

02 Aug 10:52
4.3.1
4a3ebfe
Compare
Choose a tag to compare

Fixed

  • Relation component lookup tables were replacing previous entries instead of adding to them.
  • Relation ellipsis lookup tables were discarding entities which still had a relevant relation.

4.3.0

01 Aug 16:55
4.3.0
1fa2f47
Compare
Choose a tag to compare

Added

  • tcod.ecs.typing.ComponentKey is now stable.
  • Can now register a callback to be called on component changes.

Fixed

  • Fixed stale caches for relation component queries.

4.2.1

29 Jul 01:38
4.2.1
b235b9d
Compare
Choose a tag to compare

Fixed

  • Unpickled worlds had reversed relations from what were saved.