Releases: HexDecimal/python-tcod-ecs
Releases · HexDecimal/python-tcod-ecs
5.4.1
5.4.0
5.3.0
Added
- New query
.any_of
method. This was possible before but it is easier with this method.
5.2.4
Fixed
- Clearing an entity with inherited components no longer leaves the entity with missed components.
5.2.3
Fixed
- Clearing an entity with inherited tags no longer hangs.
5.2.2
Fixed
EntityComponents.pop
now correctly returns defaults when the components are inherited instead of local.
5.2.1
Fixed
- Fixed type of default parameter for
EntityComponents.get
.
5.2.0
Changed
- Queries are now truthy if they match any entity.
5.1.0
Changed
- Renamed
World
to the more standard nameRegistry
in multiple places.
Deprecated
World
is nowRegistry
WorldQuery
is nowBoundQuery
.world
attributes ofEntity
andBoundQuery
are now.registry
Fixed
- Updated
EntityComponents.__ior__
type hints which were causing false positives.
5.0.0
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.