Table of Contents

Class Rpc

Namespace
Netick
Assembly
Netick.dll

Use this attribute on any method you want to make an RPC. Should have the return type of void, and not be static.

* Use the parameter "source" to specify who is allowed to send this RPC.

* Use the parameter "target" to specify who is allowed to receive and execute this RPC.

* Use the parameter "isReliable" to specify if this Rpc should be reliable or not, meaning it won't be lost (due to packet loss).

* Use the parameter "localInvoke" to specify if this Rpc should be executed on the machine it was called from.

[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public class Rpc : Attribute
Inheritance
Rpc
Inherited Members

Constructors

Rpc(RpcPeers, RpcPeers, bool, bool)

public Rpc(RpcPeers source = RpcPeers.Everyone, RpcPeers target = RpcPeers.Everyone, bool isReliable = false, bool localInvoke = false)

Parameters

source RpcPeers
target RpcPeers
isReliable bool
localInvoke bool