Skip to main content

WindowBasedShutdownSystem.ixx File

System that requests runtime shutdown when no active windows remain. More...

Included Headers

Namespaces Index

namespacehelios
namespaceengine
namespaceplatform
namespacelifecycle
namespacesystems

Classes Index

classWindowBasedShutdownSystem<THandle, TCommandBuffer>

Queues ShutdownCommand when no active window entities are left. More...

Description

System that requests runtime shutdown when no active windows remain.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7export module helios.engine.platform.lifecycle.systems.WindowBasedShutdownSystem;
8
9
10
11import helios.engine.runtime.world.UpdateContext;
12
13import helios.engine.runtime.world.tags.SystemRole;
14
15import helios.engine.runtime.world;
16import helios.engine.runtime.messaging.command.NullCommandBuffer;
17import helios.engine.runtime.messaging.command.concepts.IsCommandBufferLike;
18
19import helios.ecs.components.Active;
20
21import helios.engine.platform.window.components;
22import helios.engine.platform.window.concepts;
23
24import helios.engine.platform.lifecycle.commands;
25import helios.engine.platform.environment.components;
26import helios.engine.platform.environment.concepts;
27
31using namespace helios::engine::runtime::messaging::command::concepts;
34using namespace helios::engine::platform::window::concepts;
35using namespace helios::engine::platform::environment::concepts;
37using namespace helios::ecs::components;
38
40
46 template<typename THandle, typename TCommandBuffer = NullCommandBuffer>
49
50 public:
51
53
58
66
67 if (updateContext.view<THandle, WindowComponent<THandle>, Active<THandle>>().whereEnabled().empty()) {
69 }
70
71
72 }
73
74 };
75
76
77
78}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.