Connection screen, which sends Hello every second until the server answers or 10 seconds pass.
More...
#include <scene/networkConnectionScene.hpp>
Connection screen, which sends Hello every second until the server answers or 10 seconds pass.
◆ onEnter()
Subscribes to the connection result events.
- Parameters
-
◆ onUpdate()
Retries the handshake and picks the next scene.
- Parameters
-
| context | Engine services. |
| dt | Elapsed time since the last frame, in seconds. |
- Returns
- Game once connected, Menu after the timeout, else std::nullopt.