tcod-ecs 5.2.2__tar.gz → 5.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/PKG-INFO +1 -1
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/tcod/ecs/_version.py +2 -2
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/tcod/ecs/entity.py +6 -0
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/LICENSE +0 -0
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/README.md +0 -0
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/pyproject.toml +0 -0
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/tcod/ecs/__init__.py +0 -0
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/tcod/ecs/_converter.py +0 -0
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/tcod/ecs/callbacks.py +0 -0
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/tcod/ecs/constants.py +0 -0
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/tcod/ecs/py.typed +0 -0
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/tcod/ecs/query.py +0 -0
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/tcod/ecs/registry.py +0 -0
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/tcod/ecs/typing.py +0 -0
- {tcod_ecs-5.2.2 → tcod_ecs-5.2.3}/tcod/ecs/world.py +0 -0
|
@@ -650,6 +650,12 @@ class EntityTags(MutableSet[Any]):
|
|
|
650
650
|
raise KeyError(tag)
|
|
651
651
|
self.discard(tag)
|
|
652
652
|
|
|
653
|
+
def clear(self) -> None:
|
|
654
|
+
"""Remove all tags directly in this entity."""
|
|
655
|
+
_tags_by_entity = self.entity.registry._tags_by_entity
|
|
656
|
+
while _tags_by_entity[self.entity]:
|
|
657
|
+
self.discard(next(iter(_tags_by_entity[self.entity])))
|
|
658
|
+
|
|
653
659
|
def __contains__(self, x: object) -> bool:
|
|
654
660
|
"""Return True if this entity has the given tag."""
|
|
655
661
|
_tags_by_entity = self.entity.registry._tags_by_entity
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|