Skip to content

Releases: HexDecimal/python-tcod-ecs

5.4.1

20 Jul 15:14
5.4.1
bb07cde
Compare
Choose a tag to compare

Maintenance release

5.4.0

11 Apr 03:08
5.4.0
0bbf97b
Compare
Choose a tag to compare

Added

  • Allow setting the traverse state of an entity.component_tags[type][entity](traverse=...) attribute.

Changed

  • Updated deprecations to use PEP 702.

Fixed

  • Fixed .clear methods for entity.components and entity.component_relations.

5.3.0

08 Mar 19:09
5.3.0
08b2b21
Compare
Choose a tag to compare

Added

  • New query .any_of method. This was possible before but it is easier with this method.

5.2.4

07 Mar 17:56
5.2.4
3e36748
Compare
Choose a tag to compare

Fixed

  • Clearing an entity with inherited components no longer leaves the entity with missed components.

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.