|
CeresEngine 0.2.0
A game development framework
|
The NetworkAction is a special type of action that can be performed remotely on the server.
More...
#include <CeresEngine/Network/NetworkAction.hpp>
Public Types | |
| using | ReturnValueType = typename A::ReturnType |
| The type that must be returned by action handlers. | |
Public Member Functions | |
| template<typename... Args> | |
| NetworkAction (Args &&... args) | |
Creates a new NetworkAction. | |
| Any | dispatchAny (Entity entity) const final |
| Dispatches the action to the given entity. | |
| ReturnValueType | dispatch (Entity entity) const |
| Dispatches the action to the given entity. | |
Public Member Functions inherited from CeresEngine::AbstractNetworkAction | |
| virtual | ~AbstractNetworkAction ()=default |
Destroys the AbstractNetworkAction instance. | |
Public Attributes | |
| A | action |
| The wrapped action type. | |
The NetworkAction is a special type of action that can be performed remotely on the server.
| A | the wrapped action type |
| using CeresEngine::NetworkAction< A >::ReturnValueType = typename A::ReturnType |
The type that must be returned by action handlers.
|
explicit |
Creates a new NetworkAction.
| Args | the arguments types to construct the action member with |
| args | The arguments to construct the action member with |
| NetworkAction< A >::ReturnValueType CeresEngine::NetworkAction< A >::dispatch | ( | Entity | entity | ) | const |
Dispatches the action to the given entity.
| entity | The entity to dispatch the action to |
|
finalvirtual |
Dispatches the action to the given entity.
| entity | The entity to dispatch the action to |
Implements CeresEngine::AbstractNetworkAction.
| A CeresEngine::NetworkAction< A >::action |
The wrapped action type.
This is the action that will be performed on the game server.