Commit 89f6b70e authored by Filip Hauzvic's avatar Filip Hauzvic
Browse files

Remove RPC macros

parent c65f1e91
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -5,14 +5,6 @@
#include <net/index.hpp>
#include <net/types.hpp>

// RPC macros for remote procedure calls
// Note: When registering functions that can be called via RPC, the first parameter
// will always be ConnectionId representing the sender.
#define RPC_RELIABLE(function, target, ...) \
    net::RPCSystem::call_remote(this, #function, target, net::ReliabilityMode::RELIABLE, __VA_ARGS__)
#define RPC_UNRELIABLE(function, target, ...) \
    net::RPCSystem::call_remote(this, #function, target, net::ReliabilityMode::UNRELIABLE, __VA_ARGS__)

namespace net
{
    struct RPCSystem
@@ -25,7 +17,6 @@ namespace net

        /**
         * @brief Calls a remote function on a target connection.
         * Prefer using the RPC_RELIABLE and RPC_UNRELIABLE macros instead of calling this directly.
         */
        template<typename... Args>
        static void call_remote(