|
R-Type 0.1
|
Client side game: window, inputs, scenes and replication of the server world. More...
#include <game.hpp>
Public Member Functions | |
| Game () | |
| Opens the 1280x720 window and creates the menu scene. | |
| void | onLoad (rtk::EngineContext &context) |
| Registers components, loads blueprints, binds inputs, adds the systems and starts the network client. | |
| bool | shouldContinue () const |
| Tells the engine whether to keep running. | |
| void | onUpdate (rtk::EngineContext &context, float dt) |
| Applies network events and replication messages, then updates the active scene. | |
| void | onUnload (rtk::EngineContext &context) |
| Destroys replicated entities, exits the scene and stops the network client. | |
Client side game: window, inputs, scenes and replication of the server world.
| void rtype::client::Game::onLoad | ( | rtk::EngineContext & | context | ) |
Registers components, loads blueprints, binds inputs, adds the systems and starts the network client.
| context | Engine services. |
| bool rtype::client::Game::shouldContinue | ( | ) | const |
Tells the engine whether to keep running.
| void rtype::client::Game::onUpdate | ( | rtk::EngineContext & | context, |
| float | dt ) |
Applies network events and replication messages, then updates the active scene.
| context | Engine services. |
| dt | Elapsed time since the last frame, in seconds. |
| void rtype::client::Game::onUnload | ( | rtk::EngineContext & | context | ) |
Destroys replicated entities, exits the scene and stops the network client.
| context | Engine services. |