Tcod-ecs

Latest version: v5.1.0

Safety actively analyzes 626381 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

5.1.0

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

Added

- Added the `tcod.ecs.IsA` sentinel value.
- Entities will automatically inherit components/tags/relations from entities they have an `IsA` relationship with. https://github.com/HexDecimal/python-tcod-ecs/pull/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

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`. https://github.com/HexDecimal/python-tcod-ecs/issues/8

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 components.

4.2.1

Fixed

- Unpickled worlds had reversed relations from what were saved.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.