Class ServerRpc
- Namespace
- AO
- Assembly
- CoreAssembly.dll
Server RPC tells All Out that you want to allow this method to be called from clients and replicated to the server. To call an RPC from a client you need to prepend 'CallServer_' to your method name at the call site.
[AttributeUsage(AttributeTargets.Method)]
public class ServerRpc : Attribute
- Inheritance
-
ServerRpc
- Inherited Members
- Extension Methods
Examples
// RPC declaration
[ServerRpc] public void MyRpc(int myFancyParameter) { }
// RPC call site (from client)
CallServer_MyRpc(1234);