ecs #58

Merged
raphael merged 70 commits from ecs into main 2023-11-03 15:29:36 +00:00
Showing only changes of commit c335c03208 - Show all commits

View file

@ -139,6 +139,11 @@ def start_game(global_scene: GlobalPlugin, scene: Optional[Scene]):
for system in global_scene.post_update_systems: for system in global_scene.post_update_systems:
system(world) system(world)
# On retire toutes les entitées qui ont seulement KeepAlive
for entity in world.query(KeepAlive):
if len(entity) == 1:
del entity[KeepAlive]
# On arrete la scene # On arrete la scene
for system in scene.stop_systems: for system in scene.stop_systems:
system(world) system(world)