ecs #58
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue