|
| enum class | Directionality { OnlyOwnerInvokes
, Bidirectional
} |
| |
|
typedef std::array< ctti_t, ntypes > | arraytype |
| |
|
|
| RPCComponent (Entity owner) |
| |
|
| MOVE_NO_COPY (RPCComponent) |
| |
| template<typename Fn > |
| void | RegisterServerRPC (uint16_t name, const Fn &func, Directionality type=Directionality::OnlyOwnerInvokes) |
| |
| template<typename Fn > |
| void | RegisterClientRPC (uint16_t name, const Fn &func, Directionality type=Directionality::OnlyOwnerInvokes) |
| |
| template<typename ... A> |
| constexpr void | InvokeServerRPC (uint16_t id, NetworkBase::Reliability mode, A &&... args) const |
| |
|
template<typename ... A> |
| constexpr void | InvokeClientRPCDirected (uint16_t id, HSteamNetConnection target, NetworkBase::Reliability mode, A &&... args) const |
| |
|
template<typename ... A> |
| constexpr void | InvokeClientRPCToAllExcept (uint16_t id, HSteamNetConnection doNotSend, NetworkBase::Reliability mode, A &&... args) const |
| |
| template<typename ... A> |
| constexpr void | InvokeClientRPC (uint16_t id, NetworkBase::Reliability mode, A &&... args) const |
| |
| void | CacheClientRPC (const std::string_view &cmd, bool isOwner, HSteamNetConnection origin) |
| |
| void | CacheServerRPC (const std::string_view &cmd, bool isOwner, HSteamNetConnection origin) |
| |
| void | ProcessClientRPCs () |
| |
| void | ProcessServerRPCs () |
| |
| void | Swap () |
| |
|
| ComponentWithOwner (const decltype(owner) o) |
| |
|
Entity | GetOwner () const |
| |
◆ CacheClientRPC()
Invoked automatically. For internal use only.
◆ CacheServerRPC()
Invoked automatically. For internal use only.
◆ InvokeClientRPC()
| constexpr void RavEngine::RPCComponent::InvokeClientRPC |
( |
uint16_t |
id, |
|
|
NetworkBase::Reliability |
mode, |
|
|
A &&... |
args |
|
) |
| const |
|
inlineconstexpr |
Invoke an RPC on the client
- Parameters
-
| id | the name of the RPC |
| mode | importance that the message arrive at the destination |
| args | templated parameter list |
◆ InvokeServerRPC()
| constexpr void RavEngine::RPCComponent::InvokeServerRPC |
( |
uint16_t |
id, |
|
|
NetworkBase::Reliability |
mode, |
|
|
A &&... |
args |
|
) |
| const |
|
inlineconstexpr |
Invoke an RPC on the server
- Parameters
-
| id | the name of the RPC |
| mode | importance that the message arrive at the destination |
| args | templated parameter list |
◆ ProcessClientRPCs()
| void RavEngine::RPCComponent::ProcessClientRPCs |
( |
| ) |
|
|
inline |
Invoked automatically. For internal use only.
◆ ProcessServerRPCs()
| void RavEngine::RPCComponent::ProcessServerRPCs |
( |
| ) |
|
|
inline |
Invoked automatically. For internal use only.
◆ RegisterClientRPC()
| void RavEngine::RPCComponent::RegisterClientRPC |
( |
uint16_t |
name, |
|
|
const Fn & |
func, |
|
|
Directionality |
type = Directionality::OnlyOwnerInvokes |
|
) |
| |
|
inline |
Register a Client RPC - this is run on a client when invoked from the server
- Parameters
-
| name | the name for the RPC (must be unique) |
| func | the function to call |
◆ RegisterServerRPC()
| void RavEngine::RPCComponent::RegisterServerRPC |
( |
uint16_t |
name, |
|
|
const Fn & |
func, |
|
|
Directionality |
type = Directionality::OnlyOwnerInvokes |
|
) |
| |
|
inline |
Register a server RPC - this is run on the server when invoked from a client
- Parameters
-
| name | the name for the RPC (must be unique) |
| func | the function to call |
◆ Swap()
| void RavEngine::RPCComponent::Swap |
( |
| ) |
|
|
inline |
For internal use only. Switches which queue is being filled and which is being emptied
The documentation for this class was generated from the following file: