Releases: HexDecimal/python-tcod-ecs
Releases · HexDecimal/python-tcod-ecs
5.2.3
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.
4.4.0
4.3.1
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
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
Fixed
- Unpickled worlds had reversed relations from what were saved.