Class NetworkRpcAttribute
Indicates that a method is Remote Procedure Call which can be invoked on client and executed on server or invoked on server and executed on clients.
Inheritance
System.Object
NetworkRpcAttribute
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class NetworkRpcAttribute : Attribute
Constructors
NetworkRpcAttribute(Boolean, Boolean, NetworkChannelType)
Initializes a new instance of the NetworkRpcAttribute class.
Declaration
public NetworkRpcAttribute(bool server = false, bool client = false, NetworkChannelType channel)
Parameters
System.Boolean
server
True if RPC should be executed on server. |
System.Boolean
client
True if RPC should be executed on client. |
NetworkChannelType
channel
Network channel using which RPC should be send. |
Fields
Channel
Network channel using which RPC should be send.
Declaration
public NetworkChannelType Channel
Field Value
NetworkChannelType
|
Client
True if RPC should be executed on client.
Declaration
public bool Client
Field Value
System.Boolean
|
Server
True if RPC should be executed on server.
Declaration
public bool Server
Field Value
System.Boolean
|