#include <CeresEngine/Network/NetworkSystem.hpp>
◆ NetworkSystem() [1/2]
| CeresEngine::NetworkSystem::NetworkSystem |
( |
| ) |
|
◆ NetworkSystem() [2/2]
◆ ~NetworkSystem()
| CeresEngine::NetworkSystem::~NetworkSystem |
( |
| ) |
|
|
override |
◆ act() [1/2]
◆ act() [2/2]
◆ addNetworkAction()
| void CeresEngine::NetworkSystem::addNetworkAction |
( |
| ) |
|
Adds a new NetworkAction to be handled by the network system.
All registered actions can be called remotely over the network on the server.
By default, no further action is required to add a network action. If the action requires special treatment, special template- specialization hooks can be provided to customize the behavior.
- Template Parameters
-
| A | the action to be made available over the network |
◆ operator=()
◆ remoteAct() [1/2]
Executes a remote action on the given entity.
- Parameters
-
| entity | The entity to perform the action on |
| action | The action to be performed on the entity |
- Returns
- A continuable object containing the result from the action
◆ remoteAct() [2/2]
| NetworkAction< A >::ReturnType CeresEngine::NetworkSystem::remoteAct |
( |
Entity & |
entity, |
|
|
Args &&... |
args |
|
) |
| |
◆ removeNetworkAction()
| void CeresEngine::NetworkSystem::removeNetworkAction |
( |
| ) |
|
Removes a previously registered NetworkAction.
After removing the action, it will no longer be available for remote invocation over the network.
- Template Parameters
-
| A | the action to be revoke availability over the network |
◆ update()
| void CeresEngine::NetworkSystem::update |
( |
double |
time | ) |
|
|
final |
Updates the system.
- Parameters
-
| time | The amount of time elapsed since the last update |
◆ NetworkActionHandler
◆ networkActionHandlers
A vector of the attached network action handlers.
The documentation for this class was generated from the following file:
- /Users/Rogiel/Developer/CeresEngine/Engine/Sources/CeresEngine/Network/NetworkSystem.hpp