|
R-Type 0.1
|
Waiting room: starts the round with 2 players, or after 30 seconds with 1 player. More...
#include <Scene/serverLobbyScene.hpp>
Public Member Functions | |
| ServerLobbyScene (ServerDependency &dep) | |
| Creates the scene. | |
| void | onEnter (rtk::EngineContext &context) |
| Resets the lobby timer. | |
| std::optional< ServerSceneType > | onUpdate (rtk::EngineContext &context, const ServerInput &input, float dt) |
| Processes network events and starts the round when the conditions are met. | |
| void | onExit (rtk::EngineContext &context) |
| Does nothing. | |
Static Public Attributes | |
| static constexpr ServerSceneType | Type = ServerSceneType::Lobby |
| Identifier of this scene. | |
Waiting room: starts the round with 2 players, or after 30 seconds with 1 player.
| rtype::server::ServerLobbyScene::ServerLobbyScene | ( | ServerDependency & | dep | ) |
Creates the scene.
| dep | Game that owns the scene. |
| void rtype::server::ServerLobbyScene::onEnter | ( | rtk::EngineContext & | context | ) |
Resets the lobby timer.
| context | Engine services. |
| std::optional< ServerSceneType > rtype::server::ServerLobbyScene::onUpdate | ( | rtk::EngineContext & | context, |
| const ServerInput & | input, | ||
| float | dt ) |
Processes network events and starts the round when the conditions are met.
| context | Engine services. |
| input | Unused. |
| dt | Elapsed time since the last frame, in seconds. |
| void rtype::server::ServerLobbyScene::onExit | ( | rtk::EngineContext & | context | ) |
Does nothing.
| context | Engine services. |